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.00111/0.00111, allocations: 111.5 kB / 16.37 MB, free: 5.539 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.001176/0.001176, allocations: 192 kB / 17.31 MB, free: 5.18 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.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04524/0.04524, allocations: 9.106 MB / 300.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 59.91 kB / 363.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2502, allocations: 51.42 MB / 414.8 MB, free: 24.87 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.0266/0.2768, allocations: 18.53 MB / 433.3 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01586/0.2927, allocations: 5.647 MB / 439 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003985/0.2968, allocations: 91.81 kB / 439.1 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004261/0.3011, allocations: 1.754 MB / 440.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008584/0.3098, allocations: 3.007 MB / 443.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002093/0.3119, allocations: 0.7332 MB / 444.6 MB, free: 11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.3222, allocations: 6.709 MB / 451.3 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006698/0.3289, allocations: 3.999 MB / 455.3 MB, free: 224 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00458/0.3335, allocations: 2.183 MB / 457.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004656/0.3382, allocations: 2.927 MB / 460.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0019/0.3401, allocations: 0.543 MB / 460.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003703/0.3439, allocations: 1.334 MB / 462.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003844/0.3477, allocations: 2.715 MB / 465 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006257/0.354, allocations: 3.562 MB / 468.5 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01524/0.3693, allocations: 11.36 MB / 479.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.3693, allocations: 0 / 479.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.3693, allocations: 0 / 479.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004857/0.3698, allocations: 0 / 479.9 MB, free: 7.5 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.03695/0.4068, allocations: 10.91 MB / 490.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.4068, allocations: 12.03 kB / 490.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01312/0.42, allocations: 3.536 MB / 494.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008569/0.4286, allocations: 3.414 MB / 497.8 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000293/0.4289, allocations: 348.4 kB / 498.1 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001792/0.4307, allocations: 447.5 kB / 498.6 MB, free: 4.688 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0302/0.4609, allocations: 17.61 MB / 0.5041 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001976/0.4611, allocations: 75.31 kB / 0.5041 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007636/0.4619, allocations: 219.7 kB / 0.5043 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1971/0.659, allocations: 3.716 MB / 0.508 GB, free: 80.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03119/0.6902, allocations: 15.39 MB / 0.523 GB, free: 75.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08997/0.7802, allocations: 71.65 MB / 0.593 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03071/0.811, allocations: 7.343 MB / 0.6002 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005757/0.8168, allocations: 3.334 MB / 0.6034 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0292/0.846, allocations: 14.48 MB / 0.6175 GB, free: 9.199 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.255e-05/0.8461, allocations: 68.81 kB / 0.6176 GB, free: 9.121 MB / 414.1 MB Notification: Performance of pre-optimization done (n=373): time 5.831e-06/0.8461, allocations: 0 / 0.6176 GB, free: 9.121 MB / 414.1 MB Notification: Performance of matching and sorting (n=420): time 0.08029/0.9264, allocations: 25.47 MB / 0.6425 GB, free: 15.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.9266, allocations: 204.8 kB / 0.6427 GB, free: 15.21 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01256/0.9392, allocations: 6.577 MB / 0.6491 GB, free: 8.621 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008612/0.9401, allocations: 89.7 kB / 0.6492 GB, free: 8.527 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004131/0.9442, allocations: 4.773 MB / 0.6538 GB, free: 3.688 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002489/0.9467, allocations: 1.542 MB / 0.6554 GB, free: 2.125 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003359/0.9501, allocations: 2.134 MB / 0.6574 GB, free: 15.98 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.9502, allocations: 305.1 kB / 0.6577 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006068/0.9563, allocations: 3.609 MB / 0.6613 GB, free: 12.06 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0114/0.9677, allocations: 9.618 MB / 0.6706 GB, free: 15.51 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2676/1.235, allocations: 14.45 MB / 0.6848 GB, free: 152.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002972/1.236, allocations: 59.91 kB / 0.6848 GB, free: 152.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.02705/1.263, allocations: 13.39 MB / 0.6979 GB, free: 148.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/1.263, allocations: 96.03 kB / 0.698 GB, free: 148.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002416/1.263, allocations: 208.2 kB / 0.6982 GB, free: 148.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/1.264, allocations: 0.6054 MB / 0.6988 GB, free: 148.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007677/1.272, allocations: 2.454 MB / 0.7012 GB, free: 148 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006024/1.278, allocations: 5.097 MB / 0.7061 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007869/1.286, allocations: 497.7 kB / 0.7066 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001275/1.287, allocations: 0.6256 MB / 0.7072 GB, free: 144.7 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.005197/1.293, allocations: 3.521 MB / 0.7107 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009316/1.294, allocations: 0.5738 MB / 0.7112 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007576/1.301, allocations: 5.23 MB / 0.7163 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.576e-05/1.301, allocations: 68 kB / 0.7164 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/1.301, allocations: 7.5 kB / 0.7164 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.02e-05/1.301, allocations: 19.45 kB / 0.7164 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02775/1.329, allocations: 20 MB / 0.736 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.373e-05/1.329, allocations: 27.98 kB / 0.736 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002714/1.332, allocations: 0.6708 MB / 0.7366 GB, free: 125.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007655/1.333, allocations: 350.5 kB / 0.737 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002609/1.333, allocations: 111.9 kB / 0.7371 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005307/1.338, allocations: 6.684 MB / 0.7436 GB, free: 117.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-05/1.338, allocations: 43.81 kB / 0.7436 GB, free: 117.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/1.35, allocations: 9.756 MB / 0.7532 GB, free: 107.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003311/1.353, allocations: 1.122 MB / 0.7543 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001195/1.354, allocations: 99.97 kB / 0.7544 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002871/1.357, allocations: 159.1 kB / 0.7545 GB, free: 106 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006016/1.358, allocations: 325.3 kB / 0.7548 GB, free: 105.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002425/1.358, allocations: 136 kB / 0.755 GB, free: 105.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006823/1.365, allocations: 4.354 MB / 0.7592 GB, free: 101.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.365, allocations: 0 / 0.7592 GB, free: 101.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00989/1.375, allocations: 1.632 MB / 0.7608 GB, free: 99.55 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.000898/1.376, allocations: 271 kB / 0.7611 GB, free: 99.28 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01252/1.388, allocations: 8.775 MB / 0.7696 GB, free: 90.54 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-05/1.388, allocations: 4 kB / 0.7696 GB, free: 90.54 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004004/1.392, allocations: 3.094 MB / 0.7727 GB, free: 87.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005035/1.397, allocations: 0.8598 MB / 0.7735 GB, free: 86.59 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/1.421, allocations: 15.83 MB / 0.789 GB, free: 70.42 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005205/1.426, allocations: 4.926 MB / 0.7938 GB, free: 65.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006822/1.433, allocations: 3.226 MB / 0.7969 GB, free: 62.22 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001312/1.434, allocations: 471.3 kB / 0.7974 GB, free: 61.76 MB / 478.1 MB Notification: Performance of SimCode: time 1.193e-06/1.434, allocations: 0 / 0.7974 GB, free: 61.76 MB / 478.1 MB Notification: Performance of Templates: time 0.09777/1.532, allocations: 57.5 MB / 0.8535 GB, free: 4.84 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 gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe 2>&1)