Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00165/0.00165, allocations: 121.2 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00196/0.00196, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 230.4 MB / 254.7 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2381/0.2381, allocations: 46.93 MB / 357.7 MB, free: 10.25 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002306/0.002306, allocations: 83.86 kB / 0.4917 GB, free: 7.781 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1534, allocations: 66.04 MB / 0.5562 GB, free: 5.613 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003292/0.1567, allocations: 1.721 MB / 0.5578 GB, free: 3.875 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005177/0.1572, allocations: 159.5 kB / 0.558 GB, free: 3.719 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.625e-05/0.1573, allocations: 0 / 0.558 GB, free: 3.719 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.422e-05/0.1573, allocations: 11.86 kB / 0.558 GB, free: 3.707 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.495e-05/0.1574, allocations: 15.81 kB / 0.558 GB, free: 3.691 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.1578, allocations: 107.3 kB / 0.5581 GB, free: 3.59 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.158, allocations: 99.77 kB / 0.5582 GB, free: 3.492 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.1581, allocations: 25.39 kB / 0.5582 GB, free: 3.465 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.093e-05/0.1582, allocations: 39.84 kB / 0.5583 GB, free: 3.426 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.906e-05/0.1583, allocations: 51.75 kB / 0.5583 GB, free: 3.375 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.1583, allocations: 8 kB / 0.5583 GB, free: 3.367 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.794e-05/0.1584, allocations: 8 kB / 0.5583 GB, free: 3.359 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.185e-05/0.1584, allocations: 23.92 kB / 0.5584 GB, free: 3.336 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.55e-05/0.1584, allocations: 39.73 kB / 0.5584 GB, free: 3.297 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.1586, allocations: 99.5 kB / 0.5585 GB, free: 3.199 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1586, allocations: 0 / 0.5585 GB, free: 3.199 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1586, allocations: 4 kB / 0.5585 GB, free: 3.195 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.1586, allocations: 0 / 0.5585 GB, free: 3.195 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007839/0.1594, allocations: 442.9 kB / 0.5589 GB, free: 2.711 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.1594, allocations: 12.03 kB / 0.5589 GB, free: 2.699 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.623e-05/0.1595, allocations: 38.73 kB / 0.559 GB, free: 2.652 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.251e-05/0.1595, allocations: 20.84 kB / 0.559 GB, free: 2.633 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.1599, allocations: 200.2 kB / 0.5592 GB, free: 2.398 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.1599, allocations: 4.375 kB / 0.5592 GB, free: 2.395 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.1599, allocations: 12.36 kB / 0.5592 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003882/0.1603, allocations: 152.6 kB / 0.5593 GB, free: 2.215 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1603, allocations: 7.922 kB / 0.5593 GB, free: 2.207 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.1603, allocations: 4 kB / 0.5593 GB, free: 2.203 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1603, allocations: 4 kB / 0.5594 GB, free: 2.199 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003896/0.1607, allocations: 103.9 kB / 0.5595 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007493/0.1615, allocations: 0.5477 MB / 0.56 GB, free: 1.492 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004469/0.1619, allocations: 138.4 kB / 0.5601 GB, free: 1.348 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002149/0.1621, allocations: 52.84 kB / 0.5602 GB, free: 1.293 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.1621, allocations: 0 / 0.5602 GB, free: 1.293 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.1622, allocations: 38.56 kB / 0.5602 GB, free: 1.246 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.1622, allocations: 0 / 0.5602 GB, free: 1.246 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006818/0.1628, allocations: 185.5 kB / 0.5604 GB, free: 1.059 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.861e-05/0.1629, allocations: 106.8 kB / 0.5605 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.1631, allocations: 148.6 kB / 0.5606 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.1631, allocations: 25.7 kB / 0.5606 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.352e-05/0.1632, allocations: 112.2 kB / 0.5608 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.1632, allocations: 23.78 kB / 0.5608 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.84e-05/0.1633, allocations: 37.7 kB / 0.5608 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1634, allocations: 314.8 kB / 0.5611 GB, free: 252 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.1636, allocations: 55.94 kB / 0.5612 GB, free: 196 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.1638, allocations: 84.25 kB / 0.5612 GB, free: 96 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.1642, allocations: 110.5 kB / 0.5614 GB, free: 15.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1642, allocations: 0 / 0.5614 GB, free: 15.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004623/0.1647, allocations: 157.5 kB / 0.5615 GB, free: 15.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.1647, allocations: 4 kB / 0.5615 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.1647, allocations: 4.188 kB / 0.5615 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1647, allocations: 0 / 0.5615 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.1649, allocations: 27.91 kB / 0.5615 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.1649, allocations: 4.391 kB / 0.5615 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.165, allocations: 35.8 kB / 0.5616 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.165, allocations: 4.062 kB / 0.5616 GB, free: 15.74 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001186/0.1652, allocations: 125.8 kB / 0.5617 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.555e-05/0.1652, allocations: 7.953 kB / 0.5617 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.276e-05/0.1652, allocations: 12.7 kB / 0.5617 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.1652, allocations: 4 kB / 0.5617 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1652, allocations: 0 / 0.5617 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1652, allocations: 3.938 kB / 0.5617 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.1655, allocations: 205.6 kB / 0.5619 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1655, allocations: 4 kB / 0.5619 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.1656, allocations: 23.97 kB / 0.562 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1656, allocations: 0 / 0.562 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.1656, allocations: 4 kB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1656, allocations: 0 / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1656, allocations: 0 / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005013/0.1661, allocations: 251.2 kB / 0.5622 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.098e-05/0.1662, allocations: 85.06 kB / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.1662, allocations: 0 / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.1664, allocations: 23.97 kB / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.1664, allocations: 19.86 kB / 0.5623 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-06/0.1665, allocations: 4 kB / 0.5623 GB, free: 14.88 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.107e-05/0.1665, allocations: 111.2 kB / 0.5624 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1665, allocations: 0 / 0.5624 GB, free: 14.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002513/0.1668, allocations: 19.94 kB / 0.5624 GB, free: 14.75 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008235/0.1676, allocations: 0.767 MB / 0.5632 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004501/0.1681, allocations: 111.9 kB / 0.5633 GB, free: 13.85 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1681, allocations: 0 / 0.5633 GB, free: 13.85 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002019/0.1683, allocations: 64 kB / 0.5634 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.1686, allocations: 21.34 kB / 0.5634 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.1711, allocations: 1.663 MB / 0.565 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.1714, allocations: 0.7041 MB / 0.5657 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.678e-05/0.1715, allocations: 8.656 kB / 0.5657 GB, free: 11.28 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.408e-05/0.1716, allocations: 31.42 kB / 0.5657 GB, free: 11.25 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1716, allocations: 0 / 0.5657 GB, free: 11.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.1971, allocations: 2.764 MB / 0.5684 GB, free: 8.562 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.918/8.115, allocations: 0 / 0.5684 GB, free: 8.562 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019988 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.235205992590636] Failed to read output from testmodel.py, exit status != 0: ['time', 'ramp.y', 'greaterThreshold.y', 'greaterEqualThreshold.y', 'lessThreshold.y', 'lessEqualThreshold.y'] 8.18625511135906 8.212522714 8.048997976 Calling exit ...