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.001742/0.001742, allocations: 109.2 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.002368/0.002368, allocations: 218.7 kB / 22.26 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.694/1.694, allocations: 230.6 MB / 256 MB, free: 7.992 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.05195/0.05195, allocations: 9.242 MB / 321.7 MB, free: 10.04 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.002163/0.002163, allocations: 67.89 kB / 447.7 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1346, allocations: 55.46 MB / 0.4914 GB, free: 7.516 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01347/0.148, allocations: 9.797 MB / 0.501 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007719/0.1558, allocations: 2.904 MB / 0.5038 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001785/0.1576, allocations: 47.81 kB / 0.5039 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.1587, allocations: 437 kB / 0.5043 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004638/0.1634, allocations: 1.576 MB / 0.5058 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007916/0.1642, allocations: 187.7 kB / 0.506 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004756/0.1689, allocations: 2.829 MB / 0.5088 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001697/0.1706, allocations: 0.888 MB / 0.5096 GB, free: 4.766 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001789/0.1724, allocations: 1.051 MB / 0.5107 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002628/0.175, allocations: 1.596 MB / 0.5122 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005872/0.1756, allocations: 264 kB / 0.5125 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002245/0.1779, allocations: 0.9128 MB / 0.5134 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2608/0.4386, allocations: 1.36 MB / 0.5147 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002069/0.4407, allocations: 1.745 MB / 0.5164 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00814/0.4488, allocations: 5.462 MB / 0.5217 GB, free: 8.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.4488, allocations: 2.938 kB / 0.5217 GB, free: 8.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4488, allocations: 0 / 0.5217 GB, free: 8.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002094/0.449, allocations: 0.5312 kB / 0.5217 GB, free: 8.73 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.466, allocations: 5.246 MB / 0.5268 GB, free: 7.168 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.653e-05/0.4661, allocations: 10.22 kB / 0.5269 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001472/0.4676, allocations: 0.5994 MB / 0.5274 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006885/0.4745, allocations: 1.834 MB / 0.5292 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003989/0.4784, allocations: 1.451 MB / 0.5306 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.4786, allocations: 171 kB / 0.5308 GB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006528/0.4793, allocations: 240.3 kB / 0.531 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0162/0.4955, allocations: 8.948 MB / 0.5398 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.673e-05/0.4956, allocations: 34.44 kB / 0.5398 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003572/0.4959, allocations: 107.2 kB / 0.5399 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003213/0.4991, allocations: 2.01 MB / 0.5419 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01767/0.5168, allocations: 7.974 MB / 0.5497 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04691/0.5637, allocations: 28.48 MB / 0.5775 GB, free: 3.793 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007459/0.5712, allocations: 2.27 MB / 0.5797 GB, free: 1.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001695/0.5729, allocations: 0.9229 MB / 0.5806 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009513/0.5824, allocations: 4.072 MB / 0.5846 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001112/0.5825, allocations: 55.88 kB / 0.5846 GB, free: 12.49 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 1.026e-05/0.5825, allocations: 0 / 0.5846 GB, free: 12.49 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.02471/0.6072, allocations: 9.587 MB / 0.594 GB, free: 2.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0093/0.6165, allocations: 6.568 MB / 0.6004 GB, free: 12.15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005398/0.6219, allocations: 3.047 MB / 0.6034 GB, free: 9.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002989/0.6222, allocations: 53.7 kB / 0.6034 GB, free: 9.031 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002051/0.6243, allocations: 2.453 MB / 0.6058 GB, free: 6.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001061/0.6253, allocations: 0.7517 MB / 0.6066 GB, free: 5.848 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001397/0.6267, allocations: 0.9475 MB / 0.6075 GB, free: 4.891 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.6269, allocations: 301.1 kB / 0.6078 GB, free: 4.594 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002742/0.6296, allocations: 1.532 MB / 0.6093 GB, free: 3.055 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005239/0.6349, allocations: 4.114 MB / 0.6133 GB, free: 13.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00872/0.6436, allocations: 6.09 MB / 0.6192 GB, free: 6.715 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.641e-05/0.6436, allocations: 27.94 kB / 0.6193 GB, free: 6.688 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01261/0.6563, allocations: 6.045 MB / 0.6252 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.617e-05/0.6563, allocations: 44 kB / 0.6252 GB, free: 0.7695 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/0.6565, allocations: 92 kB / 0.6253 GB, free: 0.6797 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001722/0.6582, allocations: 0.6191 MB / 0.6259 GB, free: 60 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003556/0.6617, allocations: 1.025 MB / 0.6269 GB, free: 15.03 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01264/0.6744, allocations: 8.954 MB / 0.6356 GB, free: 5.742 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003836/0.6782, allocations: 247 kB / 0.6359 GB, free: 5.504 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007266/0.6789, allocations: 276 kB / 0.6361 GB, free: 5.234 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.003531/0.6825, allocations: 1.733 MB / 0.6378 GB, free: 3.492 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005044/0.683, allocations: 282.1 kB / 0.6381 GB, free: 3.215 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005684/0.6887, allocations: 2.865 MB / 0.6409 GB, free: 332 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001132/0.6888, allocations: 27.98 kB / 0.6409 GB, free: 304 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-05/0.6888, allocations: 12 kB / 0.6409 GB, free: 292 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.065e-05/0.6888, allocations: 7.969 kB / 0.6409 GB, free: 284 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0191/0.7079, allocations: 9.04 MB / 0.6498 GB, free: 7.109 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/0.7079, allocations: 7.984 kB / 0.6498 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009289/0.7089, allocations: 208.1 kB / 0.65 GB, free: 6.898 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001767/0.7106, allocations: 0.6429 MB / 0.6506 GB, free: 6.258 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000176/0.7108, allocations: 39.98 kB / 0.6506 GB, free: 6.219 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01255/0.7233, allocations: 9.062 MB / 0.6595 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007763/0.7311, allocations: 5.706 MB / 0.6651 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007527/0.7386, allocations: 4.194 MB / 0.6692 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009541/0.7396, allocations: 278 kB / 0.6694 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004928/0.7401, allocations: 39.38 kB / 0.6695 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009689/0.741, allocations: 91.83 kB / 0.6695 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004082/0.7415, allocations: 140.9 kB / 0.6697 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000242/0.7417, allocations: 52 kB / 0.6697 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003578/0.7453, allocations: 1.948 MB / 0.6716 GB, free: 76 kB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.7453, allocations: 0 / 0.6716 GB, free: 76 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004459/0.7497, allocations: 0.876 MB / 0.6725 GB, free: 15.2 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.007786/0.7575, allocations: 4.834 MB / 0.6772 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007853/0.7654, allocations: 4.015 MB / 0.6811 GB, free: 6.254 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/0.7654, allocations: 3.938 kB / 0.6811 GB, free: 6.25 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002818/0.7682, allocations: 1.584 MB / 0.6827 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002488/0.7707, allocations: 456.7 kB / 0.6831 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05788/0.8286, allocations: 33.6 MB / 0.7159 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003818/0.8324, allocations: 2.834 MB / 0.7187 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003378/0.8358, allocations: 1.318 MB / 0.72 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00237/0.8381, allocations: 1.468 MB / 0.7214 GB, free: 9.332 MB / 0.5606 GB Notification: Performance of SimCode: time 1.022e-06/0.8381, allocations: 4 kB / 0.7214 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3741/1.212, allocations: 63.3 MB / 0.7832 GB, free: 170.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 50.26/51.47, allocations: 0 / 0.7832 GB, free: 170.2 MB / 0.5606 GB " [Timeout remaining time 608] (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: 54.74036385100044] Failed to read output from testmodel.py, exit status != 0: 51.64593529200283 51.666960215 51.214336067 Calling exit ...