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.001214/0.001214, allocations: 110.8 kB / 16.41 MB, free: 6.477 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.001293/0.001293, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04535/0.04535, allocations: 9.118 MB / 300.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 63.89 kB / 415.3 MB, free: 21.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08188/0.08321, allocations: 51.45 MB / 466.8 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.01873/0.102, allocations: 18.51 MB / 485.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01173/0.1138, allocations: 5.652 MB / 490.9 MB, free: 9.391 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003307/0.1172, allocations: 91.75 kB / 491 MB, free: 9.301 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004311/0.1215, allocations: 1.754 MB / 492.8 MB, free: 7.539 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007634/0.1292, allocations: 2.999 MB / 495.8 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002144/0.1313, allocations: 0.741 MB / 496.5 MB, free: 3.785 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009897/0.1412, allocations: 6.709 MB / 0.4914 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006663/0.1479, allocations: 3.999 MB / 0.4953 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00541/0.1534, allocations: 2.191 MB / 0.4975 GB, free: 6.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004662/0.1581, allocations: 2.931 MB / 0.5003 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00178/0.1599, allocations: 0.543 MB / 0.5009 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00377/0.1637, allocations: 1.334 MB / 0.5022 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2139/0.3776, allocations: 2.71 MB / 0.5048 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007485/0.3852, allocations: 3.568 MB / 0.5083 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01633/0.4015, allocations: 11.39 MB / 0.5194 GB, free: 10.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4016, allocations: 0 / 0.5194 GB, free: 10.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4016, allocations: 2.562 kB / 0.5194 GB, free: 10.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004143/0.402, allocations: 0 / 0.5194 GB, free: 10.02 MB / 382.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.03947/0.4415, allocations: 10.9 MB / 0.5301 GB, free: 6.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.4416, allocations: 9.75 kB / 0.5301 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01321/0.4548, allocations: 3.536 MB / 0.5335 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00929/0.4641, allocations: 3.423 MB / 0.5369 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003209/0.4645, allocations: 342.4 kB / 0.5372 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002662/0.4671, allocations: 449.3 kB / 0.5376 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03544/0.5026, allocations: 17.61 MB / 0.5548 GB, free: 4.977 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003403/0.503, allocations: 75.91 kB / 0.5549 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002337/0.5053, allocations: 224.1 kB / 0.5551 GB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006798/0.5121, allocations: 3.708 MB / 0.5587 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03541/0.5476, allocations: 15.4 MB / 0.5738 GB, free: 2.035 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1052/0.6528, allocations: 71.65 MB / 0.6437 GB, free: 9.516 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02399/0.6768, allocations: 7.339 MB / 0.6509 GB, free: 1.926 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006132/0.683, allocations: 3.348 MB / 0.6542 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02982/0.7129, allocations: 14.48 MB / 0.6683 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.911e-05/0.713, allocations: 68.81 kB / 0.6684 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=373): time 8.055e-06/0.713, allocations: 3.938 kB / 0.6684 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of matching and sorting (n=420): time 0.08106/0.794, allocations: 25.49 MB / 0.6933 GB, free: 6.008 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.7942, allocations: 194.9 kB / 0.6935 GB, free: 5.781 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2302/1.024, allocations: 6.57 MB / 0.6999 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008052/1.025, allocations: 87.94 kB / 0.7 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004161/1.029, allocations: 4.775 MB / 0.7046 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002052/1.031, allocations: 1.544 MB / 0.7061 GB, free: 181 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004834/1.036, allocations: 2.141 MB / 0.7082 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.994e-05/1.036, allocations: 302.6 kB / 0.7085 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006515/1.043, allocations: 3.612 MB / 0.712 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0105/1.053, allocations: 9.623 MB / 0.7214 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01576/1.069, allocations: 14.45 MB / 0.7355 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002574/1.07, allocations: 57.91 kB / 0.7356 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.02635/1.096, allocations: 13.39 MB / 0.7487 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002752/1.096, allocations: 96.19 kB / 0.7488 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003952/1.097, allocations: 212 kB / 0.749 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/1.098, allocations: 0.5958 MB / 0.7496 GB, free: 149 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008968/1.107, allocations: 2.461 MB / 0.752 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006311/1.113, allocations: 5.097 MB / 0.7569 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009691/1.123, allocations: 490.7 kB / 0.7574 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002688/1.126, allocations: 0.63 MB / 0.758 GB, free: 141 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.00972/1.136, allocations: 3.518 MB / 0.7614 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002022/1.138, allocations: 0.5745 MB / 0.762 GB, free: 137.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01205/1.15, allocations: 5.23 MB / 0.7671 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001111/1.15, allocations: 75.42 kB / 0.7672 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.454e-05/1.15, allocations: 8 kB / 0.7672 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.566e-05/1.15, allocations: 17.95 kB / 0.7672 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03393/1.184, allocations: 19.99 MB / 0.7867 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.973e-05/1.184, allocations: 20 kB / 0.7868 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002783/1.187, allocations: 0.6755 MB / 0.7874 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008054/1.188, allocations: 348.9 kB / 0.7877 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003779/1.188, allocations: 103.8 kB / 0.7878 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005113/1.193, allocations: 6.7 MB / 0.7944 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-05/1.193, allocations: 31.88 kB / 0.7944 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01162/1.205, allocations: 9.757 MB / 0.8039 GB, free: 94.01 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003464/1.208, allocations: 1.133 MB / 0.8051 GB, free: 92.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001689/1.21, allocations: 91.98 kB / 0.8051 GB, free: 92.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003633/1.214, allocations: 159.8 kB / 0.8053 GB, free: 92.61 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006315/1.214, allocations: 320.9 kB / 0.8056 GB, free: 92.29 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002601/1.215, allocations: 139.9 kB / 0.8057 GB, free: 92.16 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007752/1.222, allocations: 4.358 MB / 0.81 GB, free: 87.81 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.62e-07/1.222, allocations: 0 / 0.81 GB, free: 87.81 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01075/1.233, allocations: 1.63 MB / 0.8116 GB, free: 86.18 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.0008993/1.234, allocations: 268 kB / 0.8118 GB, free: 85.92 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0131/1.247, allocations: 8.777 MB / 0.8204 GB, free: 77.17 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.38e-05/1.247, allocations: 8.125 kB / 0.8204 GB, free: 77.16 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003965/1.251, allocations: 3.012 MB / 0.8234 GB, free: 74.11 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006718/1.258, allocations: 0.868 MB / 0.8242 GB, free: 73.29 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0295/1.287, allocations: 16.6 MB / 0.8404 GB, free: 56.34 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007231/1.295, allocations: 4.923 MB / 0.8452 GB, free: 51.38 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002271/1.297, allocations: 0.5461 MB / 0.8458 GB, free: 50.84 MB / 0.5294 GB Notification: Performance of SimCode: time 6.31e-07/1.297, allocations: 0 / 0.8458 GB, free: 50.84 MB / 0.5294 GB Notification: Performance of Templates: time 0.416/1.713, allocations: 171 MB / 1.013 GB, free: 62.32 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)