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.001296/0.001296, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001541/0.001541, allocations: 216.2 kB / 22.25 MB, free: 5.262 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.467/1.467, allocations: 230.6 MB / 256 MB, free: 7.793 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.05049/0.05049, allocations: 9.241 MB / 321.7 MB, free: 9.926 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.002157/0.002157, allocations: 67.89 kB / 447.7 MB, free: 14.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.1013, allocations: 55.47 MB / 0.4913 GB, free: 7.098 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01116/0.1125, allocations: 8.506 MB / 0.4997 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005936/0.1184, allocations: 2.741 MB / 0.5023 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.1196, allocations: 47.81 kB / 0.5024 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.1209, allocations: 437 kB / 0.5028 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004143/0.125, allocations: 1.583 MB / 0.5043 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006693/0.1257, allocations: 183.7 kB / 0.5045 GB, free: 9.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003832/0.1295, allocations: 2.814 MB / 0.5073 GB, free: 6.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001631/0.1312, allocations: 0.8879 MB / 0.5081 GB, free: 5.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001871/0.133, allocations: 1.051 MB / 0.5092 GB, free: 4.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002596/0.1356, allocations: 1.518 MB / 0.5106 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008108/0.1364, allocations: 263.9 kB / 0.5109 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001985/0.1384, allocations: 0.788 MB / 0.5117 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001928/0.1404, allocations: 1.367 MB / 0.513 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2074/0.3477, allocations: 1.235 MB / 0.5142 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006221/0.3539, allocations: 5.479 MB / 0.5195 GB, free: 9.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.354, allocations: 3.281 kB / 0.5196 GB, free: 9.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.354, allocations: 0 / 0.5196 GB, free: 9.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001798/0.3541, allocations: 0.5312 kB / 0.5196 GB, free: 9.746 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.01379/0.3679, allocations: 5.244 MB / 0.5247 GB, free: 8.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.368, allocations: 10.16 kB / 0.5247 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000985/0.3689, allocations: 0.5997 MB / 0.5253 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006759/0.3757, allocations: 1.838 MB / 0.5271 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003353/0.3791, allocations: 1.466 MB / 0.5285 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001466/0.3792, allocations: 178.6 kB / 0.5287 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006076/0.3798, allocations: 231.1 kB / 0.5289 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01354/0.3934, allocations: 8.947 MB / 0.5376 GB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.23e-05/0.3934, allocations: 34.06 kB / 0.5377 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003639/0.3938, allocations: 109.2 kB / 0.5378 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002973/0.3968, allocations: 2.01 MB / 0.5397 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01509/0.4119, allocations: 7.955 MB / 0.5475 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04188/0.4537, allocations: 27.01 MB / 0.5739 GB, free: 7.438 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006964/0.4607, allocations: 2.26 MB / 0.5761 GB, free: 5.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0016/0.4623, allocations: 0.9262 MB / 0.577 GB, free: 4.258 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009138/0.4715, allocations: 3.801 MB / 0.5807 GB, free: 484 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.4715, allocations: 48.98 kB / 0.5807 GB, free: 432 kB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.197e-06/0.4715, allocations: 0 / 0.5807 GB, free: 432 kB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01728/0.4888, allocations: 6.461 MB / 0.5871 GB, free: 10.02 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.4888, allocations: 69.41 kB / 0.5871 GB, free: 9.938 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00514/0.494, allocations: 3.194 MB / 0.5902 GB, free: 6.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002727/0.4943, allocations: 54.73 kB / 0.5903 GB, free: 6.672 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002069/0.4963, allocations: 2.462 MB / 0.5927 GB, free: 4.219 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008823/0.4972, allocations: 0.7367 MB / 0.5934 GB, free: 3.492 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001485/0.4987, allocations: 0.9348 MB / 0.5943 GB, free: 2.547 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4988, allocations: 309.1 kB / 0.5946 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00273/0.5016, allocations: 1.497 MB / 0.5961 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005248/0.5068, allocations: 4.08 MB / 0.6001 GB, free: 11.42 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008044/0.5149, allocations: 6.034 MB / 0.606 GB, free: 4.496 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.372e-05/0.5149, allocations: 24 kB / 0.606 GB, free: 4.473 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01189/0.5268, allocations: 5.972 MB / 0.6118 GB, free: 14.64 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.388e-05/0.5269, allocations: 44 kB / 0.6119 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001314/0.527, allocations: 91.94 kB / 0.6119 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001715/0.5288, allocations: 0.6221 MB / 0.6126 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003785/0.5325, allocations: 1.002 MB / 0.6135 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/0.5448, allocations: 8.871 MB / 0.6222 GB, free: 3.676 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003454/0.5482, allocations: 251 kB / 0.6224 GB, free: 3.434 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007497/0.549, allocations: 276 kB / 0.6227 GB, free: 3.164 MB / 462.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.003431/0.5524, allocations: 1.718 MB / 0.6244 GB, free: 1.438 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006169/0.553, allocations: 278.1 kB / 0.6246 GB, free: 1.164 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005058/0.5581, allocations: 2.651 MB / 0.6272 GB, free: 14.49 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001095/0.5582, allocations: 31.98 kB / 0.6273 GB, free: 14.46 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.5582, allocations: 4 kB / 0.6273 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/0.5582, allocations: 15.91 kB / 0.6273 GB, free: 14.44 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01382/0.572, allocations: 6.85 MB / 0.634 GB, free: 7.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/0.5721, allocations: 8.281 kB / 0.634 GB, free: 7.492 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009716/0.573, allocations: 243.6 kB / 0.6342 GB, free: 7.254 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00135/0.5744, allocations: 490.6 kB / 0.6347 GB, free: 6.766 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/0.5745, allocations: 42.09 kB / 0.6347 GB, free: 6.727 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009564/0.5841, allocations: 7.598 MB / 0.6421 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.5841, allocations: 8 kB / 0.6421 GB, free: 14.78 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00693/0.591, allocations: 3.997 MB / 0.646 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009672/0.592, allocations: 279 kB / 0.6463 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003785/0.5924, allocations: 38.48 kB / 0.6463 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009828/0.5933, allocations: 79.91 kB / 0.6464 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002845/0.5936, allocations: 133 kB / 0.6466 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.5937, allocations: 51.98 kB / 0.6466 GB, free: 10.14 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003477/0.5972, allocations: 1.948 MB / 0.6485 GB, free: 8.188 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5972, allocations: 0 / 0.6485 GB, free: 8.188 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004095/0.6013, allocations: 0.8151 MB / 0.6493 GB, free: 7.375 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.006938/0.6083, allocations: 4.66 MB / 0.6539 GB, free: 2.625 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006943/0.6152, allocations: 3.955 MB / 0.6577 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/0.6152, allocations: 4.812 kB / 0.6577 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002322/0.6175, allocations: 1.47 MB / 0.6592 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/0.6198, allocations: 444 kB / 0.6596 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05463/0.6745, allocations: 33.12 MB / 0.6919 GB, free: 8.043 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003476/0.6779, allocations: 2.253 MB / 0.6941 GB, free: 5.762 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003184/0.6811, allocations: 1.333 MB / 0.6954 GB, free: 4.422 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002302/0.6834, allocations: 1.479 MB / 0.6969 GB, free: 2.941 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/0.6834, allocations: 0 / 0.6969 GB, free: 2.941 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3079/0.9913, allocations: 56.76 MB / 0.7523 GB, free: 171.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.83/17.82, allocations: 8.062 kB / 0.7523 GB, free: 171.5 MB / 0.545 GB " [Timeout remaining time 642] (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: 20.661197697743773] Failed to read output from testmodel.py, exit status != 0: 17.975801471155137 17.986701927 17.630208266 Calling exit ...