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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001391/0.001391, allocations: 104.8 kB / 16.27 MB, free: 6.414 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.001097/0.001097, allocations: 189.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04611/0.04611, allocations: 9.127 MB / 300.2 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002401/0.002401, allocations: 59.91 kB / 362.6 MB, free: 7.418 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2113, allocations: 51.43 MB / 414 MB, free: 25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.01327/0.2246, allocations: 18.51 MB / 432.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009313/0.234, allocations: 5.651 MB / 438.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002505/0.2365, allocations: 91.75 kB / 438.3 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003754/0.2403, allocations: 1.758 MB / 440.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007016/0.2474, allocations: 3.007 MB / 443.1 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002041/0.2494, allocations: 0.7254 MB / 443.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008625/0.2581, allocations: 6.698 MB / 450.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005517/0.2636, allocations: 3.999 MB / 454.5 MB, free: 380 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003447/0.2671, allocations: 2.18 MB / 456.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004142/0.2713, allocations: 2.923 MB / 459.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00161/0.2729, allocations: 0.5391 MB / 460.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003163/0.2761, allocations: 1.338 MB / 461.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003128/0.2792, allocations: 2.708 MB / 464.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004753/0.284, allocations: 3.573 MB / 467.7 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.2956, allocations: 10.91 MB / 478.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.2957, allocations: 0 / 478.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2957, allocations: 4 kB / 478.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003219/0.296, allocations: 0 / 478.7 MB, free: 8.109 MB / 350.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.03441/0.3304, allocations: 10.9 MB / 489.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.3305, allocations: 8.031 kB / 489.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01375/0.3443, allocations: 3.54 MB / 493.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006947/0.3513, allocations: 3.379 MB / 496.5 MB, free: 6.121 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000329/0.3516, allocations: 340.4 kB / 496.8 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001828/0.3535, allocations: 447.5 kB / 497.3 MB, free: 5.348 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.032/0.3855, allocations: 17.6 MB / 0.5028 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002693/0.3858, allocations: 83.23 kB / 0.5029 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001454/0.3873, allocations: 223.7 kB / 0.5031 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1654/0.5527, allocations: 3.707 MB / 0.5067 GB, free: 78.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02834/0.581, allocations: 15.4 MB / 0.5217 GB, free: 73.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07536/0.6564, allocations: 71.96 MB / 0.592 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02386/0.6803, allocations: 7.326 MB / 0.5992 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005784/0.6862, allocations: 3.329 MB / 0.6024 GB, free: 6.621 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0275/0.7137, allocations: 14.5 MB / 0.6166 GB, free: 7.719 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.411e-05/0.7138, allocations: 80.8 kB / 0.6167 GB, free: 7.629 MB / 414.1 MB Notification: Performance of pre-optimization done (n=373): time 6.302e-06/0.7138, allocations: 4 kB / 0.6167 GB, free: 7.625 MB / 414.1 MB Notification: Performance of matching and sorting (n=420): time 0.07487/0.7887, allocations: 25.47 MB / 0.6415 GB, free: 13.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.877e-05/0.7888, allocations: 197.2 kB / 0.6417 GB, free: 13.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01006/0.7989, allocations: 6.581 MB / 0.6481 GB, free: 7.129 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005685/0.7995, allocations: 85.7 kB / 0.6482 GB, free: 7.039 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003312/0.8028, allocations: 4.777 MB / 0.6529 GB, free: 2.195 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001704/0.8045, allocations: 1.55 MB / 0.6544 GB, free: 0.625 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003324/0.8079, allocations: 2.134 MB / 0.6565 GB, free: 14.48 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.555e-05/0.808, allocations: 309.1 kB / 0.6568 GB, free: 14.17 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00599/0.814, allocations: 3.616 MB / 0.6603 GB, free: 10.55 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01029/0.8243, allocations: 9.61 MB / 0.6697 GB, free: 14.01 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1826/1.007, allocations: 14.44 MB / 0.6838 GB, free: 150.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002026/1.007, allocations: 62.48 kB / 0.6839 GB, free: 150.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.02264/1.03, allocations: 13.39 MB / 0.6969 GB, free: 146 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.03, allocations: 93.88 kB / 0.697 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002402/1.03, allocations: 208.1 kB / 0.6972 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/1.031, allocations: 0.6045 MB / 0.6978 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007955/1.039, allocations: 2.463 MB / 0.7002 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005749/1.045, allocations: 5.097 MB / 0.7052 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007029/1.052, allocations: 491 kB / 0.7057 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/1.054, allocations: 0.626 MB / 0.7063 GB, free: 142.3 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,28,44.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004832/1.058, allocations: 3.525 MB / 0.7097 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009307/1.059, allocations: 0.5733 MB / 0.7103 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007605/1.067, allocations: 5.226 MB / 0.7154 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.916e-05/1.067, allocations: 70.44 kB / 0.7155 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/1.067, allocations: 3.938 kB / 0.7155 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-05/1.067, allocations: 23.39 kB / 0.7155 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0272/1.094, allocations: 20.08 MB / 0.7351 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.726e-05/1.094, allocations: 24 kB / 0.7351 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003041/1.097, allocations: 0.6832 MB / 0.7358 GB, free: 121.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008205/1.098, allocations: 354.2 kB / 0.7361 GB, free: 121.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003757/1.099, allocations: 99.98 kB / 0.7362 GB, free: 121.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005174/1.104, allocations: 6.699 MB / 0.7428 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.54e-05/1.104, allocations: 39.88 kB / 0.7428 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/1.115, allocations: 9.761 MB / 0.7523 GB, free: 104.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002281/1.118, allocations: 1.122 MB / 0.7534 GB, free: 103 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008722/1.118, allocations: 103.9 kB / 0.7535 GB, free: 102.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002499/1.121, allocations: 155.9 kB / 0.7537 GB, free: 102.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004794/1.121, allocations: 325 kB / 0.754 GB, free: 102.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000219/1.122, allocations: 135.5 kB / 0.7541 GB, free: 102.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005447/1.127, allocations: 4.358 MB / 0.7584 GB, free: 97.96 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.1e-07/1.127, allocations: 0 / 0.7584 GB, free: 97.96 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007467/1.135, allocations: 1.625 MB / 0.76 GB, free: 96.34 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,22,52.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005883/1.135, allocations: 275.4 kB / 0.7602 GB, free: 96.07 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02125/1.157, allocations: 13.64 MB / 0.7735 GB, free: 82.49 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.971e-05/1.157, allocations: 4 kB / 0.7735 GB, free: 82.48 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003749/1.16, allocations: 3.02 MB / 0.7765 GB, free: 79.43 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005194/1.166, allocations: 0.8602 MB / 0.7773 GB, free: 78.61 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0258/1.191, allocations: 16.78 MB / 0.7937 GB, free: 61.47 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005953/1.197, allocations: 4.923 MB / 0.7985 GB, free: 56.52 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001954/1.199, allocations: 0.5383 MB / 0.7991 GB, free: 55.98 MB / 478.1 MB Notification: Performance of SimCode: time 7.11e-07/1.199, allocations: 0 / 0.7991 GB, free: 55.98 MB / 478.1 MB Notification: Performance of Templates: time 0.3636/1.563, allocations: 169.7 MB / 0.9647 GB, free: 46.15 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)