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.00173/0.00173, allocations: 102.5 kB / 16.45 MB, free: 6.449 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.001968/0.001968, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.434/1.434, allocations: 230.6 MB / 252.8 MB, free: 8.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.04922/0.04922, allocations: 9.237 MB / 318.1 MB, free: 11.21 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.002009/0.002009, allocations: 67.89 kB / 442.5 MB, free: 2.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.103, allocations: 55.42 MB / 498 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.0114/0.1144, allocations: 9.775 MB / 0.4958 GB, free: 1.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006011/0.1204, allocations: 2.893 MB / 0.4987 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.1216, allocations: 47.81 kB / 0.4987 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.1228, allocations: 429 kB / 0.4991 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004219/0.127, allocations: 1.576 MB / 0.5006 GB, free: 12.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008118/0.1279, allocations: 183.7 kB / 0.5008 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004287/0.1321, allocations: 2.839 MB / 0.5036 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001668/0.1338, allocations: 0.9071 MB / 0.5045 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002039/0.1359, allocations: 1.047 MB / 0.5055 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002713/0.1386, allocations: 1.592 MB / 0.5071 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008757/0.1394, allocations: 260 kB / 0.5073 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002074/0.1415, allocations: 0.9089 MB / 0.5082 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001763/0.1433, allocations: 1.363 MB / 0.5095 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002258/0.1455, allocations: 1.755 MB / 0.5112 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2135/0.3591, allocations: 5.452 MB / 0.5166 GB, free: 11.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3591, allocations: 0.6562 kB / 0.5166 GB, free: 11.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3591, allocations: 2.781 kB / 0.5166 GB, free: 11.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002082/0.3593, allocations: 1.312 kB / 0.5166 GB, free: 11.54 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.01699/0.3763, allocations: 5.319 MB / 0.5218 GB, free: 9.906 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.3763, allocations: 9.469 kB / 0.5218 GB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002778/0.3791, allocations: 0.6034 MB / 0.5224 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008149/0.3872, allocations: 1.84 MB / 0.5242 GB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003711/0.391, allocations: 1.512 MB / 0.5256 GB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.3912, allocations: 176.6 kB / 0.5258 GB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0014/0.3926, allocations: 234.5 kB / 0.526 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01824/0.4108, allocations: 8.951 MB / 0.5348 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002094/0.411, allocations: 28.95 kB / 0.5348 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001154/0.4122, allocations: 110.9 kB / 0.5349 GB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00361/0.4158, allocations: 2.013 MB / 0.5369 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01655/0.4324, allocations: 7.964 MB / 0.5446 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04678/0.4791, allocations: 28.53 MB / 0.5725 GB, free: 7.289 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008021/0.4872, allocations: 2.719 MB / 0.5752 GB, free: 4.469 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002052/0.4892, allocations: 0.9189 MB / 0.5761 GB, free: 3.555 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01119/0.5004, allocations: 6.47 MB / 0.5824 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.5004, allocations: 50.12 kB / 0.5824 GB, free: 12.45 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 4.188e-06/0.5005, allocations: 0 / 0.5824 GB, free: 12.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=193): time 0.01917/0.5196, allocations: 6.533 MB / 0.5888 GB, free: 5.957 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/0.5197, allocations: 69.41 kB / 0.5889 GB, free: 5.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005517/0.5252, allocations: 3.038 MB / 0.5918 GB, free: 2.832 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003224/0.5255, allocations: 57.7 kB / 0.5919 GB, free: 2.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002083/0.5276, allocations: 2.448 MB / 0.5943 GB, free: 344 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009742/0.5286, allocations: 0.7439 MB / 0.595 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001615/0.5302, allocations: 0.9338 MB / 0.5959 GB, free: 14.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.5303, allocations: 305.1 kB / 0.5962 GB, free: 14.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002813/0.5331, allocations: 1.504 MB / 0.5977 GB, free: 12.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005252/0.5384, allocations: 4.08 MB / 0.6017 GB, free: 7.531 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008959/0.5473, allocations: 6.029 MB / 0.6076 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000105/0.5475, allocations: 28 kB / 0.6076 GB, free: 0.582 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.0124/0.5599, allocations: 5.967 MB / 0.6134 GB, free: 10.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.671e-05/0.5599, allocations: 50.75 kB / 0.6135 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001178/0.5601, allocations: 90.31 kB / 0.6135 GB, free: 10.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001812/0.5619, allocations: 0.628 MB / 0.6142 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003501/0.5654, allocations: 0.9943 MB / 0.6151 GB, free: 9.148 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01216/0.5775, allocations: 9.275 MB / 0.6242 GB, free: 15.47 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003652/0.5812, allocations: 235.9 kB / 0.6244 GB, free: 15.24 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008857/0.5821, allocations: 283.9 kB / 0.6247 GB, free: 14.96 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.003659/0.5857, allocations: 1.716 MB / 0.6264 GB, free: 13.24 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006029/0.5863, allocations: 282.1 kB / 0.6266 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005517/0.5918, allocations: 2.651 MB / 0.6292 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000125/0.592, allocations: 35.98 kB / 0.6292 GB, free: 10.25 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/0.592, allocations: 7.938 kB / 0.6293 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-05/0.592, allocations: 7.969 kB / 0.6293 GB, free: 10.23 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01711/0.6091, allocations: 7.233 MB / 0.6363 GB, free: 2.902 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.256e-05/0.6091, allocations: 7.938 kB / 0.6363 GB, free: 2.895 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.6102, allocations: 244.2 kB / 0.6366 GB, free: 2.656 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001504/0.6117, allocations: 496.4 kB / 0.637 GB, free: 2.164 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002337/0.612, allocations: 32 kB / 0.6371 GB, free: 2.133 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009964/0.6219, allocations: 7.979 MB / 0.6449 GB, free: 9.742 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/0.6219, allocations: 7.938 kB / 0.6449 GB, free: 9.734 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007255/0.6292, allocations: 3.993 MB / 0.6488 GB, free: 5.664 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008798/0.6301, allocations: 359.2 kB / 0.6491 GB, free: 5.293 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004427/0.6305, allocations: 36 kB / 0.6491 GB, free: 5.258 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.6316, allocations: 75.91 kB / 0.6492 GB, free: 5.184 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003064/0.6319, allocations: 133.1 kB / 0.6493 GB, free: 5.055 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/0.632, allocations: 55.12 kB / 0.6494 GB, free: 5.004 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003582/0.6356, allocations: 1.944 MB / 0.6513 GB, free: 3.055 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6356, allocations: 0 / 0.6513 GB, free: 3.055 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004334/0.6399, allocations: 0.8202 MB / 0.6521 GB, free: 2.234 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.007584/0.6475, allocations: 4.66 MB / 0.6566 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007575/0.6551, allocations: 3.957 MB / 0.6605 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/0.6551, allocations: 0 / 0.6605 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002667/0.6577, allocations: 1.471 MB / 0.6619 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002551/0.6603, allocations: 449.1 kB / 0.6624 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06306/0.7233, allocations: 33.05 MB / 0.6947 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005047/0.7284, allocations: 2.799 MB / 0.6974 GB, free: 148 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003709/0.7321, allocations: 1.333 MB / 0.6987 GB, free: 14.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002924/0.735, allocations: 1.483 MB / 0.7001 GB, free: 13.32 MB / 0.545 GB Notification: Performance of SimCode: time 1.302e-06/0.735, allocations: 0 / 0.7001 GB, free: 13.32 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3162/1.051, allocations: 56.5 MB / 0.7553 GB, free: 166.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.83/23.88, allocations: 4.062 kB / 0.7553 GB, free: 166.2 MB / 0.545 GB " [Timeout remaining time 636] (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: 26.531332693004515] Failed to read output from testmodel.py, exit status != 0: 24.015335539006628 24.031474599 23.66909824 Calling exit ...