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.00103/0.00103, allocations: 174.7 kB / 12.73 MB, free: 2.59 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.163/1.163, allocations: 221.4 MB / 234.6 MB, free: 14.46 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.0008216/0.0008216, allocations: 86.69 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03789/0.03789, allocations: 8.835 MB / 345.3 MB, free: 1.316 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.953e-05/1.956e-05, allocations: 4 kB / 405.6 MB, free: 61.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07359/0.07362, allocations: 52.39 MB / 458 MB, free: 9.062 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2961/0.3698, allocations: 109.4 MB / 0.554 GB, free: 8.699 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/0.3701, allocations: 101.4 kB / 0.5541 GB, free: 8.648 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5375/0.9076, allocations: 153.3 MB / 0.7039 GB, free: 100.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.9077, allocations: 0 / 0.7039 GB, free: 100.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000237/0.9079, allocations: 127.4 kB / 0.704 GB, free: 100.9 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.03253/0.9404, allocations: 7.458 MB / 0.7113 GB, free: 98.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.9405, allocations: 7.781 kB / 0.7113 GB, free: 98.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01657/0.9571, allocations: 3.961 MB / 0.7151 GB, free: 97.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01275/0.9699, allocations: 5.681 MB / 0.7207 GB, free: 96.11 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003522/0.9703, allocations: 474.2 kB / 0.7211 GB, free: 95.94 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002388/0.9727, allocations: 0.6192 MB / 0.7217 GB, free: 95.77 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02934/1.002, allocations: 17.59 MB / 0.7389 GB, free: 79.24 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000228/1.002, allocations: 91.11 kB / 0.739 GB, free: 79.15 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001147/1.003, allocations: 307 kB / 0.7393 GB, free: 78.91 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00224/1.006, allocations: 1.965 MB / 0.7412 GB, free: 76.94 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02637/1.032, allocations: 15.31 MB / 0.7562 GB, free: 61.61 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3194/1.351, allocations: 80.55 MB / 0.8348 GB, free: 40.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02217/1.374, allocations: 7.321 MB / 0.842 GB, free: 38.96 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005037/1.379, allocations: 3.272 MB / 0.8452 GB, free: 38.91 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02297/1.402, allocations: 14.67 MB / 0.8595 GB, free: 35.54 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/1.402, allocations: 75.98 kB / 0.8596 GB, free: 35.49 MB / 458.7 MB Notification: Performance of pre-optimization done (n=373): time 5.45e-06/1.402, allocations: 0 / 0.8596 GB, free: 35.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=420): time 0.05403/1.456, allocations: 23.13 MB / 0.8822 GB, free: 30.28 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/1.456, allocations: 195.6 kB / 0.8823 GB, free: 30.09 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007281/1.463, allocations: 5.8 MB / 0.888 GB, free: 28.39 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003646/1.464, allocations: 81.3 kB / 0.8881 GB, free: 28.31 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001995/1.466, allocations: 4.813 MB / 0.8928 GB, free: 24.59 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001076/1.467, allocations: 1.551 MB / 0.8943 GB, free: 23.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003866/1.467, allocations: 207.1 kB / 0.8945 GB, free: 23.29 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003953/1.468, allocations: 0.7618 MB / 0.8952 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00421/1.472, allocations: 3.449 MB / 0.8986 GB, free: 21.53 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006014/1.478, allocations: 9.428 MB / 0.9078 GB, free: 12.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0065/1.484, allocations: 5.843 MB / 0.9135 GB, free: 10.41 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.23e-05/1.484, allocations: 60.62 kB / 0.9136 GB, free: 10.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=1386) (initialization): time 0.01616/1.501, allocations: 13.06 MB / 0.9263 GB, free: 5.988 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.553e-05/1.501, allocations: 98.12 kB / 0.9264 GB, free: 5.988 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001551/1.501, allocations: 210.8 kB / 0.9266 GB, free: 5.984 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009881/1.502, allocations: 0.6386 MB / 0.9273 GB, free: 5.414 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006693/1.509, allocations: 2.455 MB / 0.9297 GB, free: 3.289 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005149/1.514, allocations: 4.726 MB / 0.9343 GB, free: 14.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006496/1.52, allocations: 0.4966 MB / 0.9348 GB, free: 14.42 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/1.521, allocations: 0.6268 MB / 0.9354 GB, free: 13.82 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * 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 (1305): * Single equations (assignments): 1298 * 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 {(6,44.4%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00142/1.523, allocations: 0.8907 MB / 0.9362 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.524, allocations: 0.5745 MB / 0.9368 GB, free: 12.35 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008291/1.532, allocations: 5.132 MB / 0.9418 GB, free: 7.883 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.043e-05/1.532, allocations: 67.61 kB / 0.9419 GB, free: 7.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/1.532, allocations: 8 kB / 0.9419 GB, free: 7.812 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.179e-05/1.532, allocations: 21.77 kB / 0.9419 GB, free: 7.809 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02932/1.562, allocations: 19.89 MB / 0.9613 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.182e-05/1.562, allocations: 24 kB / 0.9613 GB, free: 6.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002807/1.564, allocations: 0.674 MB / 0.962 GB, free: 6.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007872/1.565, allocations: 350.5 kB / 0.9623 GB, free: 6.105 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002393/1.565, allocations: 102.2 kB / 0.9624 GB, free: 6.012 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005628/1.571, allocations: 6.159 MB / 0.9685 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.182e-05/1.571, allocations: 31.88 kB / 0.9685 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/1.584, allocations: 13.83 MB / 0.982 GB, free: 1.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001858/1.586, allocations: 0.7317 MB / 0.9827 GB, free: 0.7812 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007315/1.587, allocations: 98.16 kB / 0.9828 GB, free: 0.6914 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002352/1.589, allocations: 163.2 kB / 0.983 GB, free: 0.5703 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000495/1.59, allocations: 319 kB / 0.9833 GB, free: 352 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/1.59, allocations: 134.7 kB / 0.9834 GB, free: 224 kB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01705/1.607, allocations: 5.072 MB / 0.9883 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.31e-07/1.607, allocations: 3.938 kB / 0.9883 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008711/1.616, allocations: 1.652 MB / 0.99 GB, free: 12.59 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 104 * 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 (365): * Single equations (assignments): 356 * 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.0007406/1.616, allocations: 287.5 kB / 0.9902 GB, free: 12.32 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01305/1.629, allocations: 8.448 MB / 0.9985 GB, free: 3.887 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-05/1.63, allocations: 8.062 kB / 0.9985 GB, free: 3.879 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004479/1.634, allocations: 3.017 MB / 1.001 GB, free: 0.8242 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004318/1.638, allocations: 0.7703 MB / 1.002 GB, free: 92 kB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02423/1.663, allocations: 13.32 MB / 1.015 GB, free: 2.43 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2322/1.895, allocations: 5.062 MB / 1.02 GB, free: 152.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009355/1.904, allocations: 3.233 MB / 1.023 GB, free: 152.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/1.906, allocations: 466.1 kB / 1.024 GB, free: 152.3 MB / 0.5261 GB Notification: Performance of SimCode: time 7.31e-07/1.906, allocations: 0 / 1.024 GB, free: 152.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.09908/2.005, allocations: 62.46 MB / 1.085 GB, free: 142.3 MB / 0.5261 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)