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: "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.PlanetaryGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.PlanetaryGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear",fmuType="me",version="2.0",platforms={"static"}) [: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.002715/0.002715, allocations: 185.6 kB / 7.459 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.18/1.18, allocations: 221.4 MB / 229.3 MB, free: 3.066 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.0008987/0.0008988, allocations: 105.2 kB / 280.1 MB, free: 1.305 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03797/0.03798, allocations: 8.84 MB / 339.7 MB, free: 5.762 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1976/0.2356, allocations: 58.49 MB / 398.2 MB, free: 67.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0863/0.3219, allocations: 52.4 MB / 450.6 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3133/0.6353, allocations: 109 MB / 0.5465 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/0.6356, allocations: 98.88 kB / 0.5466 GB, free: 0.582 MB / 362.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.6436/1.279, allocations: 156.3 MB / 0.6992 GB, free: 96.99 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/1.279, allocations: 11.25 kB / 0.6992 GB, free: 96.99 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01692/1.296, allocations: 3.252 MB / 0.7024 GB, free: 96.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01425/1.311, allocations: 5.716 MB / 0.7079 GB, free: 95.55 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003556/1.311, allocations: 203.1 kB / 0.7081 GB, free: 95.55 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003243/1.314, allocations: 371.1 kB / 0.7085 GB, free: 95.55 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01913/1.333, allocations: 11.33 MB / 0.7195 GB, free: 93.72 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02865/1.362, allocations: 16.31 MB / 0.7355 GB, free: 82.24 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003712/1.362, allocations: 93.61 kB / 0.7356 GB, free: 82.15 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002252/1.365, allocations: 44 kB / 0.7356 GB, free: 82.11 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002836/1.368, allocations: 2.065 MB / 0.7376 GB, free: 80.41 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08142/1.449, allocations: 79.16 MB / 0.8149 GB, free: 1.02 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1613/1.61, allocations: 3.969 MB / 0.8188 GB, free: 138.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003477/1.614, allocations: 2.39 MB / 0.8211 GB, free: 138.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01769/1.632, allocations: 11.33 MB / 0.8322 GB, free: 135.3 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/1.632, allocations: 63.19 kB / 0.8323 GB, free: 135.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=307): time 7.053e-06/1.632, allocations: 0 / 0.8323 GB, free: 135.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=348): time 0.03223/1.664, allocations: 17.8 MB / 0.8496 GB, free: 130.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/1.664, allocations: 190.3 kB / 0.8498 GB, free: 130.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007378/1.671, allocations: 5.43 MB / 0.8551 GB, free: 129.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005088/1.672, allocations: 25.7 kB / 0.8551 GB, free: 129.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002259/1.674, allocations: 4.809 MB / 0.8598 GB, free: 126.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001217/1.675, allocations: 1.287 MB / 0.8611 GB, free: 126 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003997/1.676, allocations: 0 / 0.8611 GB, free: 126 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004442/1.676, allocations: 0.7693 MB / 0.8619 GB, free: 125.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004512/1.681, allocations: 3.462 MB / 0.8652 GB, free: 124.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007476/1.688, allocations: 9.659 MB / 0.8747 GB, free: 115.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00843/1.697, allocations: 5.956 MB / 0.8805 GB, free: 113.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001765/1.697, allocations: 61.44 kB / 0.8805 GB, free: 113.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=1431) (initialization): time 0.02469/1.722, allocations: 12.13 MB / 0.8924 GB, free: 109.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/1.722, allocations: 5.156 kB / 0.8924 GB, free: 109.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008965/1.723, allocations: 224.9 kB / 0.8926 GB, free: 109.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001818/1.724, allocations: 0.6226 MB / 0.8932 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009658/1.734, allocations: 2.522 MB / 0.8957 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006228/1.74, allocations: 4.342 MB / 0.8999 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009087/1.75, allocations: 284.5 kB / 0.9002 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002706/1.752, allocations: 0.6499 MB / 0.9008 GB, free: 104.6 MB / 458.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.003601/1.756, allocations: 0.6398 MB / 0.9015 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001531/1.757, allocations: 0.5245 MB / 0.902 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008745/1.766, allocations: 4.221 MB / 0.9061 GB, free: 99.79 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/1.766, allocations: 55.14 kB / 0.9061 GB, free: 99.74 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.737e-05/1.766, allocations: 8 kB / 0.9061 GB, free: 99.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.39e-05/1.766, allocations: 14.77 kB / 0.9062 GB, free: 99.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02322/1.79, allocations: 11.07 MB / 0.917 GB, free: 90.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.371e-05/1.79, allocations: 10.16 kB / 0.917 GB, free: 90.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0027/1.792, allocations: 0.5156 MB / 0.9175 GB, free: 90.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000884/1.793, allocations: 322.8 kB / 0.9178 GB, free: 89.76 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004071/1.794, allocations: 24.67 kB / 0.9178 GB, free: 89.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005024/1.799, allocations: 5.747 MB / 0.9234 GB, free: 83.96 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/1.799, allocations: 11.94 kB / 0.9234 GB, free: 83.95 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01096/1.81, allocations: 8.578 MB / 0.9318 GB, free: 75.69 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0126/1.822, allocations: 11.7 MB / 0.9432 GB, free: 64.52 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001713/1.824, allocations: 0.6149 MB / 0.9438 GB, free: 63.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0014/1.826, allocations: 11.66 kB / 0.9439 GB, free: 63.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002865/1.828, allocations: 60.95 kB / 0.9439 GB, free: 63.85 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003502/1.829, allocations: 168.3 kB / 0.9441 GB, free: 63.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002177/1.829, allocations: 95.5 kB / 0.9442 GB, free: 63.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.00678/1.836, allocations: 3.632 MB / 0.9477 GB, free: 60.49 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01061/1.846, allocations: 1.395 MB / 0.9491 GB, free: 59.11 MB / 458.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.0008211/1.847, allocations: 185.8 kB / 0.9492 GB, free: 58.94 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01202/1.859, allocations: 7.881 MB / 0.9569 GB, free: 51.69 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/1.859, allocations: 0 / 0.9569 GB, free: 51.69 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003353/1.863, allocations: 2.481 MB / 0.9594 GB, free: 49.36 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00347/1.866, allocations: 0.4985 MB / 0.9599 GB, free: 48.93 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02746/1.894, allocations: 12.33 MB / 0.9719 GB, free: 37.73 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007881/1.902, allocations: 5.521 MB / 0.9773 GB, free: 33.5 MB / 458.7 MB Notification: Performance of SimCode: time 7.81e-07/1.902, allocations: 4 kB / 0.9773 GB, free: 33.49 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe 2>&1)