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.0009253/0.0009252, allocations: 97.33 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.007531/0.007531, allocations: 170.5 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.445/1.445, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.191/0.191, allocations: 9.113 MB / 300.5 MB, free: 2.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003896, allocations: 8 kB / 363.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1313, allocations: 52.42 MB / 416.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.2704/0.4018, allocations: 64.51 MB / 480.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04002/0.4419, allocations: 14.63 MB / 495.3 MB, free: 7.062 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01531/0.4572, allocations: 262.5 kB / 495.5 MB, free: 7.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00329/0.4606, allocations: 0.6813 MB / 496.2 MB, free: 6.754 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01106/0.4717, allocations: 2.808 MB / 499 MB, free: 5.457 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002764/0.4745, allocations: 0.6574 MB / 499.7 MB, free: 5.129 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01632/0.4908, allocations: 8.763 MB / 0.4965 GB, free: 2.258 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01167/0.5025, allocations: 4.056 MB / 0.5005 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005407/0.508, allocations: 1.75 MB / 0.5022 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006012/0.514, allocations: 2.85 MB / 0.505 GB, free: 14.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001891/0.516, allocations: 272 kB / 0.5052 GB, free: 14.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004263/0.5202, allocations: 1.13 MB / 0.5064 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004452/0.5247, allocations: 2.481 MB / 0.5088 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006945/0.5317, allocations: 3.313 MB / 0.512 GB, free: 7.289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02223/0.554, allocations: 10.38 MB / 0.5221 GB, free: 12.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.554, allocations: 0 / 0.5221 GB, free: 12.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.13e-06/0.554, allocations: 3.984 kB / 0.5222 GB, free: 12.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004705/0.5545, allocations: 4 kB / 0.5222 GB, free: 12.86 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.03553/0.5901, allocations: 9.369 MB / 0.5313 GB, free: 3.406 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.334e-05/0.5901, allocations: 12.59 kB / 0.5313 GB, free: 3.395 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01504/0.6052, allocations: 3.626 MB / 0.5349 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009046/0.6143, allocations: 3.387 MB / 0.5382 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006011/0.6149, allocations: 336.4 kB / 0.5385 GB, free: 11.97 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003078/0.618, allocations: 455.5 kB / 0.5389 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04435/0.6624, allocations: 17.63 MB / 0.5561 GB, free: 8.711 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004522/0.6629, allocations: 71.31 kB / 0.5562 GB, free: 8.641 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002494/0.6654, allocations: 215.7 kB / 0.5564 GB, free: 8.43 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006966/0.6724, allocations: 3.711 MB / 0.56 GB, free: 4.715 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03952/0.712, allocations: 15.41 MB / 0.5751 GB, free: 5.285 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4444/1.156, allocations: 71.98 MB / 0.6454 GB, free: 17.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02497/1.181, allocations: 7.326 MB / 0.6525 GB, free: 13.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006472/1.188, allocations: 3.319 MB / 0.6558 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03204/1.22, allocations: 14.5 MB / 0.6699 GB, free: 4.129 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001037/1.22, allocations: 78.61 kB / 0.67 GB, free: 4.055 MB / 446.1 MB Notification: Performance of pre-optimization done (n=373): time 1.256e-05/1.22, allocations: 0 / 0.67 GB, free: 4.055 MB / 446.1 MB Notification: Performance of matching and sorting (n=420): time 0.09347/1.314, allocations: 25.42 MB / 0.6948 GB, free: 13.56 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/1.314, allocations: 203.2 kB / 0.695 GB, free: 13.32 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0183/1.332, allocations: 6.579 MB / 0.7014 GB, free: 6.742 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001116/1.333, allocations: 81.7 kB / 0.7015 GB, free: 6.656 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005505/1.339, allocations: 4.779 MB / 0.7062 GB, free: 1.898 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002545/1.341, allocations: 1.54 MB / 0.7077 GB, free: 380 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002916/1.344, allocations: 0.8697 MB / 0.7085 GB, free: 15.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/1.345, allocations: 305.1 kB / 0.7088 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008863/1.353, allocations: 3.613 MB / 0.7124 GB, free: 11.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01484/1.368, allocations: 9.623 MB / 0.7218 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02591/1.394, allocations: 14.45 MB / 0.7359 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003692/1.395, allocations: 60 kB / 0.7359 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.03482/1.43, allocations: 13.39 MB / 0.749 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004387/1.43, allocations: 96 kB / 0.7491 GB, free: 2.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006285/1.431, allocations: 208 kB / 0.7493 GB, free: 2.066 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001755/1.432, allocations: 0.6084 MB / 0.7499 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00981/1.442, allocations: 2.459 MB / 0.7523 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007339/1.45, allocations: 4.746 MB / 0.7569 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009145/1.459, allocations: 499.4 kB / 0.7574 GB, free: 9.938 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00257/1.461, allocations: 0.636 MB / 0.758 GB, free: 9.305 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.009752/1.471, allocations: 3.514 MB / 0.7615 GB, free: 5.988 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002196/1.473, allocations: 0.5746 MB / 0.762 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01211/1.486, allocations: 5.228 MB / 0.7671 GB, free: 152 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.966e-05/1.486, allocations: 67.98 kB / 0.7672 GB, free: 84 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-05/1.486, allocations: 8 kB / 0.7672 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-05/1.486, allocations: 19.92 kB / 0.7672 GB, free: 56 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2939/1.78, allocations: 20.07 MB / 0.7868 GB, free: 193.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.164e-05/1.78, allocations: 25.03 kB / 0.7868 GB, free: 193.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002843/1.783, allocations: 0.6773 MB / 0.7875 GB, free: 193.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008088/1.783, allocations: 349.5 kB / 0.7878 GB, free: 193.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002982/1.784, allocations: 100 kB / 0.7879 GB, free: 193.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005211/1.789, allocations: 6.164 MB / 0.7939 GB, free: 188.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-05/1.789, allocations: 38.28 kB / 0.794 GB, free: 188.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01441/1.803, allocations: 9.756 MB / 0.8035 GB, free: 183.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003565/1.807, allocations: 1.149 MB / 0.8046 GB, free: 183 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001769/1.809, allocations: 104 kB / 0.8047 GB, free: 183 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003577/1.812, allocations: 162.8 kB / 0.8049 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006885/1.813, allocations: 319.5 kB / 0.8052 GB, free: 182.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002921/1.813, allocations: 133.8 kB / 0.8053 GB, free: 182.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008672/1.822, allocations: 4.355 MB / 0.8096 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.11e-07/1.822, allocations: 0.7188 kB / 0.8096 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01166/1.834, allocations: 1.628 MB / 0.8112 GB, free: 181.1 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.001292/1.835, allocations: 276.6 kB / 0.8114 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0195/1.855, allocations: 8.705 MB / 0.8199 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.628e-05/1.855, allocations: 0.9375 kB / 0.8199 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006456/1.861, allocations: 3.088 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.02735/1.889, allocations: 0.8263 MB / 0.8237 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03091/1.919, allocations: 19.29 MB / 0.8426 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006611/1.926, allocations: 4.923 MB / 0.8474 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008544/1.935, 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.001498/1.936, allocations: 472.9 kB / 0.851 GB, free: 155.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.393e-06/1.936, allocations: 7.938 kB / 0.851 GB, free: 155.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.1139/2.05, allocations: 63.69 MB / 0.9132 GB, free: 93.74 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)