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.001542/0.001542, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001863/0.001864, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.399/1.399, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2148/0.2148, allocations: 9.111 MB / 299.5 MB, free: 1.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.89 kB / 362 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.127, allocations: 51.43 MB / 413.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.2623/0.3893, allocations: 18.52 MB / 432 MB, free: 33.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01318/0.4026, allocations: 5.644 MB / 437.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004799/0.4074, allocations: 95.47 kB / 437.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004493/0.412, allocations: 1.755 MB / 439.5 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008485/0.4205, allocations: 3.008 MB / 442.5 MB, free: 28.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002369/0.4229, allocations: 0.7144 MB / 443.2 MB, free: 28.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01004/0.433, allocations: 6.686 MB / 449.9 MB, free: 25.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005568/0.4386, allocations: 4.006 MB / 453.9 MB, free: 23.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00421/0.4428, allocations: 2.183 MB / 456.1 MB, free: 22.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004559/0.4474, allocations: 2.925 MB / 459 MB, free: 21.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001759/0.4492, allocations: 0.5446 MB / 459.6 MB, free: 21.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003549/0.4528, allocations: 1.34 MB / 460.9 MB, free: 21.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003481/0.4563, allocations: 2.706 MB / 463.6 MB, free: 20.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007306/0.4636, allocations: 3.576 MB / 467.2 MB, free: 17.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01939/0.483, allocations: 10.93 MB / 478.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.4831, allocations: 0 / 478.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.4831, allocations: 4 kB / 478.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005509/0.4837, allocations: 1.156 kB / 478.1 MB, free: 13.48 MB / 350.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.04671/0.5304, allocations: 10.91 MB / 489 MB, free: 6.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.065e-05/0.5305, allocations: 9.562 kB / 489 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004838/0.5353, allocations: 1.114 MB / 490.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01541/0.5507, allocations: 3.545 MB / 493.7 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009636/0.5604, allocations: 3.699 MB / 497.4 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004171/0.5609, allocations: 340.5 kB / 497.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003101/0.564, allocations: 447.6 kB / 498.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04225/0.6063, allocations: 17.61 MB / 0.5037 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003126/0.6066, allocations: 79.33 kB / 0.5038 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001775/0.6084, allocations: 215.7 kB / 0.504 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006894/0.6153, allocations: 3.707 MB / 0.5076 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03973/0.6551, allocations: 15.41 MB / 0.5226 GB, free: 9.195 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4015/1.057, allocations: 71.94 MB / 0.5929 GB, free: 76.67 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02214/1.079, allocations: 7.335 MB / 0.6 GB, free: 75.38 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005078/1.084, allocations: 3.33 MB / 0.6033 GB, free: 75.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02537/1.109, allocations: 14.5 MB / 0.6175 GB, free: 69.19 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.696e-05/1.11, allocations: 77.27 kB / 0.6175 GB, free: 69.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=373): time 7.113e-06/1.11, allocations: 0 / 0.6175 GB, free: 69.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=420): time 0.07942/1.189, allocations: 25.48 MB / 0.6424 GB, free: 58.14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/1.189, allocations: 201.3 kB / 0.6426 GB, free: 57.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008948/1.198, allocations: 6.585 MB / 0.649 GB, free: 55.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006473/1.199, allocations: 84.22 kB / 0.6491 GB, free: 55.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002695/1.201, allocations: 4.772 MB / 0.6538 GB, free: 51.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001784/1.203, allocations: 1.545 MB / 0.6553 GB, free: 50.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002911/1.206, allocations: 2.135 MB / 0.6574 GB, free: 49.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.988e-05/1.206, allocations: 301.1 kB / 0.6577 GB, free: 49.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005192/1.211, allocations: 3.603 MB / 0.6612 GB, free: 48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008526/1.22, allocations: 9.61 MB / 0.6706 GB, free: 36.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01608/1.236, allocations: 14.43 MB / 0.6846 GB, free: 19.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002599/1.236, allocations: 60 kB / 0.6847 GB, free: 19.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02928/1.266, allocations: 13.37 MB / 0.6978 GB, free: 6.406 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001391/1.266, allocations: 97.81 kB / 0.6978 GB, free: 6.312 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002842/1.266, allocations: 212 kB / 0.698 GB, free: 6.105 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/1.267, allocations: 0.6066 MB / 0.6986 GB, free: 5.496 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008814/1.276, allocations: 2.456 MB / 0.701 GB, free: 3.035 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006633/1.283, allocations: 5.106 MB / 0.706 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009455/1.292, allocations: 491.5 kB / 0.7065 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002216/1.294, allocations: 0.6327 MB / 0.7071 GB, free: 12.69 MB / 462.1 MB 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.009096/1.304, allocations: 3.512 MB / 0.7105 GB, free: 9.168 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001849/1.305, allocations: 0.5797 MB / 0.7111 GB, free: 8.582 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/1.316, allocations: 5.236 MB / 0.7162 GB, free: 3.305 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.326e-05/1.316, allocations: 63.98 kB / 0.7163 GB, free: 3.242 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/1.316, allocations: 8 kB / 0.7163 GB, free: 3.234 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-05/1.316, allocations: 15.94 kB / 0.7163 GB, free: 3.219 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04142/1.358, allocations: 20.1 MB / 0.7359 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.153e-05/1.358, allocations: 20 kB / 0.736 GB, free: 14.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003275/1.361, allocations: 0.6747 MB / 0.7366 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009416/1.362, allocations: 359.9 kB / 0.737 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003971/1.362, allocations: 95.98 kB / 0.7371 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007861/1.37, allocations: 6.692 MB / 0.7436 GB, free: 6.516 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-05/1.37, allocations: 35.88 kB / 0.7436 GB, free: 6.48 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01664/1.387, allocations: 9.758 MB / 0.7531 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003809/1.391, allocations: 1.122 MB / 0.7542 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001581/1.392, allocations: 107.5 kB / 0.7543 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003443/1.396, allocations: 160.9 kB / 0.7545 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007625/1.397, allocations: 317 kB / 0.7548 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000356/1.397, allocations: 136 kB / 0.7549 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.01077/1.408, allocations: 4.362 MB / 0.7592 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.71e-07/1.408, allocations: 0 / 0.7592 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01352/1.421, allocations: 1.626 MB / 0.7608 GB, free: 4.41 MB / 0.4981 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.2802/1.702, allocations: 10.49 MB / 0.771 GB, free: 164.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0314/1.733, allocations: 13.64 MB / 0.7843 GB, free: 162.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.427e-05/1.733, allocations: 2.969 kB / 0.7843 GB, free: 162.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00631/1.739, allocations: 3.085 MB / 0.7874 GB, free: 161.2 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007146/1.747, allocations: 0.8665 MB / 0.7882 GB, free: 160.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1504/1.897, allocations: 99.33 MB / 0.8852 GB, free: 71.66 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006616/1.904, allocations: 4.925 MB / 0.89 GB, free: 67.83 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008534/1.912, allocations: 3.226 MB / 0.8932 GB, free: 65.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005439/1.918, allocations: 3.186 MB / 0.8963 GB, free: 62.81 MB / 0.4981 GB Notification: Performance of SimCode: time 1.242e-06/1.918, allocations: 0 / 0.8963 GB, free: 62.81 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4734/2.391, allocations: 125.4 MB / 1.019 GB, free: 146.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/15.91, allocations: 4.062 kB / 1.019 GB, free: 146.7 MB / 0.4981 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)