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.001327/0.001327, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001699/0.001699, allocations: 215.1 kB / 22.25 MB, free: 5.113 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.479/1.479, allocations: 230.6 MB / 256 MB, free: 7.996 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.04823/0.04823, allocations: 9.234 MB / 321.7 MB, free: 10.06 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.002839/0.002839, allocations: 67.89 kB / 447.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.137, allocations: 55.47 MB / 0.4914 GB, free: 7.512 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.02173/0.1587, allocations: 18.59 MB / 0.5096 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3043/0.463, allocations: 5.643 MB / 0.5151 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004123/0.4671, allocations: 107 kB / 0.5152 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003937/0.4711, allocations: 1.795 MB / 0.517 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008371/0.4794, allocations: 3.048 MB / 0.5199 GB, free: 7.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002442/0.4819, allocations: 0.733 MB / 0.5206 GB, free: 7.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01332/0.4952, allocations: 6.79 MB / 0.5273 GB, free: 6.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007796/0.503, allocations: 3.689 MB / 0.5309 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006146/0.5091, allocations: 2.219 MB / 0.533 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006227/0.5154, allocations: 3.163 MB / 0.5361 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002023/0.5174, allocations: 0.5413 MB / 0.5367 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004127/0.5215, allocations: 1.361 MB / 0.538 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003127/0.5246, allocations: 2.754 MB / 0.5407 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005242/0.5299, allocations: 3.537 MB / 0.5441 GB, free: 14.74 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01642/0.5463, allocations: 11.35 MB / 0.5552 GB, free: 6.988 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.5463, allocations: 0 / 0.5552 GB, free: 6.988 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.5463, allocations: 0 / 0.5552 GB, free: 6.988 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003883/0.5467, allocations: 0 / 0.5552 GB, free: 6.988 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.03893/0.5856, allocations: 11.1 MB / 0.5661 GB, free: 13.08 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.432e-05/0.5857, allocations: 8.031 kB / 0.5661 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002376/0.5881, allocations: 1.117 MB / 0.5672 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0133/0.6014, allocations: 3.59 MB / 0.5707 GB, free: 8.414 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009698/0.6111, allocations: 3.573 MB / 0.5742 GB, free: 4.836 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003336/0.6114, allocations: 342.2 kB / 0.5745 GB, free: 4.566 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001803/0.6132, allocations: 445.7 kB / 0.5749 GB, free: 4.199 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03333/0.6465, allocations: 17.61 MB / 0.5921 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002066/0.6468, allocations: 75.41 kB / 0.5922 GB, free: 1.535 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006754/0.6474, allocations: 217.7 kB / 0.5924 GB, free: 1.391 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005826/0.6533, allocations: 3.712 MB / 0.596 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03364/0.6869, allocations: 15.4 MB / 0.611 GB, free: 14.27 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1256/0.8125, allocations: 71.59 MB / 0.681 GB, free: 5.336 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02412/0.8366, allocations: 6.255 MB / 0.6871 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00771/0.8443, allocations: 3.198 MB / 0.6902 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03151/0.8758, allocations: 12.61 MB / 0.7025 GB, free: 15.3 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.124e-05/0.8759, allocations: 76.8 kB / 0.7026 GB, free: 15.21 MB / 0.545 GB Notification: Performance of pre-optimization done (n=373): time 7.664e-06/0.8759, allocations: 0 / 0.7026 GB, free: 15.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=420): time 0.3266/1.203, allocations: 25.65 MB / 0.7276 GB, free: 171.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/1.203, allocations: 201.1 kB / 0.7278 GB, free: 170.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01443/1.217, allocations: 6.593 MB / 0.7343 GB, free: 169.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009821/1.218, allocations: 86.17 kB / 0.7343 GB, free: 169 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004831/1.223, allocations: 4.972 MB / 0.7392 GB, free: 165.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00303/1.226, allocations: 1.615 MB / 0.7408 GB, free: 164 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004345/1.23, allocations: 2.148 MB / 0.7429 GB, free: 162.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.431e-05/1.23, allocations: 302.9 kB / 0.7432 GB, free: 162.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006683/1.237, allocations: 3.607 MB / 0.7467 GB, free: 161.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008038/1.245, allocations: 9.607 MB / 0.7561 GB, free: 152.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01349/1.259, allocations: 14.44 MB / 0.7702 GB, free: 140 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001792/1.259, allocations: 62.97 kB / 0.7702 GB, free: 140 MB / 0.545 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02423/1.283, allocations: 13.38 MB / 0.7833 GB, free: 134.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001219/1.283, allocations: 94.97 kB / 0.7834 GB, free: 134.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002125/1.283, allocations: 212 kB / 0.7836 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/1.284, allocations: 0.6041 MB / 0.7842 GB, free: 133.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008434/1.293, allocations: 2.453 MB / 0.7866 GB, free: 131.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005816/1.299, allocations: 4.989 MB / 0.7914 GB, free: 127 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009634/1.308, allocations: 0.49 MB / 0.7919 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002206/1.311, allocations: 0.6274 MB / 0.7925 GB, free: 125.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.007703/1.318, allocations: 3.514 MB / 0.796 GB, free: 122.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001729/1.32, allocations: 0.6058 MB / 0.7966 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007858/1.328, allocations: 5.22 MB / 0.8017 GB, free: 117.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.828e-05/1.328, allocations: 75.69 kB / 0.8017 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/1.328, allocations: 8 kB / 0.8017 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.92e-05/1.328, allocations: 19.03 kB / 0.8017 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0305/1.358, allocations: 19.95 MB / 0.8212 GB, free: 97.53 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.609e-05/1.358, allocations: 24 kB / 0.8213 GB, free: 97.51 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002661/1.361, allocations: 0.6831 MB / 0.8219 GB, free: 96.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007619/1.362, allocations: 342.1 kB / 0.8222 GB, free: 96.48 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002768/1.362, allocations: 99.98 kB / 0.8223 GB, free: 96.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005383/1.368, allocations: 6.41 MB / 0.8286 GB, free: 89.65 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.327e-05/1.368, allocations: 39.81 kB / 0.8286 GB, free: 89.61 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01252/1.38, allocations: 9.791 MB / 0.8382 GB, free: 79.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0036/1.384, allocations: 1.077 MB / 0.8393 GB, free: 78.26 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00168/1.385, allocations: 95.98 kB / 0.8393 GB, free: 78.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003007/1.388, allocations: 159.8 kB / 0.8395 GB, free: 78.01 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000465/1.389, allocations: 329 kB / 0.8398 GB, free: 77.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002167/1.389, allocations: 144 kB / 0.8399 GB, free: 77.54 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006421/1.395, allocations: 4.346 MB / 0.8442 GB, free: 73.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.395, allocations: 0 / 0.8442 GB, free: 73.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008662/1.404, allocations: 1.601 MB / 0.8458 GB, free: 71.61 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.0112/1.415, allocations: 10.51 MB / 0.856 GB, free: 60.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01283/1.428, allocations: 8.447 MB / 0.8643 GB, free: 52.17 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.922e-05/1.428, allocations: 0 / 0.8643 GB, free: 52.17 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004077/1.432, allocations: 2.937 MB / 0.8671 GB, free: 49.19 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005446/1.438, allocations: 0.8646 MB / 0.868 GB, free: 48.38 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3882/1.826, allocations: 80.78 MB / 0.9469 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007435/1.833, allocations: 4.923 MB / 0.9517 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.008856/1.842, allocations: 3.22 MB / 0.9548 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00624/1.848, allocations: 3.185 MB / 0.9579 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of SimCode: time 2.154e-06/1.848, allocations: 0 / 0.9579 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1915/2.04, allocations: 123.8 MB / 1.079 GB, free: 45.07 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.25/33.29, allocations: 7.969 kB / 1.079 GB, free: 45.07 MB / 0.5606 GB " [Timeout remaining time 627] (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: 36.2967237490011] Failed to read output from testmodel.py, exit status != 0: 33.49826531600047 33.517413735 32.966975402 Calling exit ...