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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 222.9 MB / 239.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009587/0.0009587, allocations: 102.3 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04114/0.04114, allocations: 8.94 MB / 349 MB, free: 20 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009279/0.0009279, allocations: 50.95 kB / 411.1 MB, free: 57.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07392/0.07486, allocations: 51.4 MB / 462.5 MB, free: 5.715 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.2385/0.3134, allocations: 66.13 MB / 0.5163 GB, free: 4.695 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0305/0.3439, allocations: 14.71 MB / 0.5306 GB, free: 7.422 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01478/0.3588, allocations: 263.4 kB / 0.5309 GB, free: 7.164 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004561/0.3634, allocations: 1.647 MB / 0.5325 GB, free: 5.512 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007994/0.3714, allocations: 2.799 MB / 0.5352 GB, free: 2.703 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.3732, allocations: 0.6638 MB / 0.5359 GB, free: 2.039 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00925/0.3824, allocations: 8.811 MB / 0.5445 GB, free: 9.211 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005077/0.3875, allocations: 3.572 MB / 0.5479 GB, free: 5.605 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002997/0.3906, allocations: 1.863 MB / 0.5498 GB, free: 3.734 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004069/0.3946, allocations: 2.997 MB / 0.5527 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001083/0.3957, allocations: 320 kB / 0.553 GB, free: 424 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002566/0.3983, allocations: 1.178 MB / 0.5541 GB, free: 15.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002381/0.4007, allocations: 2.536 MB / 0.5566 GB, free: 12.69 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004467/0.4052, allocations: 3.358 MB / 0.5599 GB, free: 9.312 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01112/0.4163, allocations: 10.67 MB / 0.5703 GB, free: 14.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.4164, allocations: 4 kB / 0.5703 GB, free: 14.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4164, allocations: 0 / 0.5703 GB, free: 14.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002954/0.4167, allocations: 0 / 0.5703 GB, free: 14.6 MB / 394.7 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.03172/0.4484, allocations: 10.9 MB / 0.581 GB, free: 3.617 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.4485, allocations: 8.031 kB / 0.581 GB, free: 3.609 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01249/0.461, allocations: 3.54 MB / 0.5844 GB, free: 56 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00802/0.469, allocations: 3.379 MB / 0.5877 GB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003077/0.4694, allocations: 340.4 kB / 0.5881 GB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001806/0.4712, allocations: 447.5 kB / 0.5885 GB, free: 11.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03092/0.5021, allocations: 17.6 MB / 0.6057 GB, free: 9.047 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002242/0.5024, allocations: 79.23 kB / 0.6057 GB, free: 8.969 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001051/0.5034, allocations: 223.7 kB / 0.606 GB, free: 8.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005416/0.5089, allocations: 3.715 MB / 0.6096 GB, free: 5.023 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03131/0.5402, allocations: 15.4 MB / 0.6246 GB, free: 5.605 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2914/0.8316, allocations: 71.94 MB / 0.6949 GB, free: 100.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02052/0.8522, allocations: 7.333 MB / 0.702 GB, free: 96.66 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005167/0.8574, allocations: 3.343 MB / 0.7053 GB, free: 94.91 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02692/0.8844, allocations: 14.51 MB / 0.7195 GB, free: 84.76 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/0.8845, allocations: 68.56 kB / 0.7195 GB, free: 84.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=373): time 8.215e-06/0.8845, allocations: 0 / 0.7195 GB, free: 84.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=420): time 0.06716/0.9517, allocations: 25.47 MB / 0.7444 GB, free: 59.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.9517, allocations: 192.9 kB / 0.7446 GB, free: 59.57 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01013/0.9619, allocations: 6.581 MB / 0.751 GB, free: 52.98 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006005/0.9625, allocations: 81.7 kB / 0.7511 GB, free: 52.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002484/0.965, allocations: 4.779 MB / 0.7558 GB, free: 48.13 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001711/0.9667, allocations: 1.543 MB / 0.7573 GB, free: 46.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004546/0.9713, allocations: 2.141 MB / 0.7594 GB, free: 44.45 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.124e-05/0.9714, allocations: 305.1 kB / 0.7597 GB, free: 44.15 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00467/0.976, allocations: 3.613 MB / 0.7632 GB, free: 40.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007181/0.9832, allocations: 9.618 MB / 0.7726 GB, free: 27.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/0.996, allocations: 14.44 MB / 0.7867 GB, free: 10.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001388/0.9961, allocations: 64.22 kB / 0.7867 GB, free: 10.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.02176/1.018, allocations: 13.39 MB / 0.7998 GB, free: 13.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002243/1.018, allocations: 96.12 kB / 0.7999 GB, free: 12.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003241/1.018, allocations: 220 kB / 0.8001 GB, free: 12.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/1.02, allocations: 0.6007 MB / 0.8007 GB, free: 12.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008854/1.029, allocations: 2.46 MB / 0.8031 GB, free: 9.711 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006759/1.035, allocations: 4.741 MB / 0.8077 GB, free: 4.836 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008347/1.044, allocations: 499.5 kB / 0.8082 GB, free: 4.348 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002133/1.046, allocations: 0.6287 MB / 0.8088 GB, free: 3.723 MB / 474.7 MB 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.008161/1.054, allocations: 3.512 MB / 0.8123 GB, free: 200 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001917/1.056, allocations: 0.5747 MB / 0.8128 GB, free: 15.61 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/1.068, allocations: 5.235 MB / 0.8179 GB, free: 10.33 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.597e-05/1.068, allocations: 71.98 kB / 0.818 GB, free: 10.26 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/1.068, allocations: 8 kB / 0.818 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.851e-05/1.068, allocations: 19.92 kB / 0.818 GB, free: 10.23 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2374/1.306, allocations: 20.08 MB / 0.8376 GB, free: 163 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.537e-05/1.306, allocations: 24.08 kB / 0.8377 GB, free: 163 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003116/1.309, allocations: 0.6799 MB / 0.8383 GB, free: 162.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008797/1.31, allocations: 343.2 kB / 0.8387 GB, free: 162.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000381/1.31, allocations: 100.1 kB / 0.8387 GB, free: 162.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00567/1.316, allocations: 6.157 MB / 0.8448 GB, free: 157.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-05/1.316, allocations: 34.5 kB / 0.8448 GB, free: 157.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04063/1.356, allocations: 30.18 MB / 0.8743 GB, free: 141.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003278/1.36, allocations: 1.124 MB / 0.8754 GB, free: 140.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001444/1.361, allocations: 103.7 kB / 0.8755 GB, free: 140.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003449/1.365, allocations: 164.7 kB / 0.8756 GB, free: 140.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006995/1.365, allocations: 319.2 kB / 0.8759 GB, free: 140.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002381/1.366, allocations: 131 kB / 0.876 GB, free: 140.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006606/1.372, allocations: 4.353 MB / 0.8803 GB, free: 136.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.3e-07/1.372, allocations: 0 / 0.8803 GB, free: 136.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01043/1.383, allocations: 2.073 MB / 0.8823 GB, free: 134.4 MB / 490.7 MB 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.001149/1.384, allocations: 269.9 kB / 0.8826 GB, free: 134.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01332/1.397, allocations: 8.69 MB / 0.8911 GB, free: 126.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.133e-05/1.397, allocations: 4 kB / 0.8911 GB, free: 126.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004086/1.401, allocations: 3.093 MB / 0.8941 GB, free: 123.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005354/1.407, allocations: 0.8254 MB / 0.8949 GB, free: 122.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0285/1.435, allocations: 22.37 MB / 0.9167 GB, free: 99.58 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006682/1.442, allocations: 5.057 MB / 0.9217 GB, free: 94.48 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008662/1.451, allocations: 3.245 MB / 0.9249 GB, free: 91.23 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001699/1.452, allocations: 471.3 kB / 0.9253 GB, free: 90.77 MB / 490.7 MB Notification: Performance of SimCode: time 1.403e-06/1.452, allocations: 4 kB / 0.9253 GB, free: 90.77 MB / 490.7 MB Notification: Performance of Templates: time 0.1012/1.554, allocations: 70.38 MB / 0.994 GB, free: 20.8 MB / 490.7 MB 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)