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.005613/0.005613, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001215/0.001215, allocations: 193.2 kB / 16.67 MB, free: 5.938 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1584/0.1584, allocations: 9.123 MB / 299.7 MB, free: 1.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 67.91 kB / 414.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3292, allocations: 51.43 MB / 466.1 MB, free: 18.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.01638/0.3456, allocations: 18.5 MB / 484.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01282/0.3584, allocations: 5.648 MB / 490.2 MB, free: 312 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004008/0.3625, allocations: 91.22 kB / 490.3 MB, free: 300 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004592/0.3671, allocations: 1.765 MB / 492.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008732/0.3759, allocations: 3.008 MB / 495.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002164/0.3781, allocations: 0.7284 MB / 495.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0107/0.3888, allocations: 6.715 MB / 0.4908 GB, free: 7.629 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005763/0.3946, allocations: 4.003 MB / 0.4947 GB, free: 3.562 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004332/0.3989, allocations: 2.183 MB / 0.4968 GB, free: 1.371 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004355/0.4033, allocations: 2.923 MB / 0.4997 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001341/0.4047, allocations: 0.5468 MB / 0.5002 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002976/0.4077, allocations: 1.334 MB / 0.5015 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002669/0.4104, allocations: 2.711 MB / 0.5042 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004848/0.4152, allocations: 3.569 MB / 0.5076 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01554/0.4308, allocations: 11.44 MB / 0.5188 GB, free: 10.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4308, allocations: 0 / 0.5188 GB, free: 10.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4308, allocations: 0 / 0.5188 GB, free: 10.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002603/0.4311, allocations: 0 / 0.5188 GB, free: 10.76 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.03048/0.4616, allocations: 11.09 MB / 0.5296 GB, free: 15.57 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.4616, allocations: 8.031 kB / 0.5297 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01238/0.474, allocations: 3.58 MB / 0.5331 GB, free: 11.97 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007164/0.4812, allocations: 3.443 MB / 0.5365 GB, free: 8.465 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/0.4815, allocations: 336.4 kB / 0.5368 GB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001442/0.483, allocations: 455.6 kB / 0.5373 GB, free: 7.688 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0317/0.5147, allocations: 17.6 MB / 0.5545 GB, free: 4.895 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002676/0.515, allocations: 75.34 kB / 0.5545 GB, free: 4.82 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008871/0.5159, allocations: 223.7 kB / 0.5547 GB, free: 4.602 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005821/0.5218, allocations: 3.711 MB / 0.5584 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03508/0.5569, allocations: 15.4 MB / 0.5734 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4047/0.9616, allocations: 71.76 MB / 0.6435 GB, free: 55.1 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02131/0.983, allocations: 7.331 MB / 0.6506 GB, free: 50.83 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004956/0.988, allocations: 3.348 MB / 0.6539 GB, free: 49.06 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02494/1.013, allocations: 14.52 MB / 0.6681 GB, free: 39.06 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/1.013, allocations: 74.06 kB / 0.6682 GB, free: 38.99 MB / 462.1 MB Notification: Performance of pre-optimization done (n=373): time 6.823e-06/1.013, allocations: 0 / 0.6682 GB, free: 38.99 MB / 462.1 MB Notification: Performance of matching and sorting (n=420): time 0.0655/1.079, allocations: 25.9 MB / 0.6935 GB, free: 14.06 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.438e-05/1.079, allocations: 192.9 kB / 0.6936 GB, free: 13.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007899/1.087, allocations: 6.59 MB / 0.7001 GB, free: 7.367 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006185/1.087, allocations: 89.64 kB / 0.7002 GB, free: 7.273 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002775/1.09, allocations: 4.974 MB / 0.705 GB, free: 2.453 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001941/1.092, allocations: 1.612 MB / 0.7066 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002727/1.095, allocations: 2.155 MB / 0.7087 GB, free: 14.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/1.095, allocations: 305.1 kB / 0.709 GB, free: 14.36 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005519/1.1, allocations: 3.613 MB / 0.7125 GB, free: 10.74 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009613/1.11, allocations: 9.614 MB / 0.7219 GB, free: 14.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01742/1.127, allocations: 14.45 MB / 0.736 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002096/1.128, allocations: 63.94 kB / 0.7361 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.02738/1.155, allocations: 13.41 MB / 0.7492 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/1.155, allocations: 96.19 kB / 0.7493 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002626/1.156, allocations: 212 kB / 0.7495 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/1.157, allocations: 0.6026 MB / 0.7501 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008592/1.165, allocations: 2.46 MB / 0.7525 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006776/1.172, allocations: 5.122 MB / 0.7575 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007937/1.18, allocations: 495.6 kB / 0.7579 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/1.182, allocations: 0.6288 MB / 0.7585 GB, free: 5.52 MB / 0.5137 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.006098/1.188, allocations: 3.516 MB / 0.762 GB, free: 1.988 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001607/1.189, allocations: 0.6014 MB / 0.7626 GB, free: 1.383 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009274/1.199, allocations: 5.231 MB / 0.7677 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.142e-05/1.199, allocations: 75.89 kB / 0.7677 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/1.199, allocations: 4 kB / 0.7678 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.804e-05/1.199, allocations: 19.94 kB / 0.7678 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03618/1.235, allocations: 20 MB / 0.7873 GB, free: 7.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.772e-05/1.235, allocations: 24 kB / 0.7873 GB, free: 7.547 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003079/1.238, allocations: 0.6794 MB / 0.788 GB, free: 6.867 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009872/1.239, allocations: 350.8 kB / 0.7883 GB, free: 6.516 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003354/1.24, allocations: 103.9 kB / 0.7884 GB, free: 6.418 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2819/1.522, allocations: 6.694 MB / 0.795 GB, free: 181.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-05/1.522, allocations: 36.44 kB / 0.795 GB, free: 181.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/1.538, allocations: 9.79 MB / 0.8045 GB, free: 178.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003789/1.542, allocations: 1.156 MB / 0.8057 GB, free: 178.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002126/1.544, allocations: 95.33 kB / 0.8058 GB, free: 178.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004109/1.549, allocations: 166.4 kB / 0.8059 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009753/1.55, allocations: 321.3 kB / 0.8062 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003235/1.55, allocations: 139.6 kB / 0.8064 GB, free: 178 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008966/1.559, allocations: 4.351 MB / 0.8106 GB, free: 176.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.81e-07/1.559, allocations: 0 / 0.8106 GB, free: 176.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009846/1.569, allocations: 1.627 MB / 0.8122 GB, free: 176.2 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.0008915/1.57, allocations: 274 kB / 0.8125 GB, free: 176 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01491/1.585, allocations: 8.775 MB / 0.821 GB, free: 172.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.839e-05/1.585, allocations: 3.75 kB / 0.821 GB, free: 172.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004496/1.589, allocations: 3.095 MB / 0.8241 GB, free: 171.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007387/1.597, allocations: 0.8656 MB / 0.8249 GB, free: 171.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/1.625, allocations: 16.06 MB / 0.8406 GB, free: 162.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005588/1.63, allocations: 4.921 MB / 0.8454 GB, free: 159 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007308/1.638, allocations: 3.226 MB / 0.8485 GB, free: 156.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001568/1.639, allocations: 469.3 kB / 0.849 GB, free: 156.5 MB / 0.545 GB Notification: Performance of SimCode: time 7.12e-07/1.639, allocations: 0 / 0.849 GB, free: 156.5 MB / 0.545 GB Notification: Performance of Templates: time 0.09796/1.737, allocations: 61.54 MB / 0.9091 GB, free: 95.45 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)