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.0135/0.0135, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.002505/0.002505, allocations: 196 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.264/2.264, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.05874/0.05874, allocations: 9.121 MB / 299.7 MB, free: 5.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002681/0.002681, allocations: 67.89 kB / 414.2 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.194, allocations: 51.44 MB / 465.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.03978/0.2339, allocations: 18.51 MB / 484.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02405/0.258, allocations: 5.655 MB / 489.8 MB, free: 9.902 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006877/0.265, allocations: 91.75 kB / 489.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008023/0.2731, allocations: 1.754 MB / 491.6 MB, free: 8.051 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01667/0.2898, allocations: 3.085 MB / 494.7 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004219/0.2941, allocations: 0.7332 MB / 495.4 MB, free: 4.219 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02065/0.3148, allocations: 6.72 MB / 0.4904 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01332/0.3282, allocations: 3.999 MB / 0.4943 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008964/0.3372, allocations: 2.191 MB / 0.4964 GB, free: 7.219 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01031/0.3476, allocations: 2.915 MB / 0.4993 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00332/0.351, allocations: 0.543 MB / 0.4998 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007725/0.3588, allocations: 1.334 MB / 0.5011 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.5599/0.9188, allocations: 2.718 MB / 0.5037 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01541/0.9343, allocations: 3.573 MB / 0.5072 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03821/0.9726, allocations: 11.44 MB / 0.5184 GB, free: 8.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.412e-05/0.9727, allocations: 1.156 kB / 0.5184 GB, free: 8.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.928e-06/0.9727, allocations: 0 / 0.5184 GB, free: 8.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008658/0.9736, allocations: 3.094 kB / 0.5184 GB, free: 8.789 MB / 382.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.08462/1.058, allocations: 11.11 MB / 0.5293 GB, free: 5.613 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001193/1.058, allocations: 10.59 kB / 0.5293 GB, free: 5.613 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009834/1.068, allocations: 1.116 MB / 0.5304 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02669/1.095, allocations: 3.593 MB / 0.5339 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0184/1.114, allocations: 3.751 MB / 0.5375 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009867/1.115, allocations: 337.1 kB / 0.5379 GB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005818/1.12, allocations: 454.8 kB / 0.5383 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07609/1.197, allocations: 17.61 MB / 0.5555 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001682/1.198, allocations: 76.72 kB / 0.5556 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004577/1.203, allocations: 221.5 kB / 0.5558 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01247/1.216, allocations: 3.709 MB / 0.5594 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06539/1.281, allocations: 15.39 MB / 0.5744 GB, free: 96 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2117/1.493, allocations: 71.76 MB / 0.6445 GB, free: 7.52 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04908/1.542, allocations: 7.337 MB / 0.6517 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01128/1.553, allocations: 3.347 MB / 0.6549 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06477/1.618, allocations: 14.51 MB / 0.6691 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001694/1.619, allocations: 76.05 kB / 0.6692 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=373): time 2.848e-05/1.619, allocations: 0 / 0.6692 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of matching and sorting (n=420): time 0.1329/1.752, allocations: 25.93 MB / 0.6945 GB, free: 3.598 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/1.752, allocations: 196.9 kB / 0.6947 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01927/1.771, allocations: 6.595 MB / 0.7011 GB, free: 12.77 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001308/1.772, allocations: 81.7 kB / 0.7012 GB, free: 12.68 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.008159/1.781, allocations: 4.977 MB / 0.7061 GB, free: 7.734 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.004753/1.785, allocations: 1.623 MB / 0.7077 GB, free: 6.133 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01449/1.8, allocations: 2.146 MB / 0.7098 GB, free: 3.98 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002442/1.8, allocations: 304.6 kB / 0.7101 GB, free: 3.684 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01625/1.817, allocations: 3.601 MB / 0.7136 GB, free: 80 kB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4839/2.301, allocations: 9.607 MB / 0.723 GB, free: 191.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03448/2.335, allocations: 14.43 MB / 0.737 GB, free: 179.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007134/2.336, allocations: 58.34 kB / 0.7371 GB, free: 179.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.04567/2.382, allocations: 13.4 MB / 0.7502 GB, free: 174.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002967/2.382, allocations: 99.38 kB / 0.7503 GB, free: 174.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005378/2.383, allocations: 210.8 kB / 0.7505 GB, free: 174.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001775/2.384, allocations: 0.5943 MB / 0.7511 GB, free: 174.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01243/2.397, allocations: 2.457 MB / 0.7535 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01144/2.408, allocations: 5.1 MB / 0.7584 GB, free: 168 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01971/2.428, allocations: 494 kB / 0.7589 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005299/2.434, allocations: 0.627 MB / 0.7595 GB, free: 166.9 MB / 0.545 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.01844/2.452, allocations: 3.52 MB / 0.763 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003777/2.456, allocations: 0.6051 MB / 0.7636 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02014/2.476, allocations: 5.228 MB / 0.7687 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001715/2.476, allocations: 68 kB / 0.7687 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-05/2.477, allocations: 12 kB / 0.7687 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001365/2.477, allocations: 19.12 kB / 0.7688 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0733/2.55, allocations: 20 MB / 0.7883 GB, free: 140.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001643/2.55, allocations: 24 kB / 0.7883 GB, free: 140.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00678/2.557, allocations: 0.6786 MB / 0.789 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00187/2.559, allocations: 341 kB / 0.7893 GB, free: 139.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001895/2.561, allocations: 101 kB / 0.7894 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/2.572, allocations: 6.719 MB / 0.796 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.195e-05/2.572, allocations: 35.88 kB / 0.796 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02509/2.597, allocations: 9.789 MB / 0.8055 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00615/2.603, allocations: 1.157 MB / 0.8067 GB, free: 121 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003103/2.606, allocations: 97.55 kB / 0.8068 GB, free: 121 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006998/2.613, allocations: 161.5 kB / 0.8069 GB, free: 120.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00182/2.615, allocations: 325 kB / 0.8072 GB, free: 120.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008495/2.616, allocations: 132 kB / 0.8074 GB, free: 120.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01663/2.633, allocations: 4.358 MB / 0.8116 GB, free: 116 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.306e-06/2.633, allocations: 0 / 0.8116 GB, free: 116 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.02663/2.66, allocations: 1.631 MB / 0.8132 GB, free: 114.4 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.03333/2.693, allocations: 10.53 MB / 0.8235 GB, free: 103.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02755/2.721, allocations: 8.756 MB / 0.832 GB, free: 94.61 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.293e-05/2.721, allocations: 6 kB / 0.832 GB, free: 94.61 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007167/2.728, allocations: 3.108 MB / 0.8351 GB, free: 91.46 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01146/2.74, allocations: 0.8643 MB / 0.8359 GB, free: 90.64 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9015/3.641, allocations: 80.73 MB / 0.9148 GB, free: 182.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02703/3.668, allocations: 4.922 MB / 0.9196 GB, free: 181.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.02425/3.693, allocations: 3.227 MB / 0.9227 GB, free: 181.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01597/3.709, allocations: 3.19 MB / 0.9258 GB, free: 181.2 MB / 0.545 GB Notification: Performance of SimCode: time 4.208e-06/3.709, allocations: 0 / 0.9258 GB, free: 181.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5271/4.236, allocations: 119 MB / 1.042 GB, free: 76.84 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 50.91/55.15, allocations: 7.188 kB / 1.042 GB, free: 76.83 MB / 0.545 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)