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.001396/0.001396, allocations: 110 kB / 16.46 MB, free: 6.453 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.002096/0.002096, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.633/1.633, allocations: 230.6 MB / 252.8 MB, free: 8.973 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.04847/0.04847, allocations: 9.222 MB / 318.1 MB, free: 11.3 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.00202/0.00202, allocations: 60.19 kB / 442.5 MB, free: 2.578 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1156, allocations: 55.44 MB / 498 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01185/0.1275, allocations: 9.749 MB / 0.4958 GB, free: 1.258 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006766/0.1343, allocations: 2.893 MB / 0.4986 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.1356, allocations: 43.81 kB / 0.4987 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001238/0.1368, allocations: 437 kB / 0.4991 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004303/0.1411, allocations: 1.572 MB / 0.5006 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006802/0.1418, allocations: 183.7 kB / 0.5008 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004241/0.146, allocations: 2.833 MB / 0.5036 GB, free: 9.285 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001736/0.1478, allocations: 0.9148 MB / 0.5045 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.1497, allocations: 1.051 MB / 0.5055 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002817/0.1525, allocations: 1.596 MB / 0.5071 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008248/0.1533, allocations: 260 kB / 0.5073 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002254/0.1556, allocations: 0.9011 MB / 0.5082 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001762/0.1573, allocations: 1.375 MB / 0.5095 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002318/0.1597, allocations: 1.74 MB / 0.5112 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2176/0.3773, allocations: 5.463 MB / 0.5166 GB, free: 11.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3773, allocations: 1.781 kB / 0.5166 GB, free: 11.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3773, allocations: 1.094 kB / 0.5166 GB, free: 11.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001493/0.3774, allocations: 1.5 kB / 0.5166 GB, free: 11.81 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.01359/0.391, allocations: 5.315 MB / 0.5218 GB, free: 10.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.3911, allocations: 11.94 kB / 0.5218 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009792/0.392, allocations: 0.6072 MB / 0.5224 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007163/0.3992, allocations: 1.831 MB / 0.5241 GB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004662/0.4039, allocations: 1.517 MB / 0.5256 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002401/0.4041, allocations: 176.3 kB / 0.5258 GB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/0.4052, allocations: 237 kB / 0.526 GB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/0.4196, allocations: 8.948 MB / 0.5348 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.337e-05/0.4197, allocations: 32.92 kB / 0.5348 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003371/0.42, allocations: 107 kB / 0.5349 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003012/0.423, allocations: 2.009 MB / 0.5369 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/0.437, allocations: 7.974 MB / 0.5446 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04308/0.48, allocations: 28.52 MB / 0.5725 GB, free: 7.598 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007991/0.488, allocations: 2.719 MB / 0.5752 GB, free: 4.773 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001833/0.4899, allocations: 0.9157 MB / 0.576 GB, free: 3.859 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01102/0.5009, allocations: 6.482 MB / 0.5824 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.357e-05/0.5009, allocations: 47.06 kB / 0.5824 GB, free: 12.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 4.368e-06/0.5009, allocations: 4 kB / 0.5824 GB, free: 12.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.02502/0.526, allocations: 9.806 MB / 0.592 GB, free: 2.914 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009463/0.5354, allocations: 6.777 MB / 0.5986 GB, free: 11.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005327/0.5408, allocations: 3.045 MB / 0.6016 GB, free: 8.816 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002892/0.541, allocations: 53.77 kB / 0.6016 GB, free: 8.758 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00208/0.5431, allocations: 2.455 MB / 0.604 GB, free: 6.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001327/0.5445, allocations: 0.7521 MB / 0.6048 GB, free: 5.578 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001645/0.5461, allocations: 0.9477 MB / 0.6057 GB, free: 4.621 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5462, allocations: 305.1 kB / 0.606 GB, free: 4.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003082/0.5493, allocations: 1.532 MB / 0.6075 GB, free: 2.781 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005899/0.5552, allocations: 4.114 MB / 0.6115 GB, free: 13.44 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008807/0.564, allocations: 6.091 MB / 0.6175 GB, free: 6.457 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.393e-05/0.5641, allocations: 28 kB / 0.6175 GB, free: 6.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01154/0.5756, allocations: 6.046 MB / 0.6234 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.868e-05/0.5757, allocations: 46.81 kB / 0.6234 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/0.5758, allocations: 88 kB / 0.6235 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001723/0.5775, allocations: 0.618 MB / 0.6241 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003284/0.5808, allocations: 1.021 MB / 0.6251 GB, free: 14.88 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01207/0.5929, allocations: 9.283 MB / 0.6342 GB, free: 5.188 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004511/0.5974, allocations: 247.9 kB / 0.6344 GB, free: 4.945 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/0.5984, allocations: 276 kB / 0.6347 GB, free: 4.676 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.003832/0.6023, allocations: 1.729 MB / 0.6364 GB, free: 2.941 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006507/0.6029, allocations: 282.1 kB / 0.6366 GB, free: 2.664 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006115/0.609, allocations: 2.863 MB / 0.6394 GB, free: 15.78 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001558/0.6092, allocations: 27.98 kB / 0.6395 GB, free: 15.75 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.111e-05/0.6092, allocations: 8 kB / 0.6395 GB, free: 15.74 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.554e-05/0.6092, allocations: 9.328 kB / 0.6395 GB, free: 15.73 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02112/0.6304, allocations: 9.196 MB / 0.6485 GB, free: 6.414 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/0.6304, allocations: 4 kB / 0.6485 GB, free: 6.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000887/0.6313, allocations: 207.7 kB / 0.6487 GB, free: 6.207 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001901/0.6332, allocations: 0.6351 MB / 0.6493 GB, free: 5.562 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001723/0.6333, allocations: 40.27 kB / 0.6493 GB, free: 5.523 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01392/0.6472, allocations: 9.355 MB / 0.6585 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.008163/0.6554, allocations: 5.938 MB / 0.6643 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007698/0.6631, allocations: 4.186 MB / 0.6683 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.6641, allocations: 359.2 kB / 0.6687 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000317/0.6644, allocations: 35.98 kB / 0.6687 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009887/0.6654, allocations: 83.97 kB / 0.6688 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003875/0.6658, allocations: 137 kB / 0.6689 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.6659, allocations: 51.98 kB / 0.669 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003933/0.6699, allocations: 1.948 MB / 0.6709 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6699, allocations: 0 / 0.6709 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004526/0.6744, allocations: 0.8749 MB / 0.6717 GB, free: 13.79 MB / 0.5137 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.00791/0.6823, allocations: 4.846 MB / 0.6765 GB, free: 8.871 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007764/0.6901, allocations: 4.025 MB / 0.6804 GB, free: 4.832 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.6901, allocations: 0 / 0.6804 GB, free: 4.832 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00278/0.6929, allocations: 1.591 MB / 0.6819 GB, free: 3.203 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.6954, allocations: 450.9 kB / 0.6824 GB, free: 2.77 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06222/0.7576, allocations: 33.51 MB / 0.7151 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003999/0.7616, allocations: 2.83 MB / 0.7179 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003433/0.7651, allocations: 1.318 MB / 0.7192 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002732/0.7678, allocations: 1.464 MB / 0.7206 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of SimCode: time 1.203e-06/0.7678, allocations: 3.5 kB / 0.7206 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3413/1.109, allocations: 59.38 MB / 0.7786 GB, free: 173.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 42.6/43.71, allocations: 2.406 kB / 0.7786 GB, free: 173.4 MB / 0.5606 GB " [Timeout remaining time 616] (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: 46.665209290993516] Failed to read output from testmodel.py, exit status != 0: 43.8396091350005 43.854722597 43.474206946 Calling exit ...