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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 99.66 kB / 18.94 MB, free: 2.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 220.5 kB / 22.24 MB, free: 5.109 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 256 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04973/0.04973, allocations: 9.239 MB / 321.7 MB, free: 9.836 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002304/0.002304, allocations: 63.89 kB / 447.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.118, allocations: 55.47 MB / 0.4914 GB, free: 6.973 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.02136/0.1394, allocations: 15.99 MB / 0.507 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.1531, allocations: 5.391 MB / 0.5122 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003604/0.1567, allocations: 107.6 kB / 0.5123 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2343/0.391, allocations: 1.734 MB / 0.514 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007099/0.3981, allocations: 3.059 MB / 0.517 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.3998, allocations: 0.7197 MB / 0.5177 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008038/0.4079, allocations: 6.786 MB / 0.5243 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007672/0.4155, allocations: 3.654 MB / 0.5279 GB, free: 7.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005506/0.421, allocations: 2.223 MB / 0.5301 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006367/0.4274, allocations: 2.998 MB / 0.533 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002497/0.4299, allocations: 0.5415 MB / 0.5335 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004511/0.4344, allocations: 1.231 MB / 0.5347 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003827/0.4382, allocations: 2.74 MB / 0.5374 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005704/0.4439, allocations: 2.487 MB / 0.5398 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01515/0.4591, allocations: 11.41 MB / 0.551 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4591, allocations: 0 / 0.551 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4591, allocations: 0.9375 kB / 0.551 GB, free: 11.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004517/0.4596, allocations: 0 / 0.551 GB, free: 11.18 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.0377/0.4972, allocations: 11.09 MB / 0.5618 GB, free: 2.879 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.4973, allocations: 12.03 kB / 0.5618 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003315/0.5006, allocations: 1.118 MB / 0.5629 GB, free: 1.809 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01472/0.5153, allocations: 3.588 MB / 0.5664 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01061/0.5259, allocations: 3.608 MB / 0.57 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000445/0.5264, allocations: 334.6 kB / 0.5703 GB, free: 10.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002343/0.5287, allocations: 452.2 kB / 0.5707 GB, free: 9.965 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03732/0.5661, allocations: 17.61 MB / 0.5879 GB, free: 7.383 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002427/0.5663, allocations: 76.25 kB / 0.588 GB, free: 7.309 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001036/0.5673, allocations: 220.7 kB / 0.5882 GB, free: 7.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006454/0.5738, allocations: 3.707 MB / 0.5918 GB, free: 3.469 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03444/0.6082, allocations: 15.38 MB / 0.6068 GB, free: 4.082 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1091/0.7173, allocations: 68.74 MB / 0.6739 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02354/0.7408, allocations: 6.237 MB / 0.68 GB, free: 7.734 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006378/0.7472, allocations: 3.2 MB / 0.6832 GB, free: 4.52 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03268/0.7799, allocations: 11.66 MB / 0.6945 GB, free: 8.93 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.973e-05/0.78, allocations: 76.8 kB / 0.6946 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=373): time 8.105e-06/0.78, allocations: 3.938 kB / 0.6946 GB, free: 8.84 MB / 0.5294 GB Notification: Performance of matching and sorting (n=420): time 0.318/1.098, allocations: 25.68 MB / 0.7197 GB, free: 175.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.639e-05/1.098, allocations: 197.9 kB / 0.7199 GB, free: 174.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01058/1.109, allocations: 6.936 MB / 0.7267 GB, free: 174.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007083/1.109, allocations: 87.64 kB / 0.7267 GB, free: 174.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00351/1.113, allocations: 4.977 MB / 0.7316 GB, free: 171.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001845/1.115, allocations: 1.619 MB / 0.7332 GB, free: 170 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003503/1.118, allocations: 2.143 MB / 0.7353 GB, free: 168.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.883e-05/1.118, allocations: 309.9 kB / 0.7356 GB, free: 168.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006602/1.125, allocations: 3.597 MB / 0.7391 GB, free: 167.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01006/1.135, allocations: 9.61 MB / 0.7485 GB, free: 158.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0157/1.151, allocations: 14.44 MB / 0.7626 GB, free: 146.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003771/1.151, allocations: 59.44 kB / 0.7626 GB, free: 146.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02217/1.173, allocations: 13.38 MB / 0.7757 GB, free: 140.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001594/1.173, allocations: 96.06 kB / 0.7758 GB, free: 140.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002777/1.174, allocations: 208.6 kB / 0.776 GB, free: 140.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001047/1.175, allocations: 0.6086 MB / 0.7766 GB, free: 140.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007683/1.182, allocations: 2.453 MB / 0.779 GB, free: 139.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005419/1.188, allocations: 4.922 MB / 0.7838 GB, free: 134.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00872/1.197, allocations: 486 kB / 0.7842 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002012/1.199, allocations: 0.6321 MB / 0.7849 GB, free: 133.8 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.006421/1.205, allocations: 3.511 MB / 0.7883 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/1.206, allocations: 0.6131 MB / 0.7889 GB, free: 130.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007266/1.213, allocations: 5.218 MB / 0.794 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.209e-05/1.214, allocations: 72.98 kB / 0.7941 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/1.214, allocations: 8 kB / 0.7941 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.042e-05/1.214, allocations: 18.8 kB / 0.7941 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0318/1.245, allocations: 19.23 MB / 0.8129 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.429e-05/1.245, allocations: 20 kB / 0.8129 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002858/1.248, allocations: 0.6786 MB / 0.8135 GB, free: 105.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007626/1.249, allocations: 344.1 kB / 0.8139 GB, free: 105.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003208/1.249, allocations: 104 kB / 0.814 GB, free: 105.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005048/1.254, allocations: 6.353 MB / 0.8202 GB, free: 98.78 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.469e-05/1.254, allocations: 35.88 kB / 0.8202 GB, free: 98.74 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/1.267, allocations: 9.774 MB / 0.8298 GB, free: 88.48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003931/1.271, allocations: 1.074 MB / 0.8308 GB, free: 87.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001766/1.272, allocations: 107.4 kB / 0.8309 GB, free: 87.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004393/1.277, allocations: 155.9 kB / 0.8311 GB, free: 87.15 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008383/1.278, allocations: 332.9 kB / 0.8314 GB, free: 86.82 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003007/1.278, allocations: 137.2 kB / 0.8315 GB, free: 86.69 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008718/1.287, allocations: 4.362 MB / 0.8358 GB, free: 82.34 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.31e-07/1.287, allocations: 0 / 0.8358 GB, free: 82.34 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009612/1.296, allocations: 1.597 MB / 0.8373 GB, free: 80.74 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.01218/1.308, allocations: 10.51 MB / 0.8476 GB, free: 69.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01316/1.321, allocations: 8.443 MB / 0.8558 GB, free: 61.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.732e-05/1.322, allocations: 4 kB / 0.8558 GB, free: 61.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00421/1.326, allocations: 2.93 MB / 0.8587 GB, free: 58.33 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005722/1.331, allocations: 0.8583 MB / 0.8595 GB, free: 57.52 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3634/1.695, allocations: 80.78 MB / 0.9384 GB, free: 187 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009753/1.705, allocations: 4.425 MB / 0.9427 GB, free: 186.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0101/1.715, allocations: 3.226 MB / 0.9459 GB, free: 186.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005495/1.72, allocations: 3.182 MB / 0.949 GB, free: 186.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.483e-06/1.72, allocations: 0 / 0.949 GB, free: 186.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1765/1.897, allocations: 119.6 MB / 1.066 GB, free: 90.14 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.31/25.2, allocations: 4 kB / 1.066 GB, free: 90.13 MB / 0.5762 GB " [Timeout remaining time 635] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 28.06432111794129] Failed to read output from testmodel.py, exit status != 0: 25.405724172014743 25.425956848 24.962799298 Calling exit ...