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.001552/0.001553, allocations: 119.3 kB / 16.37 MB, free: 6.016 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.001772/0.001772, allocations: 193 kB / 17.31 MB, free: 5.613 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04335/0.04335, allocations: 9.119 MB / 300.3 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.89 kB / 363.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2365, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.01326/0.2498, allocations: 18.53 MB / 433.3 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.2604, allocations: 5.654 MB / 439 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00344/0.2638, allocations: 91.81 kB / 439.1 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003711/0.2676, allocations: 1.754 MB / 440.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007994/0.2757, allocations: 3.003 MB / 443.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002002/0.2777, allocations: 0.7332 MB / 444.6 MB, free: 11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009575/0.2873, allocations: 6.713 MB / 451.3 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005566/0.2929, allocations: 3.999 MB / 455.3 MB, free: 220 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003699/0.2966, allocations: 2.187 MB / 457.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003806/0.3004, allocations: 2.927 MB / 460.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001247/0.3017, allocations: 0.543 MB / 460.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003234/0.3049, allocations: 1.33 MB / 462.3 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002806/0.3078, allocations: 2.711 MB / 465 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004699/0.3125, allocations: 3.569 MB / 468.6 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01253/0.325, allocations: 11.37 MB / 479.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3251, allocations: 0 / 479.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3251, allocations: 0 / 479.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003305/0.3254, allocations: 0 / 479.9 MB, free: 7.488 MB / 350.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.03262/0.358, allocations: 10.9 MB / 490.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.3581, allocations: 8.031 kB / 490.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01186/0.37, allocations: 3.536 MB / 494.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007531/0.3775, allocations: 3.414 MB / 497.8 MB, free: 5.465 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002841/0.3779, allocations: 340.4 kB / 498.1 MB, free: 5.129 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001509/0.3794, allocations: 451.5 kB / 498.6 MB, free: 4.688 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03196/0.4113, allocations: 17.61 MB / 0.5041 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002018/0.4116, allocations: 75.23 kB / 0.5041 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007929/0.4124, allocations: 223.7 kB / 0.5044 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1884/0.6007, allocations: 3.707 MB / 0.508 GB, free: 79.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03027/0.631, allocations: 15.4 MB / 0.523 GB, free: 73.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08403/0.7151, allocations: 71.65 MB / 0.593 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02265/0.7378, allocations: 7.336 MB / 0.6001 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006615/0.7445, allocations: 3.337 MB / 0.6034 GB, free: 6.473 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0283/0.7728, allocations: 14.48 MB / 0.6175 GB, free: 7.562 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.629e-05/0.7729, allocations: 64.88 kB / 0.6176 GB, free: 7.488 MB / 414.1 MB Notification: Performance of pre-optimization done (n=373): time 6.392e-06/0.7729, allocations: 0 / 0.6176 GB, free: 7.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=420): time 0.07549/0.8484, allocations: 25.48 MB / 0.6425 GB, free: 13.81 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.8486, allocations: 192.9 kB / 0.6427 GB, free: 13.58 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009806/0.8584, allocations: 6.581 MB / 0.6491 GB, free: 6.992 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008183/0.8593, allocations: 85.69 kB / 0.6492 GB, free: 6.902 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003622/0.8629, allocations: 4.777 MB / 0.6538 GB, free: 2.059 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002112/0.865, allocations: 1.542 MB / 0.6554 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003282/0.8683, allocations: 2.138 MB / 0.6574 GB, free: 14.34 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.8684, allocations: 305.4 kB / 0.6577 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00592/0.8744, allocations: 3.609 MB / 0.6613 GB, free: 10.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0122/0.8866, allocations: 9.618 MB / 0.6706 GB, free: 13.88 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2662/1.153, allocations: 14.45 MB / 0.6848 GB, free: 150.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003493/1.153, allocations: 60.62 kB / 0.6848 GB, free: 150.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.02692/1.18, allocations: 13.39 MB / 0.6979 GB, free: 146 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/1.18, allocations: 96.97 kB / 0.698 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003296/1.181, allocations: 208.1 kB / 0.6982 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/1.182, allocations: 0.6061 MB / 0.6988 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00891/1.191, allocations: 2.456 MB / 0.7012 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006149/1.197, allocations: 5.098 MB / 0.7062 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009286/1.206, allocations: 496.4 kB / 0.7066 GB, free: 142.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002061/1.208, allocations: 0.6278 MB / 0.7072 GB, free: 142.2 MB / 478.1 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.006873/1.215, allocations: 3.52 MB / 0.7107 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00139/1.217, allocations: 0.5739 MB / 0.7112 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007976/1.225, allocations: 5.221 MB / 0.7163 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-05/1.225, allocations: 78.73 kB / 0.7164 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/1.225, allocations: 11.88 kB / 0.7164 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-05/1.225, allocations: 18.89 kB / 0.7164 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02915/1.254, allocations: 19.99 MB / 0.736 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.904e-05/1.254, allocations: 23.94 kB / 0.736 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/1.257, allocations: 0.671 MB / 0.7366 GB, free: 121.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007483/1.257, allocations: 354.3 kB / 0.737 GB, free: 121.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002361/1.258, allocations: 99.98 kB / 0.7371 GB, free: 121.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005345/1.263, allocations: 6.695 MB / 0.7436 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.682e-05/1.263, allocations: 39.81 kB / 0.7436 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01074/1.274, allocations: 9.765 MB / 0.7532 GB, free: 104.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003299/1.277, allocations: 1.118 MB / 0.7543 GB, free: 103 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001145/1.278, allocations: 96.81 kB / 0.7544 GB, free: 102.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002643/1.281, allocations: 159.9 kB / 0.7545 GB, free: 102.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005109/1.282, allocations: 324.9 kB / 0.7548 GB, free: 102.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/1.282, allocations: 136 kB / 0.755 GB, free: 102.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005982/1.288, allocations: 4.36 MB / 0.7592 GB, free: 97.93 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.6e-07/1.288, allocations: 0 / 0.7592 GB, free: 97.93 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008848/1.297, allocations: 1.624 MB / 0.7608 GB, free: 96.31 MB / 478.1 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.000757/1.297, allocations: 273.9 kB / 0.7611 GB, free: 96.04 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01236/1.31, allocations: 8.769 MB / 0.7696 GB, free: 87.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.858e-05/1.31, allocations: 4 kB / 0.7696 GB, free: 87.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003704/1.314, allocations: 3.093 MB / 0.7727 GB, free: 84.17 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004782/1.318, allocations: 0.8685 MB / 0.7735 GB, free: 83.34 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02062/1.339, allocations: 15.82 MB / 0.7889 GB, free: 67.18 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004461/1.343, allocations: 4.934 MB / 0.7938 GB, free: 62.21 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006403/1.35, allocations: 3.222 MB / 0.7969 GB, free: 58.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001516/1.351, allocations: 471.3 kB / 0.7974 GB, free: 58.52 MB / 478.1 MB Notification: Performance of SimCode: time 2.144e-06/1.351, allocations: 0 / 0.7974 GB, free: 58.52 MB / 478.1 MB Notification: Performance of Templates: time 0.09107/1.443, allocations: 57.5 MB / 0.8535 GB, free: 1.602 MB / 478.1 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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe 2>&1)