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.001392/0.001392, allocations: 170.2 kB / 16.11 MB, free: 5.582 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.427/1.427, allocations: 223.2 MB / 240.1 MB, free: 1.441 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.0009788/0.0009791, allocations: 95.58 kB / 291.3 MB, free: 13.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04786/0.04786, allocations: 8.947 MB / 351.4 MB, free: 1.895 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004575/0.0004576, allocations: 14.09 kB / 414.4 MB, free: 88.41 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09638/0.09686, allocations: 52.39 MB / 466.8 MB, free: 41.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3563/0.4532, allocations: 109.5 MB / 0.5628 GB, free: 15.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003411/0.4536, allocations: 103.6 kB / 0.5629 GB, free: 15.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6159/1.07, allocations: 151.4 MB / 0.7108 GB, free: 73.34 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.756e-06/1.07, allocations: 0 / 0.7108 GB, free: 73.34 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005364/1.07, allocations: 123.5 kB / 0.7109 GB, free: 73.34 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.03996/1.11, allocations: 7.389 MB / 0.7181 GB, free: 70.78 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/1.11, allocations: 9.969 kB / 0.7181 GB, free: 70.78 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01935/1.129, allocations: 3.926 MB / 0.7219 GB, free: 70.34 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01434/1.144, allocations: 4.635 MB / 0.7265 GB, free: 69.57 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001045/1.145, allocations: 478.7 kB / 0.7269 GB, free: 69.56 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00655/1.152, allocations: 0.6205 MB / 0.7275 GB, free: 69.55 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04843/1.2, allocations: 17.62 MB / 0.7447 GB, free: 65.51 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000696/1.201, allocations: 93.84 kB / 0.7448 GB, free: 65.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004632/1.205, allocations: 311.4 kB / 0.7451 GB, free: 65.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00378/1.209, allocations: 1.965 MB / 0.747 GB, free: 65.48 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03703/1.246, allocations: 15.4 MB / 0.7621 GB, free: 65.15 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1143/1.361, allocations: 80.47 MB / 0.8407 GB, free: 22.6 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02164/1.382, allocations: 7.388 MB / 0.8479 GB, free: 16.16 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005855/1.388, allocations: 3.312 MB / 0.8511 GB, free: 13.23 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03478/1.423, allocations: 14.56 MB / 0.8653 GB, free: 0.7617 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.587e-05/1.423, allocations: 68.88 kB / 0.8654 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of pre-optimization done (n=373): time 1.062e-05/1.423, allocations: 0 / 0.8654 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of matching and sorting (n=420): time 0.3406/1.764, allocations: 26.24 MB / 0.891 GB, free: 82.34 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.273e-05/1.764, allocations: 195.9 kB / 0.8912 GB, free: 82.14 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01023/1.774, allocations: 6.535 MB / 0.8976 GB, free: 81.62 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007365/1.775, allocations: 87.36 kB / 0.8977 GB, free: 81.59 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003567/1.779, allocations: 4.807 MB / 0.9024 GB, free: 79.35 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002544/1.781, allocations: 1.551 MB / 0.9039 GB, free: 78.44 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001155/1.782, allocations: 209.6 kB / 0.9041 GB, free: 78.44 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009446/1.783, allocations: 0.7546 MB / 0.9048 GB, free: 78.12 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006591/1.79, allocations: 3.537 MB / 0.9083 GB, free: 78.09 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009036/1.799, allocations: 9.552 MB / 0.9176 GB, free: 70.46 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01551/1.815, allocations: 14.34 MB / 0.9316 GB, free: 62.57 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003478/1.815, allocations: 58.81 kB / 0.9317 GB, free: 62.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=1386) (initialization): time 0.02771/1.843, allocations: 13.23 MB / 0.9446 GB, free: 58.93 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003308/1.843, allocations: 94.97 kB / 0.9447 GB, free: 58.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004753/1.843, allocations: 211.2 kB / 0.9449 GB, free: 58.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/1.845, allocations: 0.6076 MB / 0.9455 GB, free: 58.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009148/1.854, allocations: 2.456 MB / 0.9479 GB, free: 58.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006233/1.86, allocations: 4.739 MB / 0.9525 GB, free: 55.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01031/1.871, allocations: 492.8 kB / 0.953 GB, free: 55.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002669/1.874, allocations: 0.6265 MB / 0.9536 GB, free: 55.39 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 () * Number of clocked 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.01049/1.884, allocations: 3.516 MB / 0.957 GB, free: 53.62 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002136/1.886, allocations: 0.5746 MB / 0.9576 GB, free: 53.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/1.897, allocations: 5.204 MB / 0.9627 GB, free: 51.08 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.301e-05/1.897, allocations: 72.88 kB / 0.9627 GB, free: 51.07 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.053e-05/1.898, allocations: 7.609 kB / 0.9627 GB, free: 51.07 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.612e-05/1.898, allocations: 28.44 kB / 0.9628 GB, free: 51.07 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04066/1.938, allocations: 20 MB / 0.9823 GB, free: 37.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001051/1.938, allocations: 24 kB / 0.9823 GB, free: 37.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003266/1.942, allocations: 0.6788 MB / 0.983 GB, free: 37.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008684/1.943, allocations: 350.4 kB / 0.9833 GB, free: 37.01 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007579/1.943, allocations: 101.7 kB / 0.9834 GB, free: 36.92 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005274/1.949, allocations: 6.182 MB / 0.9894 GB, free: 30.71 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.709e-05/1.949, allocations: 35.88 kB / 0.9895 GB, free: 30.67 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01482/1.964, allocations: 9.703 MB / 0.9989 GB, free: 21.39 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00269/1.966, allocations: 0.7297 MB / 0.9997 GB, free: 20.68 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002341/1.969, allocations: 102.7 kB / 0.9998 GB, free: 20.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004315/1.973, allocations: 158.6 kB / 0.9999 GB, free: 20.46 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007422/1.974, allocations: 319.3 kB / 1 GB, free: 20.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/1.974, allocations: 141 kB / 1 GB, free: 20.11 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009221/1.983, allocations: 4.319 MB / 1.005 GB, free: 16.53 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.173e-06/1.983, allocations: 0 / 1.005 GB, free: 16.53 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01409/1.997, allocations: 1.64 MB / 1.006 GB, free: 14.9 MB / 474.7 MB 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 () * 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 (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.00138/1.999, allocations: 292 kB / 1.006 GB, free: 14.62 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01431/2.013, allocations: 8.61 MB / 1.015 GB, free: 6.984 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-05/2.013, allocations: 4 kB / 1.015 GB, free: 6.98 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004172/2.017, allocations: 3.091 MB / 1.018 GB, free: 4.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02558/2.043, allocations: 0.8304 MB / 1.019 GB, free: 3.477 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03756/2.081, allocations: 18.51 MB / 1.037 GB, free: 2.223 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007854/2.089, allocations: 4.931 MB / 1.042 GB, free: 14.4 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.2744/2.363, allocations: 3.946 MB / 1.045 GB, free: 96.93 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002849/2.366, allocations: 465.3 kB / 1.046 GB, free: 96.93 MB / 0.4949 GB Notification: Performance of SimCode: time 1.392e-06/2.366, allocations: 2.844 kB / 1.046 GB, free: 96.93 MB / 0.4949 GB Notification: Performance of Templates: time 0.17/2.536, allocations: 62.69 MB / 1.107 GB, free: 94.13 MB / 0.4949 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)