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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003318/0.003318, allocations: 180.9 kB / 7.453 MB, free: 2.516 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.244/1.244, allocations: 221.4 MB / 229.3 MB, free: 3.129 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.0009451/0.0009451, allocations: 97.19 kB / 280.1 MB, free: 1.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04533/0.04533, allocations: 8.841 MB / 339.7 MB, free: 5.715 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.611e-06/5.651e-06, allocations: 3.938 kB / 398.1 MB, free: 67.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06784/0.06786, allocations: 52.38 MB / 450.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2482/0.3161, allocations: 109 MB / 0.5464 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.3163, allocations: 92.3 kB / 0.5465 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.5314/0.8478, allocations: 148.6 MB / 0.6916 GB, free: 69.05 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002353/0.848, allocations: 121.5 kB / 0.6917 GB, free: 69.05 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.03732/0.8854, allocations: 7.543 MB / 0.6991 GB, free: 66.37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.2e-05/0.8855, allocations: 10.91 kB / 0.6991 GB, free: 66.37 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01806/0.9035, allocations: 3.259 MB / 0.7023 GB, free: 65.89 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01446/0.918, allocations: 5.708 MB / 0.7078 GB, free: 64.96 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002638/0.9183, allocations: 203.3 kB / 0.708 GB, free: 64.96 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002324/0.9207, allocations: 362.4 kB / 0.7084 GB, free: 64.96 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01626/0.9369, allocations: 11.33 MB / 0.7194 GB, free: 64.92 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02397/0.9609, allocations: 16.31 MB / 0.7354 GB, free: 57.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002364/0.9612, allocations: 99.62 kB / 0.7355 GB, free: 57.85 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00101/0.9622, allocations: 42.69 kB / 0.7355 GB, free: 57.85 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002468/0.9647, allocations: 2.064 MB / 0.7375 GB, free: 57.43 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09098/1.056, allocations: 79.16 MB / 0.8148 GB, free: 2.355 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006503/1.062, allocations: 3.971 MB / 0.8187 GB, free: 14.25 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004225/1.067, allocations: 2.399 MB / 0.821 GB, free: 11.82 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02171/1.088, allocations: 11.33 MB / 0.8321 GB, free: 128 kB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.972e-05/1.088, allocations: 72.48 kB / 0.8322 GB, free: 48 kB / 490.7 MB Notification: Performance of pre-optimization done (n=307): time 6.472e-06/1.088, allocations: 0 / 0.8322 GB, free: 48 kB / 490.7 MB Notification: Performance of matching and sorting (n=348): time 0.1669/1.255, allocations: 17.79 MB / 0.8495 GB, free: 164.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/1.255, allocations: 189.1 kB / 0.8497 GB, free: 164.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007993/1.263, allocations: 5.428 MB / 0.855 GB, free: 164.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004715/1.264, allocations: 25.7 kB / 0.8551 GB, free: 164.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002047/1.266, allocations: 4.81 MB / 0.8598 GB, free: 161.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00116/1.267, allocations: 1.288 MB / 0.861 GB, free: 160.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004836/1.268, allocations: 0 / 0.861 GB, free: 160.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004669/1.268, allocations: 0.7696 MB / 0.8618 GB, free: 160.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00506/1.273, allocations: 3.458 MB / 0.8651 GB, free: 160.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007357/1.281, allocations: 9.659 MB / 0.8746 GB, free: 152.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007715/1.288, allocations: 5.951 MB / 0.8804 GB, free: 152.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/1.288, allocations: 63 kB / 0.8804 GB, free: 152.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=1431) (initialization): time 0.02148/1.31, allocations: 12.13 MB / 0.8923 GB, free: 150 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/1.31, allocations: 3.281 kB / 0.8923 GB, free: 150 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003964/1.31, allocations: 226.2 kB / 0.8925 GB, free: 150 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/1.312, allocations: 0.626 MB / 0.8931 GB, free: 150 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009574/1.321, allocations: 2.512 MB / 0.8956 GB, free: 149.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005786/1.327, allocations: 4.352 MB / 0.8998 GB, free: 147.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009482/1.337, allocations: 283.9 kB / 0.9001 GB, free: 147 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002308/1.339, allocations: 0.644 MB / 0.9007 GB, free: 147 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 (1350): * Single equations (assignments): 1343 * 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.002871/1.342, allocations: 0.654 MB / 0.9014 GB, free: 146.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001433/1.343, allocations: 0.5099 MB / 0.9019 GB, free: 146.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009472/1.353, allocations: 4.231 MB / 0.906 GB, free: 144.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001136/1.353, allocations: 51.61 kB / 0.906 GB, free: 144.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.77e-05/1.353, allocations: 6.5 kB / 0.906 GB, free: 144.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.869e-05/1.353, allocations: 16.06 kB / 0.9061 GB, free: 144.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02377/1.377, allocations: 11.08 MB / 0.9169 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-05/1.377, allocations: 13.81 kB / 0.9169 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003/1.38, allocations: 0.5126 MB / 0.9174 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009457/1.381, allocations: 326.6 kB / 0.9177 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003979/1.381, allocations: 23.03 kB / 0.9177 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00542/1.387, allocations: 5.746 MB / 0.9233 GB, free: 133.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/1.387, allocations: 8 kB / 0.9233 GB, free: 133.1 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01039/1.397, allocations: 8.584 MB / 0.9317 GB, free: 124.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001616/1.399, allocations: 0.6137 MB / 0.9323 GB, free: 124.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001452/1.4, allocations: 8 kB / 0.9323 GB, free: 124.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003037/1.403, allocations: 67.78 kB / 0.9324 GB, free: 124.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003958/1.404, allocations: 171.7 kB / 0.9326 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002508/1.404, allocations: 93.95 kB / 0.9327 GB, free: 124 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.006369/1.41, allocations: 3.63 MB / 0.9362 GB, free: 120.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009909/1.42, allocations: 1.381 MB / 0.9375 GB, free: 119.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (293): * Single equations (assignments): 284 * 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.0009276/1.421, allocations: 179.6 kB / 0.9377 GB, free: 119.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01322/1.434, allocations: 7.886 MB / 0.9454 GB, free: 112.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/1.435, allocations: 0.75 kB / 0.9454 GB, free: 112.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003778/1.438, allocations: 2.475 MB / 0.9478 GB, free: 109.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003505/1.442, allocations: 0.5048 MB / 0.9483 GB, free: 109.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02927/1.471, allocations: 12.31 MB / 0.9604 GB, free: 98.13 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00943/1.481, allocations: 5.508 MB / 0.9657 GB, free: 93.89 MB / 490.7 MB Notification: Performance of SimCode: time 1.102e-06/1.481, allocations: 4 kB / 0.9657 GB, free: 93.89 MB / 490.7 MB Notification: Performance of Templates: time 0.1111/1.592, allocations: 61.19 MB / 1.025 GB, free: 41.66 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)