Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.GearComponents.Examples.PlanetaryGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear") translateModel(PlanarMechanics.GearComponents.Examples.PlanetaryGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007893/0.0007894, allocations: 91.69 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.212/0.212, allocations: 9.117 MB / 300.2 MB, free: 2.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003193/0.0003194, allocations: 8.219 kB / 363.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.128, allocations: 52.44 MB / 415.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.3/0.428, allocations: 60 MB / 475.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03988/0.4679, allocations: 14.04 MB / 489.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01788/0.4859, allocations: 262.2 kB / 489.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01283/0.4987, allocations: 2.977 MB / 492.8 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03817/0.5369, allocations: 10.01 MB / 0.491 GB, free: 5.973 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005002/0.542, allocations: 0.5992 MB / 0.4916 GB, free: 5.707 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01362/0.5556, allocations: 7.078 MB / 0.4985 GB, free: 2.828 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008159/0.5638, allocations: 3.731 MB / 0.5022 GB, free: 480 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006045/0.5699, allocations: 1.89 MB / 0.504 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006829/0.5768, allocations: 2.811 MB / 0.5068 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001887/0.5787, allocations: 272 kB / 0.507 GB, free: 12.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004151/0.5829, allocations: 0.948 MB / 0.508 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003945/0.5869, allocations: 2.403 MB / 0.5103 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002941/0.5898, allocations: 1.419 MB / 0.5117 GB, free: 7.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.6017, allocations: 8.666 MB / 0.5202 GB, free: 14.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.6017, allocations: 0 / 0.5202 GB, free: 14.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.6018, allocations: 0 / 0.5202 GB, free: 14.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004574/0.6022, allocations: 0 / 0.5202 GB, free: 14.7 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2454 * Number of variables: 2454 Notification: Performance of Generate backend data structure: time 0.02955/0.6318, allocations: 9.462 MB / 0.5294 GB, free: 5.148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.6318, allocations: 8.031 kB / 0.5294 GB, free: 5.141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01318/0.645, allocations: 3.629 MB / 0.5329 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01054/0.6556, allocations: 3.316 MB / 0.5362 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005871/0.6563, allocations: 332.4 kB / 0.5365 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002414/0.6587, allocations: 459.3 kB / 0.5369 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03652/0.6952, allocations: 17.59 MB / 0.5541 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004183/0.6957, allocations: 83.17 kB / 0.5542 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002211/0.6979, allocations: 223.7 kB / 0.5544 GB, free: 10.27 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006338/0.7043, allocations: 3.699 MB / 0.558 GB, free: 6.566 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03704/0.7414, allocations: 15.33 MB / 0.573 GB, free: 7.207 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3826/1.124, allocations: 71.97 MB / 0.6433 GB, free: 65.95 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02228/1.146, allocations: 7.285 MB / 0.6504 GB, free: 62.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006851/1.153, allocations: 3.322 MB / 0.6536 GB, free: 61.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02963/1.183, allocations: 14.51 MB / 0.6678 GB, free: 53.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/1.183, allocations: 72.62 kB / 0.6679 GB, free: 53.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=373): time 6.692e-06/1.183, allocations: 4 kB / 0.6679 GB, free: 53.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=420): time 0.09344/1.276, allocations: 25.37 MB / 0.6927 GB, free: 38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/1.277, allocations: 200.9 kB / 0.6928 GB, free: 37.77 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01528/1.292, allocations: 6.534 MB / 0.6992 GB, free: 31.22 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00107/1.293, allocations: 85.7 kB / 0.6993 GB, free: 31.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004369/1.297, allocations: 4.774 MB / 0.704 GB, free: 26.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002468/1.3, allocations: 1.549 MB / 0.7055 GB, free: 24.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/1.301, allocations: 208 kB / 0.7057 GB, free: 24.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0008569/1.302, allocations: 0.7567 MB / 0.7064 GB, free: 23.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00831/1.31, allocations: 3.574 MB / 0.7099 GB, free: 20.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01107/1.321, allocations: 9.579 MB / 0.7193 GB, free: 7.777 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008878/1.33, allocations: 5.892 MB / 0.725 GB, free: 1.871 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001442/1.33, allocations: 60 kB / 0.7251 GB, free: 1.812 MB / 446.1 MB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.03335/1.364, allocations: 13.3 MB / 0.7381 GB, free: 4.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002297/1.364, allocations: 96 kB / 0.7382 GB, free: 4.387 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003835/1.365, allocations: 212.1 kB / 0.7384 GB, free: 4.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/1.366, allocations: 0.629 MB / 0.739 GB, free: 3.551 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00979/1.376, allocations: 2.464 MB / 0.7414 GB, free: 1.082 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009601/1.385, allocations: 4.744 MB / 0.746 GB, free: 12.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00995/1.395, allocations: 0.4899 MB / 0.7465 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002915/1.398, allocations: 0.6288 MB / 0.7471 GB, free: 11.08 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 42 (world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],planetary.body3D.sphereColor[3],planetary.body3D.sphereColor[2],planetary.body3D.sphereColor[1],planetary.carrierPart.color[3],planetary.carrierPart.color[2],planetary.carrierPart.color[1],planetary.carrierAngle.color[3],planetary.carrierAngle.color[2],planetary.carrierAngle.color[1],planetary.bearing_Carrier.cylinderColor[3],planetary.bearing_Carrier.cylinderColor[2],planetary.bearing_Carrier.cylinderColor[1],planetary.bearing_Planet.cylinderColor[3],planetary.bearing_Planet.cylinderColor[2],planetary.bearing_Planet.cylinderColor[1],planetary.bearing_Ring.cylinderColor[3],planetary.bearing_Ring.cylinderColor[2],planetary.bearing_Ring.cylinderColor[1],planetary.bearing_Sun.cylinderColor[3],planetary.bearing_Sun.cylinderColor[2],planetary.bearing_Sun.cylinderColor[1],planetary.planet.sphereColor[3],planetary.planet.sphereColor[2],planetary.planet.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1307): * Single equations (assignments): 1298 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,44.4%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01134/1.41, allocations: 3.511 MB / 0.7505 GB, free: 7.559 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001952/1.412, allocations: 0.5745 MB / 0.7511 GB, free: 6.977 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01338/1.425, allocations: 5.212 MB / 0.7562 GB, free: 1.719 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/1.425, allocations: 66.19 kB / 0.7562 GB, free: 1.656 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.978e-05/1.425, allocations: 8 kB / 0.7563 GB, free: 1.648 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.065e-05/1.425, allocations: 19.92 kB / 0.7563 GB, free: 1.629 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3148/1.74, allocations: 20.04 MB / 0.7758 GB, free: 130.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.317e-05/1.74, allocations: 25.28 kB / 0.7759 GB, free: 130.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002689/1.743, allocations: 0.6766 MB / 0.7765 GB, free: 130.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007592/1.744, allocations: 350.5 kB / 0.7769 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003254/1.744, allocations: 109.2 kB / 0.777 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004913/1.749, allocations: 6.156 MB / 0.783 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-05/1.749, allocations: 37.44 kB / 0.783 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01215/1.761, allocations: 9.713 MB / 0.7925 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003358/1.765, allocations: 1.148 MB / 0.7936 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001423/1.766, allocations: 101 kB / 0.7937 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002692/1.769, allocations: 168.5 kB / 0.7939 GB, free: 120 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004736/1.769, allocations: 318 kB / 0.7942 GB, free: 120 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002567/1.769, allocations: 135.5 kB / 0.7943 GB, free: 119.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008449/1.778, allocations: 4.313 MB / 0.7985 GB, free: 118.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.092e-06/1.778, allocations: 0 / 0.7985 GB, free: 118.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01184/1.79, allocations: 1.63 MB / 0.8001 GB, free: 118.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 104 * Number of states: 6 (heatCapacitor.T,planetary.planet.phi,planetary.bearing_Carrier.phi,planetary.bearing_Carrier.w,sunSpeed.phi,ringTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (365): * Single equations (assignments): 356 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,52.0%) 22,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001138/1.791, allocations: 273.2 kB / 0.8004 GB, free: 118 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01656/1.807, allocations: 8.651 MB / 0.8088 GB, free: 114.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-05/1.808, allocations: 4.125 kB / 0.8088 GB, free: 114.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004814/1.812, allocations: 3.078 MB / 0.8118 GB, free: 113.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005823/1.818, allocations: 0.8262 MB / 0.8126 GB, free: 113.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02816/1.846, allocations: 18.53 MB / 0.8307 GB, free: 100.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007478/1.854, allocations: 4.928 MB / 0.8355 GB, free: 96.32 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008701/1.863, allocations: 3.225 MB / 0.8387 GB, free: 94.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/1.864, allocations: 481.4 kB / 0.8392 GB, free: 93.82 MB / 478.1 MB Notification: Performance of SimCode: time 1.383e-06/1.864, allocations: 0 / 0.8392 GB, free: 93.82 MB / 478.1 MB Notification: Performance of Templates: time 0.1036/1.968, allocations: 62.31 MB / 0.9 GB, free: 33.86 MB / 478.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.makefile (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.sim & ./PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe 2>&1)