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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007664/0.007664, allocations: 101.9 kB / 15.74 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001819/0.001819, allocations: 202.1 kB / 16.68 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1467/0.1467, allocations: 9.098 MB / 299.6 MB, free: 1.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 60.12 kB / 414.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2544, allocations: 51.43 MB / 465.6 MB, free: 17.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.017/0.2715, allocations: 18.52 MB / 484.1 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.2842, allocations: 5.639 MB / 489.8 MB, free: 60 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005361/0.2897, allocations: 90.88 kB / 489.8 MB, free: 48 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005492/0.2952, allocations: 1.762 MB / 491.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009951/0.3052, allocations: 2.997 MB / 494.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002679/0.3079, allocations: 0.7357 MB / 495.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01155/0.3195, allocations: 6.725 MB / 0.4903 GB, free: 7.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006663/0.3262, allocations: 3.987 MB / 0.4942 GB, free: 3.609 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005013/0.3312, allocations: 2.183 MB / 0.4963 GB, free: 1.418 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005227/0.3365, allocations: 2.927 MB / 0.4992 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002005/0.3385, allocations: 0.543 MB / 0.4997 GB, free: 13.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003777/0.3423, allocations: 1.334 MB / 0.501 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004482/0.3468, allocations: 2.708 MB / 0.5037 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007078/0.354, allocations: 3.573 MB / 0.5071 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01717/0.3712, allocations: 11.45 MB / 0.5183 GB, free: 10.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.794e-06/0.3712, allocations: 3.984 kB / 0.5183 GB, free: 10.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.047e-06/0.3712, allocations: 4 kB / 0.5183 GB, free: 10.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003438/0.3716, allocations: 3.938 kB / 0.5183 GB, free: 10.79 MB / 398.1 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.03572/0.4073, allocations: 11.1 MB / 0.5292 GB, free: 15.58 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.4074, allocations: 8.031 kB / 0.5292 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002763/0.4102, allocations: 1.122 MB / 0.5303 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01418/0.4243, allocations: 3.592 MB / 0.5338 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009246/0.4336, allocations: 3.747 MB / 0.5374 GB, free: 7.031 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004078/0.4341, allocations: 340.4 kB / 0.5378 GB, free: 6.695 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001943/0.436, allocations: 455.6 kB / 0.5382 GB, free: 6.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03718/0.4732, allocations: 17.6 MB / 0.5554 GB, free: 3.461 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002542/0.4735, allocations: 79.33 kB / 0.5555 GB, free: 3.383 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001075/0.4746, allocations: 219.7 kB / 0.5557 GB, free: 3.168 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006346/0.481, allocations: 3.715 MB / 0.5593 GB, free: 15.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03504/0.5161, allocations: 15.39 MB / 0.5743 GB, free: 36 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2939/0.81, allocations: 71.77 MB / 0.6444 GB, free: 54.72 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02109/0.8311, allocations: 7.336 MB / 0.6516 GB, free: 50.44 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004797/0.836, allocations: 3.351 MB / 0.6549 GB, free: 48.67 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02228/0.8583, allocations: 14.52 MB / 0.669 GB, free: 38.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.8584, allocations: 67.66 kB / 0.6691 GB, free: 38.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=373): time 7.604e-06/0.8584, allocations: 0 / 0.6691 GB, free: 38.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=420): time 0.06242/0.9208, allocations: 25.9 MB / 0.6944 GB, free: 13.05 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.9209, allocations: 196.9 kB / 0.6946 GB, free: 12.82 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00768/0.9286, allocations: 6.596 MB / 0.701 GB, free: 6.344 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006307/0.9293, allocations: 89.53 kB / 0.7011 GB, free: 6.254 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002243/0.9315, allocations: 4.971 MB / 0.706 GB, free: 1.418 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001567/0.9331, allocations: 1.616 MB / 0.7076 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003528/0.9366, allocations: 2.151 MB / 0.7097 GB, free: 13.63 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.9368, allocations: 309.1 kB / 0.7099 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006579/0.9434, allocations: 3.605 MB / 0.7135 GB, free: 9.715 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01253/0.9559, allocations: 9.602 MB / 0.7228 GB, free: 13.18 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02107/0.977, allocations: 14.44 MB / 0.7369 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000215/0.9773, allocations: 60 kB / 0.737 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02809/1.005, allocations: 13.39 MB / 0.7501 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001582/1.006, allocations: 99.98 kB / 0.7502 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003231/1.006, allocations: 212 kB / 0.7504 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/1.007, allocations: 0.5992 MB / 0.751 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009495/1.017, allocations: 2.453 MB / 0.7533 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007803/1.025, allocations: 5.116 MB / 0.7583 GB, free: 5.668 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007404/1.032, allocations: 491.7 kB / 0.7588 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002544/1.035, allocations: 0.6327 MB / 0.7594 GB, free: 4.555 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * 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 (1303): * Single equations (assignments): 1294 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,28,44.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007676/1.042, allocations: 3.521 MB / 0.7629 GB, free: 1.02 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001455/1.044, allocations: 0.6053 MB / 0.7635 GB, free: 420 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/1.055, allocations: 5.224 MB / 0.7686 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001015/1.055, allocations: 71.97 kB / 0.7686 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.649e-05/1.055, allocations: 12 kB / 0.7686 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.307e-05/1.055, allocations: 15.94 kB / 0.7687 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03923/1.094, allocations: 20 MB / 0.7882 GB, free: 6.602 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.311e-05/1.094, allocations: 25 kB / 0.7882 GB, free: 6.578 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003408/1.098, allocations: 0.6786 MB / 0.7889 GB, free: 5.898 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/1.099, allocations: 350.8 kB / 0.7892 GB, free: 5.547 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006499/1.099, allocations: 108 kB / 0.7893 GB, free: 5.441 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2157/1.315, allocations: 6.685 MB / 0.7958 GB, free: 181.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.662e-05/1.315, allocations: 39.19 kB / 0.7959 GB, free: 181.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01439/1.33, allocations: 9.791 MB / 0.8054 GB, free: 177.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002566/1.332, allocations: 1.161 MB / 0.8066 GB, free: 177.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001009/1.333, allocations: 96.09 kB / 0.8067 GB, free: 177.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002636/1.336, allocations: 158.1 kB / 0.8068 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005757/1.336, allocations: 317.3 kB / 0.8071 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002628/1.337, allocations: 141.4 kB / 0.8073 GB, free: 177.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0109/1.348, allocations: 4.361 MB / 0.8115 GB, free: 175.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.81e-07/1.348, allocations: 0 / 0.8115 GB, free: 175.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01317/1.361, allocations: 1.63 MB / 0.8131 GB, free: 175.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 104 * Number of states: 6 (heatCapacitor.T,planetary.planet.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,22,52.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01565/1.377, allocations: 10.53 MB / 0.8234 GB, free: 170.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01316/1.39, allocations: 8.752 MB / 0.8319 GB, free: 166.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-05/1.39, allocations: 3.938 kB / 0.8319 GB, free: 166.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00434/1.394, allocations: 3.104 MB / 0.835 GB, free: 165.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007014/1.401, allocations: 0.8566 MB / 0.8358 GB, free: 165.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09776/1.499, allocations: 80.74 MB / 0.9147 GB, free: 79.54 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006362/1.505, allocations: 4.928 MB / 0.9195 GB, free: 74.58 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008158/1.514, allocations: 3.226 MB / 0.9226 GB, free: 71.34 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004494/1.518, allocations: 3.186 MB / 0.9257 GB, free: 68.16 MB / 0.545 GB Notification: Performance of SimCode: time 7.51e-07/1.518, allocations: 0 / 0.9257 GB, free: 68.16 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3974/1.916, allocations: 119 MB / 1.042 GB, free: 174.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.81/27.73, allocations: 7.984 kB / 1.042 GB, free: 174.1 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe 2>&1)