Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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.001371/0.001371, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00162/0.00162, allocations: 213.8 kB / 22.25 MB, free: 4.859 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.45/1.45, allocations: 230.6 MB / 256 MB, free: 7.797 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.05058/0.05058, allocations: 9.246 MB / 321.7 MB, free: 9.848 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_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",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.002088/0.002088, allocations: 63.89 kB / 447.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09595/0.09804, allocations: 55.47 MB / 0.4913 GB, free: 7.027 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01104/0.1091, allocations: 8.506 MB / 0.4996 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005719/0.1148, allocations: 2.738 MB / 0.5023 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009704/0.1158, allocations: 47.81 kB / 0.5024 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009876/0.1168, allocations: 441 kB / 0.5028 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003633/0.1204, allocations: 1.582 MB / 0.5043 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005348/0.1209, allocations: 183.7 kB / 0.5045 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003442/0.1244, allocations: 2.833 MB / 0.5073 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.1256, allocations: 0.8841 MB / 0.5081 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001406/0.127, allocations: 1.058 MB / 0.5092 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00217/0.1292, allocations: 1.514 MB / 0.5106 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006103/0.1298, allocations: 260 kB / 0.5109 GB, free: 2.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001613/0.1314, allocations: 0.788 MB / 0.5117 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001458/0.1329, allocations: 1.367 MB / 0.513 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1959/0.3288, allocations: 1.234 MB / 0.5142 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00584/0.3347, allocations: 5.48 MB / 0.5196 GB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3347, allocations: 0 / 0.5196 GB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3347, allocations: 0 / 0.5196 GB, free: 9.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000153/0.3348, allocations: 0 / 0.5196 GB, free: 9.777 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.01303/0.3479, allocations: 5.237 MB / 0.5247 GB, free: 8.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.3479, allocations: 10.05 kB / 0.5247 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008648/0.3488, allocations: 0.6051 MB / 0.5253 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006694/0.3555, allocations: 1.837 MB / 0.5271 GB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003264/0.3587, allocations: 1.466 MB / 0.5285 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.3589, allocations: 173.9 kB / 0.5287 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006016/0.3595, allocations: 231.8 kB / 0.5289 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01342/0.3729, allocations: 8.954 MB / 0.5376 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-05/0.373, allocations: 31.42 kB / 0.5377 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000369/0.3734, allocations: 109.4 kB / 0.5378 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002971/0.3763, allocations: 2.015 MB / 0.5397 GB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01477/0.3911, allocations: 7.954 MB / 0.5475 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04308/0.4342, allocations: 27.01 MB / 0.5739 GB, free: 7.453 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007111/0.4413, allocations: 2.268 MB / 0.5761 GB, free: 5.188 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/0.443, allocations: 0.9259 MB / 0.577 GB, free: 4.266 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009358/0.4523, allocations: 3.795 MB / 0.5807 GB, free: 496 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.533e-05/0.4524, allocations: 43.88 kB / 0.5807 GB, free: 444 kB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 5.48e-06/0.4524, allocations: 0 / 0.5807 GB, free: 444 kB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02488/0.4773, allocations: 9.599 MB / 0.5901 GB, free: 6.859 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009387/0.4867, allocations: 6.507 MB / 0.5965 GB, free: 140 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00562/0.4923, allocations: 3.199 MB / 0.5996 GB, free: 12.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003587/0.4926, allocations: 57.7 kB / 0.5997 GB, free: 12.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002043/0.4947, allocations: 2.453 MB / 0.602 GB, free: 10.42 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009246/0.4956, allocations: 0.7557 MB / 0.6028 GB, free: 9.676 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001505/0.4971, allocations: 0.9414 MB / 0.6037 GB, free: 8.723 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4972, allocations: 305.1 kB / 0.604 GB, free: 8.422 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002628/0.4999, allocations: 1.532 MB / 0.6055 GB, free: 6.883 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005285/0.5052, allocations: 4.108 MB / 0.6095 GB, free: 1.543 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008302/0.5135, allocations: 6.097 MB / 0.6155 GB, free: 10.55 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.431e-05/0.5135, allocations: 24 kB / 0.6155 GB, free: 10.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01303/0.5266, allocations: 6.038 MB / 0.6214 GB, free: 4.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.379e-05/0.5267, allocations: 47.94 kB / 0.6214 GB, free: 4.543 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001568/0.5268, allocations: 92.08 kB / 0.6215 GB, free: 4.453 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001813/0.5286, allocations: 0.6161 MB / 0.6221 GB, free: 3.832 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003757/0.5324, allocations: 1.018 MB / 0.6231 GB, free: 2.812 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.5441, allocations: 8.882 MB / 0.6318 GB, free: 9.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003438/0.5476, allocations: 250.5 kB / 0.632 GB, free: 9.348 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005958/0.5482, allocations: 276 kB / 0.6323 GB, free: 9.078 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 (554): * Single equations (assignments): 547 * 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.002984/0.5511, allocations: 1.727 MB / 0.634 GB, free: 7.344 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005066/0.5516, allocations: 282.1 kB / 0.6342 GB, free: 7.066 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005418/0.5571, allocations: 2.866 MB / 0.637 GB, free: 4.176 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001102/0.5572, allocations: 31.98 kB / 0.6371 GB, free: 4.145 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.5572, allocations: 7.938 kB / 0.6371 GB, free: 4.137 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/0.5572, allocations: 7.969 kB / 0.6371 GB, free: 4.129 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01792/0.5751, allocations: 8.693 MB / 0.6456 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/0.5751, allocations: 4 kB / 0.6456 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008289/0.576, allocations: 207.7 kB / 0.6458 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001782/0.5777, allocations: 0.6309 MB / 0.6464 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001724/0.5779, allocations: 35.98 kB / 0.6464 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01191/0.5898, allocations: 8.978 MB / 0.6552 GB, free: 1.145 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007645/0.5975, allocations: 5.669 MB / 0.6607 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007488/0.605, allocations: 4.19 MB / 0.6648 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/0.6061, allocations: 282.1 kB / 0.6651 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004353/0.6066, allocations: 39.95 kB / 0.6651 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.6076, allocations: 87.83 kB / 0.6652 GB, free: 6.578 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003345/0.608, allocations: 144.9 kB / 0.6653 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.6081, allocations: 51.98 kB / 0.6654 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003503/0.6116, allocations: 1.944 MB / 0.6673 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.6116, allocations: 0 / 0.6673 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004728/0.6163, allocations: 0.8749 MB / 0.6682 GB, free: 3.559 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * 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 (125): * Single equations (assignments): 118 * 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%), (2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008064/0.6244, allocations: 4.83 MB / 0.6729 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007302/0.6317, allocations: 4.019 MB / 0.6768 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.6317, allocations: 0 / 0.6768 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002619/0.6343, allocations: 1.592 MB / 0.6783 GB, free: 8.98 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002363/0.6367, allocations: 456.7 kB / 0.6788 GB, free: 8.547 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05552/0.6922, allocations: 33.58 MB / 0.7116 GB, free: 3.355 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004373/0.6966, allocations: 2.284 MB / 0.7138 GB, free: 1.039 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003502/0.7001, allocations: 1.314 MB / 0.7151 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002665/0.7027, allocations: 1.46 MB / 0.7165 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of SimCode: time 1.863e-06/0.7027, allocations: 8 kB / 0.7165 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3199/1.023, allocations: 59.62 MB / 0.7747 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.3/18.32, allocations: 3.859 kB / 0.7747 GB, free: 179.6 MB / 0.5606 GB " [Timeout remaining time 642] (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection_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_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.025835579261184] Failed to read output from testmodel.py, exit status != 0: 18.48777041491121 18.506164233 18.167777828 Calling exit ...