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.0009698/0.0009698, allocations: 173.5 kB / 7.642 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 221.5 MB / 229.6 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008936/0.0008937, allocations: 91.11 kB / 280.5 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03786/0.03786, allocations: 8.829 MB / 340.1 MB, free: 6.398 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.016e-05/2.017e-05, allocations: 6.094 kB / 398.7 MB, free: 47.64 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1136, allocations: 52.39 MB / 451.1 MB, free: 4.547 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4531/0.5668, allocations: 108.7 MB / 0.5466 GB, free: 23.87 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.5671, allocations: 99 kB / 0.5467 GB, free: 23.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3496/0.9167, allocations: 149.7 MB / 0.693 GB, free: 3.52 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.9168, allocations: 0 / 0.693 GB, free: 3.52 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003751/0.9172, allocations: 116 kB / 0.6931 GB, free: 3.406 MB / 458.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.3649/1.282, allocations: 7.45 MB / 0.7003 GB, free: 69.56 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.255e-05/1.282, allocations: 13.2 kB / 0.7004 GB, free: 69.56 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02231/1.304, allocations: 3.964 MB / 0.7042 GB, free: 69.11 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02069/1.325, allocations: 5.664 MB / 0.7098 GB, free: 68.79 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004839/1.326, allocations: 208.8 kB / 0.71 GB, free: 68.79 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00468/1.33, allocations: 367.8 kB / 0.7103 GB, free: 68.78 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02154/1.352, allocations: 11.11 MB / 0.7211 GB, free: 68.75 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03835/1.39, allocations: 16.1 MB / 0.7369 GB, free: 64.74 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00064/1.391, allocations: 87.53 kB / 0.737 GB, free: 64.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00452/1.396, allocations: 47.91 kB / 0.737 GB, free: 64.73 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003644/1.399, allocations: 1.972 MB / 0.7389 GB, free: 64.72 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1077/1.507, allocations: 78.02 MB / 0.8151 GB, free: 30.34 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009542/1.517, allocations: 6.794 MB / 0.8218 GB, free: 26.24 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003989/1.521, allocations: 2.376 MB / 0.8241 GB, free: 25.32 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02059/1.541, allocations: 10.89 MB / 0.8347 GB, free: 19.19 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.033e-05/1.541, allocations: 60.81 kB / 0.8348 GB, free: 19.13 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 6.542e-06/1.541, allocations: 3.375 kB / 0.8348 GB, free: 19.13 MB / 474.7 MB Notification: Performance of matching and sorting (n=330): time 0.03583/1.577, allocations: 16.62 MB / 0.851 GB, free: 5.633 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/1.577, allocations: 188.2 kB / 0.8512 GB, free: 5.414 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01133/1.589, allocations: 5.341 MB / 0.8564 GB, free: 0.7188 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000659/1.589, allocations: 25.7 kB / 0.8564 GB, free: 0.6875 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005362/1.595, allocations: 5.145 MB / 0.8615 GB, free: 12 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00219/1.597, allocations: 1.228 MB / 0.8627 GB, free: 10.91 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001603/1.599, allocations: 0 / 0.8627 GB, free: 10.91 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001537/1.6, allocations: 0.7687 MB / 0.8634 GB, free: 10.26 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007502/1.608, allocations: 3.274 MB / 0.8666 GB, free: 7.289 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3635/1.971, allocations: 9.465 MB / 0.8758 GB, free: 87.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/1.983, allocations: 5.675 MB / 0.8814 GB, free: 87.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003147/1.984, allocations: 63.72 kB / 0.8814 GB, free: 87.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=1413) (initialization): time 0.02785/2.011, allocations: 11.8 MB / 0.893 GB, free: 87.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001805/2.012, allocations: 98.59 kB / 0.8931 GB, free: 87.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002797/2.012, allocations: 225.7 kB / 0.8933 GB, free: 87.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/2.013, allocations: 0.617 MB / 0.8939 GB, free: 87.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009451/2.023, allocations: 2.5 MB / 0.8963 GB, free: 86.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005668/2.028, allocations: 4.599 MB / 0.9008 GB, free: 85.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009266/2.038, allocations: 310.8 kB / 0.9011 GB, free: 85.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002568/2.04, allocations: 0.6456 MB / 0.9017 GB, free: 85.46 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1008 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1332): * Single equations (assignments): 1325 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,52.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002622/2.043, allocations: 0.6431 MB / 0.9024 GB, free: 85.14 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001246/2.044, allocations: 0.5163 MB / 0.9029 GB, free: 85.14 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007026/2.051, allocations: 3.9 MB / 0.9067 GB, free: 84.89 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.182e-05/2.051, allocations: 62.08 kB / 0.9067 GB, free: 84.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-05/2.051, allocations: 8 kB / 0.9068 GB, free: 84.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.313e-05/2.051, allocations: 15.52 kB / 0.9068 GB, free: 84.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02277/2.074, allocations: 10.32 MB / 0.9168 GB, free: 84.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.451e-05/2.074, allocations: 11.23 kB / 0.9169 GB, free: 84.14 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002345/2.077, allocations: 0.5059 MB / 0.9173 GB, free: 84.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008064/2.077, allocations: 316.8 kB / 0.9177 GB, free: 84.09 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002925/2.078, allocations: 22.08 kB / 0.9177 GB, free: 84.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005646/2.083, allocations: 5.911 MB / 0.9234 GB, free: 80.41 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/2.083, allocations: 3.625 kB / 0.9234 GB, free: 80.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0126/2.096, allocations: 7.825 MB / 0.9311 GB, free: 78.48 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00189/2.098, allocations: 0.6204 MB / 0.9317 GB, free: 78.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/2.099, allocations: 7.312 kB / 0.9317 GB, free: 78.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002421/2.102, allocations: 92.16 kB / 0.9318 GB, free: 78.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000371/2.102, allocations: 201.5 kB / 0.932 GB, free: 78.08 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/2.102, allocations: 90.12 kB / 0.9321 GB, free: 78.08 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006229/2.108, allocations: 3.558 MB / 0.9355 GB, free: 77.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.353e-06/2.108, allocations: 0 / 0.9355 GB, free: 77.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01066/2.119, allocations: 1.365 MB / 0.9369 GB, free: 77.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (heatCapacitor.T,planetary.planetRing.frame_a.phi,planetary.bearing_Carrier.phi,planetary.bearing_Carrier.w,sunSpeed.phi,ringTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (275): * Single equations (assignments): 266 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,52.0%) 22,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009676/2.12, allocations: 187.6 kB / 0.9371 GB, free: 77.78 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01295/2.133, allocations: 7.528 MB / 0.9444 GB, free: 76.23 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/2.133, allocations: 0 / 0.9444 GB, free: 76.23 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003104/2.136, allocations: 2.351 MB / 0.9467 GB, free: 75.14 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/2.14, allocations: 0.5152 MB / 0.9472 GB, free: 74.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02962/2.169, allocations: 11.97 MB / 0.9589 GB, free: 70.27 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01005/2.18, allocations: 5.011 MB / 0.9638 GB, free: 68.47 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.011/2.191, allocations: 3.185 MB / 0.9669 GB, free: 68.25 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001738/2.192, allocations: 414.4 kB / 0.9673 GB, free: 68.22 MB / 490.7 MB Notification: Performance of SimCode: time 8.62e-07/2.192, allocations: 0 / 0.9673 GB, free: 68.22 MB / 490.7 MB Notification: Performance of Templates: time 0.09568/2.288, allocations: 49.31 MB / 1.015 GB, free: 38.38 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)