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.001187/0.001187, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001223/0.001224, allocations: 193.2 kB / 16.14 MB, free: 6.664 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.389/1.389, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1641/0.1641, allocations: 9.115 MB / 299.1 MB, free: 1.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.89 kB / 361.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1132, allocations: 51.43 MB / 412.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.282/0.3952, allocations: 66.13 MB / 478.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03623/0.4315, allocations: 14.69 MB / 493.5 MB, free: 7.254 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01555/0.4472, allocations: 263.1 kB / 493.8 MB, free: 7.219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004566/0.4518, allocations: 1.642 MB / 495.4 MB, free: 6.496 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008036/0.4598, allocations: 2.803 MB / 498.2 MB, free: 5.199 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001989/0.4618, allocations: 0.6542 MB / 498.9 MB, free: 4.871 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01377/0.4756, allocations: 8.764 MB / 0.4958 GB, free: 1.996 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007381/0.483, allocations: 3.575 MB / 0.4992 GB, free: 0.5781 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005165/0.4882, allocations: 1.87 MB / 0.5011 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00558/0.4939, allocations: 2.998 MB / 0.504 GB, free: 13.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001697/0.4956, allocations: 320 kB / 0.5043 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00378/0.4994, allocations: 1.174 MB / 0.5054 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0032/0.5026, allocations: 2.532 MB / 0.5079 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004327/0.5069, allocations: 3.362 MB / 0.5112 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.5177, allocations: 10.67 MB / 0.5216 GB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.5177, allocations: 0 / 0.5216 GB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5177, allocations: 0 / 0.5216 GB, free: 11.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003202/0.518, allocations: 0 / 0.5216 GB, free: 11.39 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.03663/0.5547, allocations: 10.9 MB / 0.5323 GB, free: 420 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/0.5547, allocations: 8.594 kB / 0.5323 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01339/0.5681, allocations: 3.543 MB / 0.5357 GB, free: 12.85 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008625/0.5768, allocations: 3.375 MB / 0.539 GB, free: 9.41 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000572/0.5774, allocations: 336.4 kB / 0.5393 GB, free: 9.078 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003289/0.5807, allocations: 455.5 kB / 0.5398 GB, free: 8.633 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03134/0.6121, allocations: 17.61 MB / 0.557 GB, free: 5.836 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001935/0.6123, allocations: 83.23 kB / 0.5571 GB, free: 5.754 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008057/0.6131, allocations: 219.7 kB / 0.5573 GB, free: 5.539 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005529/0.6187, allocations: 3.703 MB / 0.5609 GB, free: 1.832 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03309/0.6518, allocations: 15.4 MB / 0.5759 GB, free: 2.418 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3198/0.9717, allocations: 71.95 MB / 0.6462 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02316/0.9949, allocations: 7.339 MB / 0.6533 GB, free: 12.24 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006261/1.001, allocations: 3.34 MB / 0.6566 GB, free: 10.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02577/1.027, allocations: 14.48 MB / 0.6708 GB, free: 1.551 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/1.027, allocations: 75.02 kB / 0.6708 GB, free: 1.484 MB / 446.1 MB Notification: Performance of pre-optimization done (n=373): time 7.985e-06/1.027, allocations: 0 / 0.6708 GB, free: 1.484 MB / 446.1 MB Notification: Performance of matching and sorting (n=420): time 0.08048/1.108, allocations: 25.46 MB / 0.6957 GB, free: 10.04 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/1.108, allocations: 208.1 kB / 0.6959 GB, free: 9.805 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01047/1.118, allocations: 6.577 MB / 0.7023 GB, free: 3.223 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008035/1.119, allocations: 89.38 kB / 0.7024 GB, free: 3.133 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00391/1.123, allocations: 4.775 MB / 0.7071 GB, free: 14.38 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003177/1.126, allocations: 1.545 MB / 0.7086 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004166/1.13, allocations: 2.137 MB / 0.7106 GB, free: 10.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/1.13, allocations: 301.1 kB / 0.7109 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006236/1.137, allocations: 3.613 MB / 0.7145 GB, free: 6.789 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01293/1.15, allocations: 9.619 MB / 0.7239 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02045/1.17, allocations: 14.45 MB / 0.738 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002505/1.17, allocations: 60 kB / 0.738 GB, free: 9.723 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.03089/1.201, allocations: 13.38 MB / 0.7511 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003189/1.202, allocations: 96.25 kB / 0.7512 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004376/1.202, allocations: 216 kB / 0.7514 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001527/1.204, allocations: 0.6084 MB / 0.752 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00966/1.213, allocations: 2.456 MB / 0.7544 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008111/1.222, allocations: 4.744 MB / 0.759 GB, free: 5.633 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009362/1.231, allocations: 495.5 kB / 0.7595 GB, free: 5.148 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002543/1.234, allocations: 0.6311 MB / 0.7601 GB, free: 4.52 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.00834/1.242, allocations: 3.52 MB / 0.7635 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001787/1.244, allocations: 0.5715 MB / 0.7641 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01156/1.255, allocations: 5.231 MB / 0.7692 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001157/1.255, allocations: 74.88 kB / 0.7693 GB, free: 11.29 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.969e-05/1.255, allocations: 9.641 kB / 0.7693 GB, free: 11.29 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.542e-05/1.256, allocations: 15.94 kB / 0.7693 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2573/1.513, allocations: 20.07 MB / 0.7889 GB, free: 212 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.813e-05/1.513, allocations: 24.53 kB / 0.7889 GB, free: 212 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00307/1.516, allocations: 0.6738 MB / 0.7896 GB, free: 212 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009324/1.517, allocations: 355.1 kB / 0.7899 GB, free: 211.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005925/1.518, allocations: 100.7 kB / 0.79 GB, free: 211.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005323/1.523, allocations: 6.159 MB / 0.796 GB, free: 206.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.975e-05/1.523, allocations: 37.61 kB / 0.7961 GB, free: 206.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/1.535, allocations: 9.757 MB / 0.8056 GB, free: 202.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002615/1.538, allocations: 1.119 MB / 0.8067 GB, free: 201.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001408/1.539, allocations: 101.2 kB / 0.8068 GB, free: 201.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003222/1.543, allocations: 164.6 kB / 0.807 GB, free: 201.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006335/1.543, allocations: 326.1 kB / 0.8073 GB, free: 201.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002959/1.544, allocations: 136.5 kB / 0.8074 GB, free: 201.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009171/1.553, allocations: 4.357 MB / 0.8116 GB, free: 200.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.22e-07/1.553, allocations: 0.6562 kB / 0.8116 GB, free: 200.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01071/1.564, allocations: 1.623 MB / 0.8132 GB, free: 199.9 MB / 0.545 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.001238/1.565, allocations: 274.3 kB / 0.8135 GB, free: 199.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01638/1.581, allocations: 8.7 MB / 0.822 GB, free: 196.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.169e-05/1.581, allocations: 3.625 kB / 0.822 GB, free: 196.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005408/1.587, allocations: 3.088 MB / 0.825 GB, free: 195.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007756/1.595, allocations: 0.8221 MB / 0.8258 GB, free: 194.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03242/1.627, allocations: 19.15 MB / 0.8445 GB, free: 184.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008765/1.636, allocations: 4.926 MB / 0.8493 GB, free: 182.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01128/1.647, allocations: 3.233 MB / 0.8525 GB, free: 180 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003151/1.65, allocations: 467.2 kB / 0.8529 GB, free: 179.6 MB / 0.545 GB Notification: Performance of SimCode: time 2.795e-06/1.65, allocations: 0 / 0.8529 GB, free: 179.6 MB / 0.545 GB Notification: Performance of Templates: time 0.1052/1.756, allocations: 64.57 MB / 0.916 GB, free: 120.2 MB / 0.545 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)