Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.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.001776/0.001776, allocations: 123.4 kB / 17.79 MB, free: 5.285 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.00211/0.00211, allocations: 208.2 kB / 20.75 MB, free: 2.336 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.644/1.644, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2728/0.2728, allocations: 46.93 MB / 357.1 MB, free: 10.3 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+maint.om/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(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002106/0.002106, allocations: 63.91 kB / 0.4909 GB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1617, allocations: 65.99 MB / 0.5554 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003715/0.1654, allocations: 1.719 MB / 0.557 GB, free: 4.117 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005467/0.166, allocations: 163.5 kB / 0.5572 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.1661, allocations: 0 / 0.5572 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.856e-05/0.1661, allocations: 7.875 kB / 0.5572 GB, free: 3.949 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.826e-05/0.1662, allocations: 11.88 kB / 0.5572 GB, free: 3.938 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004472/0.1667, allocations: 103.8 kB / 0.5573 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002206/0.1669, allocations: 103.7 kB / 0.5574 GB, free: 3.734 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.167, allocations: 25.39 kB / 0.5574 GB, free: 3.707 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.512e-05/0.1671, allocations: 47.84 kB / 0.5575 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.703e-05/0.1672, allocations: 43.78 kB / 0.5575 GB, free: 3.617 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.334e-05/0.1672, allocations: 11.94 kB / 0.5575 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.92e-05/0.1673, allocations: 8 kB / 0.5575 GB, free: 3.598 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.818e-05/0.1673, allocations: 23.91 kB / 0.5576 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.235e-05/0.1674, allocations: 43.73 kB / 0.5576 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.1675, allocations: 91.56 kB / 0.5577 GB, free: 3.441 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1676, allocations: 0 / 0.5577 GB, free: 3.441 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1676, allocations: 0 / 0.5577 GB, free: 3.441 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1676, allocations: 0 / 0.5577 GB, free: 3.441 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.0008595/0.1684, allocations: 446.9 kB / 0.5581 GB, free: 2.953 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1685, allocations: 12.03 kB / 0.5581 GB, free: 2.941 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.527e-05/0.1685, allocations: 42.75 kB / 0.5582 GB, free: 2.891 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.288e-05/0.1686, allocations: 16.84 kB / 0.5582 GB, free: 2.875 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003649/0.1689, allocations: 206 kB / 0.5584 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.169, allocations: 8.375 kB / 0.5584 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.169, allocations: 8.375 kB / 0.5584 GB, free: 2.621 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004322/0.1694, allocations: 142.5 kB / 0.5585 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1694, allocations: 3.938 kB / 0.5585 GB, free: 2.457 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.828e-05/0.1695, allocations: 4 kB / 0.5585 GB, free: 2.453 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.1695, allocations: 8 kB / 0.5586 GB, free: 2.445 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004268/0.1699, allocations: 111.8 kB / 0.5587 GB, free: 2.336 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009179/0.1708, allocations: 0.5438 MB / 0.5592 GB, free: 1.734 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000483/0.1713, allocations: 138.5 kB / 0.5593 GB, free: 1.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002047/0.1715, allocations: 56.83 kB / 0.5594 GB, free: 1.531 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.1715, allocations: 4 kB / 0.5594 GB, free: 1.527 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.1716, allocations: 34.5 kB / 0.5594 GB, free: 1.484 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 2.013e-06/0.1716, allocations: 0 / 0.5594 GB, free: 1.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007352/0.1723, allocations: 185.5 kB / 0.5596 GB, free: 1.297 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.778e-05/0.1724, allocations: 102.8 kB / 0.5597 GB, free: 1.172 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.1726, allocations: 147.7 kB / 0.5598 GB, free: 1.016 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.1726, allocations: 29.7 kB / 0.5599 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.108e-05/0.1727, allocations: 112.2 kB / 0.56 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.1727, allocations: 19.8 kB / 0.56 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.012e-05/0.1728, allocations: 29.7 kB / 0.56 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.1729, allocations: 322.8 kB / 0.5603 GB, free: 500 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.1731, allocations: 47.95 kB / 0.5604 GB, free: 452 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.1734, allocations: 96.17 kB / 0.5605 GB, free: 340 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.1738, allocations: 110.8 kB / 0.5606 GB, free: 220 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1738, allocations: 0 / 0.5606 GB, free: 220 kB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005067/0.1743, allocations: 153.4 kB / 0.5607 GB, free: 60 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.1743, allocations: 4 kB / 0.5607 GB, free: 56 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1743, allocations: 7.938 kB / 0.5607 GB, free: 48 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.1743, allocations: 4.062 kB / 0.5607 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.1745, allocations: 23.97 kB / 0.5608 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.1745, allocations: 4 kB / 0.5608 GB, free: 16 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.1747, allocations: 35.8 kB / 0.5608 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.1747, allocations: 7.984 kB / 0.5608 GB, free: 15.97 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.0001388/0.1748, allocations: 120 kB / 0.5609 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-05/0.1749, allocations: 11.95 kB / 0.5609 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.767e-05/0.1749, allocations: 12.72 kB / 0.5609 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1749, allocations: 0 / 0.5609 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1749, allocations: 0 / 0.5609 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.1749, allocations: 3.938 kB / 0.5609 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002773/0.1752, allocations: 205.6 kB / 0.5611 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1752, allocations: 3.938 kB / 0.5611 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.1753, allocations: 19.97 kB / 0.5612 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1753, allocations: 0 / 0.5612 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.1753, allocations: 4 kB / 0.5612 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.1753, allocations: 8 kB / 0.5612 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1754, allocations: 0 / 0.5612 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005252/0.1759, allocations: 243.3 kB / 0.5614 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.172e-05/0.1759, allocations: 85.06 kB / 0.5615 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.176, allocations: 7.984 kB / 0.5615 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.1761, allocations: 27.97 kB / 0.5615 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.1762, allocations: 7.938 kB / 0.5615 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.1762, allocations: 7.922 kB / 0.5615 GB, free: 15.12 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.789e-05/0.1763, allocations: 108.4 kB / 0.5616 GB, free: 15.02 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1763, allocations: 0 / 0.5616 GB, free: 15.02 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.1765, allocations: 23.94 kB / 0.5617 GB, free: 15 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.0008681/0.1774, allocations: 0.7593 MB / 0.5624 GB, free: 14.21 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004736/0.1779, allocations: 124.4 kB / 0.5625 GB, free: 14.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1779, allocations: 0 / 0.5625 GB, free: 14.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002067/0.1781, allocations: 60.05 kB / 0.5626 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.1784, allocations: 28.33 kB / 0.5626 GB, free: 14.01 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.1811, allocations: 1.663 MB / 0.5642 GB, free: 12.25 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.1815, allocations: 0.7041 MB / 0.5649 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.406e-05/0.1815, allocations: 16.64 kB / 0.5649 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.744e-05/0.1816, allocations: 23.44 kB / 0.565 GB, free: 11.48 MB / 430.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1816, allocations: 0 / 0.565 GB, free: 11.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02741/0.209, allocations: 2.763 MB / 0.5677 GB, free: 8.793 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.27/8.479, allocations: 7.453 kB / 0.5677 GB, free: 8.789 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.mat","/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_4.1.0_ModelicaTest.Blocks.ZeroThresholds.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,ramp.y,greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y Variables in the result:gain.k,gain.u,gain.y,greaterEqualThreshold.threshold,greaterEqualThreshold.u,greaterEqualThreshold.y,greaterThreshold.threshold,greaterThreshold.u,greaterThreshold.y,lessEqualThreshold.threshold,lessEqualThreshold.u,lessEqualThreshold.y,lessThreshold.threshold,lessThreshold.u,lessThreshold.y,limiterMaxZero.homotopyType,limiterMaxZero.strict,limiterMaxZero.u,limiterMaxZero.uMax,limiterMaxZero.uMin,limiterMaxZero.y,limiterMinZero.homotopyType,limiterMinZero.strict,limiterMinZero.u,limiterMinZero.uMax,limiterMinZero.uMin,limiterMinZero.y,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time [Calling sys.exit(0), Time elapsed: 11.803382796002552]