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.001792/0.001792, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002357/0.002357, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.626/1.626, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.3137/0.3137, allocations: 46.92 MB / 357.1 MB, free: 10.34 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: translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|ramp.y|greaterThreshold.y|greaterEqualThreshold.y|lessThreshold.y|lessEqualThreshold.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds") translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|ramp.y|greaterThreshold.y|greaterEqualThreshold.y|lessThreshold.y|lessEqualThreshold.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 71.88 kB / 0.4914 GB, free: 7.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1556, allocations: 65.99 MB / 0.5558 GB, free: 5.398 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003492/0.1591, allocations: 1.727 MB / 0.5575 GB, free: 3.656 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005071/0.1596, allocations: 159.5 kB / 0.5577 GB, free: 3.5 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.648e-05/0.1597, allocations: 0 / 0.5577 GB, free: 3.5 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 5.899e-05/0.1598, allocations: 7.875 kB / 0.5577 GB, free: 3.492 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.684e-05/0.1599, allocations: 7.875 kB / 0.5577 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004046/0.1603, allocations: 107.7 kB / 0.5578 GB, free: 3.383 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.1605, allocations: 107.8 kB / 0.5579 GB, free: 3.277 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.1607, allocations: 25.38 kB / 0.5579 GB, free: 3.25 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.487e-05/0.1608, allocations: 39.86 kB / 0.558 GB, free: 3.211 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.021e-05/0.1608, allocations: 47.77 kB / 0.558 GB, free: 3.164 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.629e-05/0.1609, allocations: 15.94 kB / 0.558 GB, free: 3.148 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.689e-05/0.1609, allocations: 8 kB / 0.558 GB, free: 3.141 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.087e-05/0.1609, allocations: 19.92 kB / 0.5581 GB, free: 3.121 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.889e-05/0.161, allocations: 47.72 kB / 0.5581 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.1612, allocations: 91.56 kB / 0.5582 GB, free: 2.984 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1612, allocations: 0 / 0.5582 GB, free: 2.984 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1612, allocations: 0 / 0.5582 GB, free: 2.984 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.1612, allocations: 0 / 0.5582 GB, free: 2.984 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.0008534/0.1621, allocations: 450.9 kB / 0.5586 GB, free: 2.492 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.1621, allocations: 12.03 kB / 0.5586 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.898e-05/0.1622, allocations: 12.84 kB / 0.5586 GB, free: 2.469 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/0.1625, allocations: 197.9 kB / 0.5588 GB, free: 2.238 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.1625, allocations: 8.375 kB / 0.5588 GB, free: 2.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.061e-05/0.1625, allocations: 8.375 kB / 0.5588 GB, free: 2.223 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004025/0.1629, allocations: 150.5 kB / 0.559 GB, free: 2.055 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1629, allocations: 192 / 0.559 GB, free: 2.055 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.1629, allocations: 3.938 kB / 0.559 GB, free: 2.051 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1629, allocations: 4 kB / 0.559 GB, free: 2.047 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003941/0.1633, allocations: 111.8 kB / 0.5591 GB, free: 1.938 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007703/0.1641, allocations: 0.5477 MB / 0.5596 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004613/0.1646, allocations: 126.5 kB / 0.5598 GB, free: 1.199 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.1648, allocations: 56.84 kB / 0.5598 GB, free: 1.141 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.1648, allocations: 8 kB / 0.5598 GB, free: 1.133 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.436e-05/0.1648, allocations: 34.5 kB / 0.5599 GB, free: 1.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.1648, allocations: 0 / 0.5599 GB, free: 1.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006962/0.1655, allocations: 189.6 kB / 0.56 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.436e-05/0.1656, allocations: 106.8 kB / 0.5601 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.1658, allocations: 135.9 kB / 0.5603 GB, free: 0.625 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.1658, allocations: 25.7 kB / 0.5603 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.58e-05/0.1659, allocations: 108.2 kB / 0.5604 GB, free: 496 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.321e-05/0.1659, allocations: 27.73 kB / 0.5604 GB, free: 468 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.224e-05/0.166, allocations: 33.7 kB / 0.5604 GB, free: 428 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1661, allocations: 326.8 kB / 0.5608 GB, free: 92 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.1663, allocations: 47.95 kB / 0.5608 GB, free: 44 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.1666, allocations: 92.17 kB / 0.5609 GB, free: 15.94 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003663/0.167, allocations: 110.8 kB / 0.561 GB, free: 15.82 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.167, allocations: 4.219 kB / 0.561 GB, free: 15.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00046/0.1674, allocations: 149.5 kB / 0.5611 GB, free: 15.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.1674, allocations: 13.95 kB / 0.5612 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1674, allocations: 7.938 kB / 0.5612 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.1675, allocations: 0 / 0.5612 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.1676, allocations: 28.03 kB / 0.5612 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.1676, allocations: 4 kB / 0.5612 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/0.1678, allocations: 39.8 kB / 0.5612 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.1678, allocations: 0 / 0.5612 GB, free: 15.57 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.0001414/0.1679, allocations: 120 kB / 0.5614 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.855e-05/0.168, allocations: 7.953 kB / 0.5614 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.242e-05/0.168, allocations: 24.7 kB / 0.5614 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.168, allocations: 3.984 kB / 0.5614 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1681, allocations: 0 / 0.5614 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1681, allocations: 3.938 kB / 0.5614 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002763/0.1683, allocations: 201.6 kB / 0.5616 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1683, allocations: 3.938 kB / 0.5616 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.1685, allocations: 23.97 kB / 0.5616 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1685, allocations: 0 / 0.5616 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.1685, allocations: 8 kB / 0.5616 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1685, allocations: 0 / 0.5616 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1685, allocations: 4 kB / 0.5616 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004948/0.169, allocations: 239.3 kB / 0.5618 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.056e-05/0.169, allocations: 85.06 kB / 0.5619 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.1691, allocations: 4 kB / 0.5619 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.1692, allocations: 27.97 kB / 0.562 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.1693, allocations: 11.98 kB / 0.562 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.1693, allocations: 3.938 kB / 0.562 GB, free: 14.72 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.623e-05/0.1694, allocations: 108.4 kB / 0.5621 GB, free: 14.62 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1694, allocations: 0 / 0.5621 GB, free: 14.62 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002519/0.1696, allocations: 23.88 kB / 0.5621 GB, free: 14.59 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.0001203/0.1697, allocations: 103.2 kB / 0.5622 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004582/0.1702, allocations: 111.8 kB / 0.5623 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1702, allocations: 0 / 0.5623 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002083/0.1704, allocations: 60.06 kB / 0.5624 GB, free: 14.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.1707, allocations: 17.97 kB / 0.5624 GB, free: 14.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005746/0.1713, allocations: 217.9 kB / 0.5626 GB, free: 14.06 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003634/0.1717, allocations: 0.6963 MB / 0.5633 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.269e-05/0.1717, allocations: 12.66 kB / 0.5633 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.847e-05/0.1718, allocations: 19.38 kB / 0.5633 GB, free: 13.3 MB / 430.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1718, allocations: 0 / 0.5633 GB, free: 13.3 MB / 430.1 MB Notification: Performance of Templates: time 0.004519/0.1763, allocations: 1.453 MB / 0.5647 GB, free: 11.86 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ZeroThresholds/ZeroThresholds.csv","/var/lib/jenkins/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,greaterEqualThreshold.threshold,greaterEqualThreshold.y,greaterThreshold.threshold,greaterThreshold.y,lessEqualThreshold.threshold,lessEqualThreshold.y,lessThreshold.threshold,lessThreshold.y,limiterMaxZero.homotopyType,limiterMaxZero.strict,limiterMaxZero.uMax,limiterMaxZero.uMin,limiterMinZero.homotopyType,limiterMinZero.strict,limiterMinZero.uMax,limiterMinZero.uMin,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time [Calling sys.exit(0), Time elapsed: 5.524597775191069]