Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001359/0.001359, allocations: 128.4 kB / 17.79 MB, free: 5.242 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.001534/0.001534, allocations: 210.5 kB / 20.75 MB, free: 2.293 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.501/1.501, allocations: 230.4 MB / 254 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2435/0.2435, allocations: 46.91 MB / 357 MB, free: 10.21 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002452/0.002452, allocations: 75.88 kB / 0.491 GB, free: 7.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1576, allocations: 66.04 MB / 0.5555 GB, free: 5.598 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003435/0.161, allocations: 1.717 MB / 0.5571 GB, free: 3.863 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004636/0.1615, allocations: 163.5 kB / 0.5573 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.496e-05/0.1615, allocations: 8 kB / 0.5573 GB, free: 3.695 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.895e-05/0.1616, allocations: 7.875 kB / 0.5573 GB, free: 3.688 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.903e-05/0.1616, allocations: 15.8 kB / 0.5573 GB, free: 3.672 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.162, allocations: 98 kB / 0.5574 GB, free: 3.578 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001789/0.1622, allocations: 103.7 kB / 0.5575 GB, free: 3.477 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.1624, allocations: 29.39 kB / 0.5575 GB, free: 3.445 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.877e-05/0.1624, allocations: 39.84 kB / 0.5576 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.314e-05/0.1625, allocations: 43.77 kB / 0.5576 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.434e-05/0.1625, allocations: 8 kB / 0.5576 GB, free: 3.355 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.755e-05/0.1625, allocations: 8 kB / 0.5576 GB, free: 3.348 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.211e-05/0.1626, allocations: 27.92 kB / 0.5577 GB, free: 3.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.538e-05/0.1626, allocations: 39.73 kB / 0.5577 GB, free: 3.281 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.1628, allocations: 95.56 kB / 0.5578 GB, free: 3.188 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1628, allocations: 0 / 0.5578 GB, free: 3.188 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1628, allocations: 0 / 0.5578 GB, free: 3.188 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1628, allocations: 4 kB / 0.5578 GB, free: 3.184 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.0007941/0.1636, allocations: 446.9 kB / 0.5582 GB, free: 2.695 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.1637, allocations: 8.031 kB / 0.5582 GB, free: 2.688 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.761e-05/0.1637, allocations: 42.73 kB / 0.5583 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.446e-05/0.1638, allocations: 12.84 kB / 0.5583 GB, free: 2.625 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.1641, allocations: 204.2 kB / 0.5585 GB, free: 2.387 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-06/0.1641, allocations: 4.375 kB / 0.5585 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/0.1641, allocations: 8.375 kB / 0.5585 GB, free: 2.375 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.1645, allocations: 154.4 kB / 0.5586 GB, free: 2.203 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1645, allocations: 3.938 kB / 0.5586 GB, free: 2.199 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.1645, allocations: 11.98 kB / 0.5586 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1646, allocations: 0 / 0.5586 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003876/0.1649, allocations: 103.9 kB / 0.5587 GB, free: 2.086 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008559/0.1658, allocations: 0.5516 MB / 0.5593 GB, free: 1.477 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/0.1662, allocations: 138.4 kB / 0.5594 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.1664, allocations: 56.81 kB / 0.5595 GB, free: 1.273 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.1665, allocations: 0 / 0.5595 GB, free: 1.273 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.1665, allocations: 30.56 kB / 0.5595 GB, free: 1.234 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 9.02e-07/0.1665, allocations: 0 / 0.5595 GB, free: 1.234 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006851/0.1672, allocations: 189.5 kB / 0.5597 GB, free: 1.043 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.411e-05/0.1673, allocations: 110.8 kB / 0.5598 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.1674, allocations: 141 kB / 0.5599 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.1674, allocations: 29.7 kB / 0.56 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.122e-05/0.1675, allocations: 108.2 kB / 0.5601 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.359e-05/0.1675, allocations: 23.86 kB / 0.5601 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-05/0.1676, allocations: 29.7 kB / 0.5601 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1677, allocations: 334.8 kB / 0.5604 GB, free: 228 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.1679, allocations: 47.95 kB / 0.5605 GB, free: 180 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.1681, allocations: 84.23 kB / 0.5606 GB, free: 80 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/0.1685, allocations: 114.5 kB / 0.5607 GB, free: 15.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1685, allocations: 0 / 0.5607 GB, free: 15.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004294/0.1689, allocations: 149.5 kB / 0.5608 GB, free: 15.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.169, allocations: 9.719 kB / 0.5608 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.169, allocations: 3.984 kB / 0.5608 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.169, allocations: 0 / 0.5608 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.1691, allocations: 23.98 kB / 0.5608 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.1691, allocations: 8.047 kB / 0.5608 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.1693, allocations: 35.8 kB / 0.5609 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.1693, allocations: 4 kB / 0.5609 GB, free: 15.72 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.0001197/0.1694, allocations: 121.8 kB / 0.561 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.691e-05/0.1695, allocations: 7.953 kB / 0.561 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.747e-05/0.1695, allocations: 12.72 kB / 0.561 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.1695, allocations: 0 / 0.561 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/0.1695, allocations: 11.98 kB / 0.561 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1695, allocations: 3.938 kB / 0.561 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002514/0.1698, allocations: 209.6 kB / 0.5612 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.1698, allocations: 0 / 0.5612 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.1699, allocations: 19.98 kB / 0.5613 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.1699, allocations: 3.984 kB / 0.5613 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.1699, allocations: 0 / 0.5613 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1699, allocations: 0 / 0.5613 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1699, allocations: 0 / 0.5613 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004709/0.1704, allocations: 251.2 kB / 0.5615 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-05/0.1704, allocations: 85.06 kB / 0.5616 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.1705, allocations: 0 / 0.5616 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.1706, allocations: 23.97 kB / 0.5616 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.916e-05/0.1707, allocations: 15.92 kB / 0.5616 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.1707, allocations: 7.938 kB / 0.5616 GB, free: 14.87 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.497e-05/0.1707, allocations: 99.27 kB / 0.5617 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1707, allocations: 4 kB / 0.5617 GB, free: 14.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.171, allocations: 19.94 kB / 0.5617 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.0008248/0.1718, allocations: 0.7676 MB / 0.5625 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004612/0.1723, allocations: 124.1 kB / 0.5626 GB, free: 13.83 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1723, allocations: 0 / 0.5626 GB, free: 13.83 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.1725, allocations: 59.89 kB / 0.5627 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.1728, allocations: 25.69 kB / 0.5627 GB, free: 13.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.1753, allocations: 1.661 MB / 0.5643 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.1757, allocations: 0.6963 MB / 0.565 GB, free: 11.27 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.321e-05/0.1757, allocations: 16.64 kB / 0.565 GB, free: 11.26 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.27e-05/0.1758, allocations: 31.42 kB / 0.565 GB, free: 11.23 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1758, allocations: 0 / 0.565 GB, free: 11.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.2004, allocations: 2.757 MB / 0.5677 GB, free: 8.535 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/8.12, allocations: 9.844 kB / 0.5677 GB, free: 8.531 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ZeroThresholds/ZeroThresholds.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable Time from file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable greaterThreshold.y in file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable greaterThreshold.y from file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable greaterEqualThreshold.y in file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable greaterEqualThreshold.y from file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable lessThreshold.y in file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable lessThreshold.y from file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable lessEqualThreshold.y in file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable lessEqualThreshold.y from file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.324079708079807]