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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 180.9 kB / 7.651 MB, free: 1.422 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.422/1.422, allocations: 221.5 MB / 229.6 MB, free: 7.586 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.0009855/0.0009853, allocations: 98.97 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03801/0.03801, allocations: 8.827 MB / 340.1 MB, free: 6.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.41e-05/2.404e-05, allocations: 1.438 kB / 398.8 MB, free: 47.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1199, allocations: 52.4 MB / 451.2 MB, free: 4.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3769/0.4969, allocations: 108.7 MB / 0.5467 GB, free: 26.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/0.4972, allocations: 100.6 kB / 0.5468 GB, free: 26.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3601/0.8573, allocations: 149.7 MB / 0.6931 GB, free: 5.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.8574, allocations: 3.938 kB / 0.6931 GB, free: 5.266 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003647/0.8578, allocations: 124 kB / 0.6932 GB, free: 5.145 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.2924/1.15, allocations: 7.448 MB / 0.7004 GB, free: 69.12 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/1.15, allocations: 12.8 kB / 0.7005 GB, free: 69.12 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02012/1.17, allocations: 3.967 MB / 0.7043 GB, free: 68.67 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01532/1.186, allocations: 5.666 MB / 0.7099 GB, free: 68.35 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003482/1.186, allocations: 204 kB / 0.7101 GB, free: 68.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003143/1.189, allocations: 370.8 kB / 0.7104 GB, free: 68.34 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.019/1.208, allocations: 11.1 MB / 0.7213 GB, free: 68.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0293/1.238, allocations: 16.1 MB / 0.737 GB, free: 64.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002927/1.238, allocations: 93.42 kB / 0.7371 GB, free: 64.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001502/1.239, allocations: 47.81 kB / 0.7371 GB, free: 64.29 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002451/1.242, allocations: 1.963 MB / 0.739 GB, free: 64.28 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08879/1.331, allocations: 78.01 MB / 0.8152 GB, free: 30.09 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007747/1.339, allocations: 6.794 MB / 0.8219 GB, free: 25.99 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003248/1.342, allocations: 2.379 MB / 0.8242 GB, free: 25.07 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01723/1.359, allocations: 10.89 MB / 0.8348 GB, free: 19.01 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/1.359, allocations: 65.62 kB / 0.8349 GB, free: 18.95 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 7.794e-06/1.359, allocations: 0 / 0.8349 GB, free: 18.95 MB / 474.7 MB Notification: Performance of matching and sorting (n=330): time 0.02904/1.388, allocations: 16.62 MB / 0.8511 GB, free: 6.457 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/1.388, allocations: 187.7 kB / 0.8513 GB, free: 6.242 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00757/1.396, allocations: 5.34 MB / 0.8565 GB, free: 1.547 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005238/1.396, allocations: 25.7 kB / 0.8565 GB, free: 1.516 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003869/1.4, allocations: 5.145 MB / 0.8616 GB, free: 12.83 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001726/1.402, allocations: 1.232 MB / 0.8628 GB, free: 11.73 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006343/1.403, allocations: 0 / 0.8628 GB, free: 11.73 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007065/1.403, allocations: 0.7675 MB / 0.8635 GB, free: 11.09 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005727/1.409, allocations: 3.275 MB / 0.8667 GB, free: 8.117 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.277/1.686, allocations: 9.46 MB / 0.8759 GB, free: 87.39 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01123/1.697, allocations: 5.677 MB / 0.8815 GB, free: 87.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003183/1.698, allocations: 63.41 kB / 0.8815 GB, free: 87.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=1413) (initialization): time 0.02549/1.723, allocations: 11.8 MB / 0.8931 GB, free: 86.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000197/1.724, allocations: 100.9 kB / 0.8932 GB, free: 86.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003363/1.724, allocations: 217.8 kB / 0.8934 GB, free: 86.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/1.725, allocations: 0.6229 MB / 0.894 GB, free: 86.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008803/1.734, allocations: 2.509 MB / 0.8964 GB, free: 86.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00534/1.739, allocations: 4.595 MB / 0.9009 GB, free: 85.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008127/1.747, allocations: 312.8 kB / 0.9012 GB, free: 85.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002084/1.75, allocations: 0.6455 MB / 0.9018 GB, free: 85.16 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.002817/1.752, allocations: 0.6494 MB / 0.9025 GB, free: 84.83 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006271/1.759, allocations: 4.061 MB / 0.9064 GB, free: 84.66 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009058/1.76, allocations: 0.5135 MB / 0.9069 GB, free: 84.61 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00624/1.766, allocations: 3.904 MB / 0.9108 GB, free: 84.35 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.161e-05/1.766, allocations: 62.58 kB / 0.9108 GB, free: 84.35 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/1.766, allocations: 7.25 kB / 0.9108 GB, free: 84.35 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.636e-05/1.766, allocations: 14.95 kB / 0.9108 GB, free: 84.35 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02109/1.787, allocations: 10.32 MB / 0.9209 GB, free: 83.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/1.787, allocations: 3.969 kB / 0.9209 GB, free: 83.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002294/1.789, allocations: 0.5108 MB / 0.9214 GB, free: 83.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007712/1.79, allocations: 322.4 kB / 0.9217 GB, free: 83.49 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002473/1.791, allocations: 15.12 kB / 0.9217 GB, free: 83.49 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00523/1.796, allocations: 5.911 MB / 0.9275 GB, free: 79.73 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.186e-06/1.796, allocations: 11.19 kB / 0.9275 GB, free: 79.73 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009137/1.805, allocations: 7.831 MB / 0.9352 GB, free: 77.71 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001871/1.807, allocations: 0.6099 MB / 0.9358 GB, free: 77.33 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001168/1.808, allocations: 7.625 kB / 0.9358 GB, free: 77.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002468/1.811, allocations: 87.12 kB / 0.9359 GB, free: 77.33 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004158/1.811, allocations: 201 kB / 0.9361 GB, free: 77.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001897/1.811, allocations: 90.14 kB / 0.9361 GB, free: 77.32 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00562/1.817, allocations: 3.554 MB / 0.9396 GB, free: 77.14 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.242e-06/1.817, allocations: 0 / 0.9396 GB, free: 77.14 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01078/1.828, allocations: 1.374 MB / 0.941 GB, free: 77.13 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.01157/1.839, allocations: 9.512 MB / 0.9502 GB, free: 71.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01187/1.851, allocations: 7.529 MB / 0.9576 GB, free: 68.83 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/1.851, allocations: 5.062 kB / 0.9576 GB, free: 68.83 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00307/1.854, allocations: 2.354 MB / 0.9599 GB, free: 67.72 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002941/1.857, allocations: 0.5211 MB / 0.9604 GB, free: 67.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03439/1.892, allocations: 13.92 MB / 0.974 GB, free: 61.87 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006877/1.899, allocations: 5.008 MB / 0.9789 GB, free: 58.11 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00975/1.908, allocations: 3.182 MB / 0.982 GB, free: 56.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005746/1.914, allocations: 3.172 MB / 0.9851 GB, free: 53.23 MB / 490.7 MB Notification: Performance of SimCode: time 1.092e-06/1.914, allocations: 0 / 0.9851 GB, free: 53.23 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6084/2.523, allocations: 116.6 MB / 1.099 GB, free: 67.21 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002565/2.523, allocations: 145.8 kB / 1.099 GB, free: 67.02 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.915/8.438, allocations: 0 / 1.099 GB, free: 67.02 MB / 490.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)