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.001104/0.001104, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008339/0.008339, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.39/1.39, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2468/0.2468, allocations: 9.107 MB / 300.5 MB, free: 2.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003699/0.00037, allocations: 8 kB / 363.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1166, allocations: 52.43 MB / 416.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.2428/0.3595, allocations: 64.51 MB / 480.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.033/0.3925, allocations: 14.62 MB / 495.3 MB, free: 7.023 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01348/0.406, allocations: 262.8 kB / 495.5 MB, free: 6.988 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002426/0.4085, allocations: 0.6823 MB / 496.2 MB, free: 6.715 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007993/0.4165, allocations: 2.819 MB / 499 MB, free: 5.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002012/0.4186, allocations: 0.6541 MB / 499.7 MB, free: 5.086 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.4297, allocations: 8.766 MB / 0.4965 GB, free: 2.211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007035/0.4368, allocations: 4.048 MB / 0.5005 GB, free: 484 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003604/0.4404, allocations: 1.745 MB / 0.5022 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005234/0.4457, allocations: 2.861 MB / 0.505 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001154/0.4468, allocations: 272 kB / 0.5053 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00321/0.4501, allocations: 1.126 MB / 0.5064 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002764/0.4528, allocations: 2.485 MB / 0.5088 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003843/0.4567, allocations: 3.301 MB / 0.512 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01087/0.4676, allocations: 10.39 MB / 0.5221 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.4676, allocations: 0 / 0.5221 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4676, allocations: 0 / 0.5221 GB, free: 12.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002819/0.4679, allocations: 0 / 0.5221 GB, free: 12.84 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.02991/0.4978, allocations: 9.373 MB / 0.5313 GB, free: 3.387 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.4979, allocations: 8.594 kB / 0.5313 GB, free: 3.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0135/0.5114, allocations: 3.63 MB / 0.5349 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007075/0.5185, allocations: 3.387 MB / 0.5382 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003851/0.5189, allocations: 336.4 kB / 0.5385 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001853/0.5208, allocations: 451.5 kB / 0.5389 GB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03447/0.5553, allocations: 17.62 MB / 0.5561 GB, free: 8.699 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003159/0.5556, allocations: 83.23 kB / 0.5562 GB, free: 8.617 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001611/0.5573, allocations: 215.7 kB / 0.5564 GB, free: 8.406 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006458/0.5637, allocations: 3.707 MB / 0.56 GB, free: 4.695 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03532/0.5991, allocations: 15.41 MB / 0.5751 GB, free: 5.27 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3674/0.9666, allocations: 72 MB / 0.6454 GB, free: 17.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02389/0.9905, allocations: 7.322 MB / 0.6525 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005651/0.9962, allocations: 3.318 MB / 0.6558 GB, free: 12.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02617/1.022, allocations: 14.5 MB / 0.6699 GB, free: 4.148 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/1.022, allocations: 70.56 kB / 0.67 GB, free: 4.082 MB / 446.1 MB Notification: Performance of pre-optimization done (n=373): time 6.322e-06/1.022, allocations: 0 / 0.67 GB, free: 4.082 MB / 446.1 MB Notification: Performance of matching and sorting (n=420): time 0.07901/1.101, allocations: 25.43 MB / 0.6948 GB, free: 13.49 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/1.102, allocations: 203.1 kB / 0.695 GB, free: 13.25 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01139/1.113, allocations: 6.569 MB / 0.7014 GB, free: 6.68 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007164/1.114, allocations: 87.81 kB / 0.7015 GB, free: 6.59 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003832/1.118, allocations: 4.779 MB / 0.7062 GB, free: 1.832 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002239/1.12, allocations: 1.54 MB / 0.7077 GB, free: 312 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001882/1.122, allocations: 0.8771 MB / 0.7086 GB, free: 15.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/1.122, allocations: 301.1 kB / 0.7088 GB, free: 15.13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006917/1.129, allocations: 3.609 MB / 0.7124 GB, free: 11.52 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01332/1.142, allocations: 9.63 MB / 0.7218 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02151/1.164, allocations: 14.45 MB / 0.7359 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000221/1.164, allocations: 60 kB / 0.7359 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.0298/1.194, allocations: 13.38 MB / 0.749 GB, free: 2.293 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003489/1.194, allocations: 98.3 kB / 0.7491 GB, free: 2.199 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004999/1.195, allocations: 208 kB / 0.7493 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001489/1.196, allocations: 0.6027 MB / 0.7499 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009577/1.206, allocations: 2.456 MB / 0.7523 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007492/1.213, allocations: 4.76 MB / 0.7569 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009309/1.223, allocations: 499.4 kB / 0.7574 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002222/1.225, allocations: 0.6286 MB / 0.758 GB, free: 9.238 MB / 0.5294 GB 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.007479/1.232, allocations: 3.512 MB / 0.7614 GB, free: 5.922 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/1.234, allocations: 0.5746 MB / 0.762 GB, free: 5.34 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01476/1.249, allocations: 5.225 MB / 0.7671 GB, free: 88 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000156/1.249, allocations: 67.98 kB / 0.7672 GB, free: 20 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.049e-05/1.249, allocations: 12 kB / 0.7672 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.207/1.456, allocations: 17.45 kB / 0.7672 GB, free: 198.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03222/1.488, allocations: 20.08 MB / 0.7868 GB, free: 193.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.541e-05/1.488, allocations: 27.66 kB / 0.7868 GB, free: 193.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002826/1.491, allocations: 0.672 MB / 0.7875 GB, free: 193.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007861/1.492, allocations: 353.7 kB / 0.7878 GB, free: 193.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002856/1.492, allocations: 98.36 kB / 0.7879 GB, free: 193 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005017/1.497, allocations: 6.161 MB / 0.7939 GB, free: 188.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-05/1.497, allocations: 42.17 kB / 0.794 GB, free: 188.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0125/1.51, allocations: 9.757 MB / 0.8035 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002961/1.513, allocations: 1.149 MB / 0.8046 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009822/1.514, allocations: 97.73 kB / 0.8047 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002859/1.517, allocations: 160.1 kB / 0.8049 GB, free: 182.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006092/1.517, allocations: 320.5 kB / 0.8052 GB, free: 182.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002802/1.518, allocations: 136.3 kB / 0.8053 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007544/1.525, allocations: 4.354 MB / 0.8096 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.81e-07/1.525, allocations: 6.062 kB / 0.8096 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00926/1.534, allocations: 1.63 MB / 0.8112 GB, free: 181 MB / 0.5294 GB 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.001029/1.536, allocations: 271.8 kB / 0.8114 GB, free: 180.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01421/1.55, allocations: 8.705 MB / 0.8199 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.86e-05/1.55, allocations: 0.75 kB / 0.8199 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004425/1.554, allocations: 3.089 MB / 0.8229 GB, free: 176.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02576/1.58, allocations: 0.8306 MB / 0.8237 GB, free: 176 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02558/1.606, allocations: 19.28 MB / 0.8426 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005283/1.611, allocations: 4.931 MB / 0.8474 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007842/1.619, allocations: 3.233 MB / 0.8505 GB, free: 156 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/1.62, allocations: 468.8 kB / 0.851 GB, free: 155.6 MB / 0.5294 GB Notification: Performance of SimCode: time 7.51e-07/1.62, allocations: 0 / 0.851 GB, free: 155.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.09918/1.719, allocations: 63.69 MB / 0.9132 GB, free: 93.73 MB / 0.5294 GB 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)