Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.00141/0.00141, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001529/0.001529, allocations: 214.7 kB / 22.25 MB, free: 5.125 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.547/1.547, allocations: 230.6 MB / 256 MB, free: 7.965 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.07234/0.07234, allocations: 9.25 MB / 321.7 MB, free: 10 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.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",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.002134/0.002134, allocations: 64.14 kB / 447.7 MB, free: 15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1206, allocations: 55.47 MB / 0.4914 GB, free: 7.441 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01393/0.1345, allocations: 9.793 MB / 0.501 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007446/0.1419, allocations: 2.897 MB / 0.5038 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001303/0.1432, allocations: 43.88 kB / 0.5038 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.1445, allocations: 433 kB / 0.5043 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004281/0.1488, allocations: 1.583 MB / 0.5058 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006579/0.1494, allocations: 187.7 kB / 0.506 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0044/0.1538, allocations: 2.837 MB / 0.5088 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001706/0.1555, allocations: 0.8958 MB / 0.5096 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001864/0.1574, allocations: 1.054 MB / 0.5107 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003162/0.1606, allocations: 1.588 MB / 0.5122 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000716/0.1613, allocations: 260 kB / 0.5125 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001848/0.1631, allocations: 0.9128 MB / 0.5134 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2334/0.3965, allocations: 1.357 MB / 0.5147 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002598/0.3991, allocations: 1.75 MB / 0.5164 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007903/0.407, allocations: 5.466 MB / 0.5217 GB, free: 9.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.407, allocations: 0.5625 kB / 0.5217 GB, free: 9.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.407, allocations: 0 / 0.5217 GB, free: 9.285 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001982/0.4072, allocations: 0 / 0.5217 GB, free: 9.285 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01651/0.4238, allocations: 5.239 MB / 0.5268 GB, free: 7.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.4238, allocations: 9.906 kB / 0.5269 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001555/0.4254, allocations: 0.6028 MB / 0.5274 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00701/0.4324, allocations: 1.835 MB / 0.5292 GB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004222/0.4366, allocations: 1.455 MB / 0.5307 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003529/0.4369, allocations: 174.8 kB / 0.5308 GB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001062/0.438, allocations: 235.8 kB / 0.531 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01606/0.4541, allocations: 8.954 MB / 0.5398 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001037/0.4542, allocations: 26.61 kB / 0.5398 GB, free: 3.488 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003757/0.4545, allocations: 109.3 kB / 0.5399 GB, free: 3.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003282/0.4578, allocations: 2.012 MB / 0.5419 GB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01546/0.4733, allocations: 7.97 MB / 0.5497 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04986/0.5231, allocations: 28.48 MB / 0.5775 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007837/0.531, allocations: 2.264 MB / 0.5797 GB, free: 1.574 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.5329, allocations: 0.9154 MB / 0.5806 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01002/0.5429, allocations: 4.088 MB / 0.5846 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.848e-05/0.543, allocations: 43.88 kB / 0.5846 GB, free: 12.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 4.068e-06/0.543, allocations: 0 / 0.5846 GB, free: 12.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=193): time 0.01832/0.5613, allocations: 6.452 MB / 0.5909 GB, free: 6.156 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.5614, allocations: 73.41 kB / 0.591 GB, free: 6.074 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00557/0.567, allocations: 3.044 MB / 0.594 GB, free: 3.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002938/0.5673, allocations: 49.7 kB / 0.594 GB, free: 2.965 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00222/0.5695, allocations: 2.449 MB / 0.5964 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001093/0.5706, allocations: 0.751 MB / 0.5971 GB, free: 15.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001693/0.5723, allocations: 0.9334 MB / 0.598 GB, free: 14.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.5724, allocations: 305.1 kB / 0.5983 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002823/0.5752, allocations: 1.504 MB / 0.5998 GB, free: 13.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005627/0.5809, allocations: 4.076 MB / 0.6038 GB, free: 7.715 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008832/0.5897, allocations: 6.037 MB / 0.6097 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.02e-05/0.5898, allocations: 24 kB / 0.6097 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01252/0.6023, allocations: 5.968 MB / 0.6155 GB, free: 11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.881e-05/0.6023, allocations: 47.94 kB / 0.6156 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.847e-05/0.6024, allocations: 88 kB / 0.6157 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.6042, allocations: 0.617 MB / 0.6163 GB, free: 10.24 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003337/0.6075, allocations: 1.006 MB / 0.6172 GB, free: 9.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/0.6201, allocations: 8.955 MB / 0.626 GB, free: 15.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003733/0.6239, allocations: 238.3 kB / 0.6262 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007963/0.6247, allocations: 275.9 kB / 0.6265 GB, free: 15.45 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (548): * Single equations (assignments): 541 * Array equations: 4 * 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): 2 systems {(3,21,88.9%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.004132/0.6288, allocations: 1.729 MB / 0.6282 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007033/0.6295, allocations: 282.1 kB / 0.6284 GB, free: 13.43 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005529/0.635, allocations: 2.647 MB / 0.631 GB, free: 10.76 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000108/0.6351, allocations: 27.98 kB / 0.6311 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.6351, allocations: 15.88 kB / 0.6311 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-05/0.6352, allocations: 15.91 kB / 0.6311 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/0.6497, allocations: 7.193 MB / 0.6381 GB, free: 3.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.6497, allocations: 4 kB / 0.6381 GB, free: 3.406 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.6507, allocations: 243.5 kB / 0.6383 GB, free: 3.168 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001291/0.652, allocations: 489.5 kB / 0.6388 GB, free: 2.684 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.6521, allocations: 42.88 kB / 0.6388 GB, free: 2.645 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009587/0.6617, allocations: 7.667 MB / 0.6463 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.6617, allocations: 4 kB / 0.6463 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006797/0.6685, allocations: 3.994 MB / 0.6502 GB, free: 6.566 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009551/0.6695, allocations: 282 kB / 0.6505 GB, free: 6.289 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003468/0.6698, allocations: 36.28 kB / 0.6505 GB, free: 6.254 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.6709, allocations: 79.03 kB / 0.6506 GB, free: 6.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/0.6711, allocations: 136.9 kB / 0.6508 GB, free: 6.043 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.6712, allocations: 60 kB / 0.6508 GB, free: 5.984 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003605/0.6748, allocations: 1.94 MB / 0.6527 GB, free: 4.039 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6748, allocations: 0 / 0.6527 GB, free: 4.039 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004158/0.679, allocations: 0.8241 MB / 0.6535 GB, free: 3.215 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.w) * 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 (135): * Single equations (assignments): 128 * Array equations: 4 * 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): 2 systems {(3,17,88.9%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007694/0.6867, allocations: 4.655 MB / 0.6581 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007725/0.6944, allocations: 3.955 MB / 0.6619 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.6944, allocations: 0.8125 kB / 0.6619 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002864/0.6973, allocations: 1.471 MB / 0.6634 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003016/0.7003, allocations: 455.4 kB / 0.6638 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05946/0.7598, allocations: 33.12 MB / 0.6961 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004059/0.7638, allocations: 2.808 MB / 0.6989 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003503/0.7673, allocations: 1.325 MB / 0.7002 GB, free: 15.71 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002308/0.7696, allocations: 1.483 MB / 0.7016 GB, free: 14.23 MB / 0.545 GB Notification: Performance of SimCode: time 1.383e-06/0.7696, allocations: 4 kB / 0.7016 GB, free: 14.23 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4142/1.184, allocations: 60.37 MB / 0.7606 GB, free: 162.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.28/25.47, allocations: 6.719 kB / 0.7606 GB, free: 162.3 MB / 0.545 GB " [Timeout remaining time 634] (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PistonEngine_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_Examples_PistonEngine.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 28.443086453000433] Failed to read output from testmodel.py, exit status != 0: 25.63036904299952 25.651177592 25.23949051 Calling exit ...