Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.0008371/0.0008371, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003826/0.003826, allocations: 158.6 kB / 24.7 MB, free: 8.891 MB / 18.57 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 0.8609/0.8609, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2238/0.2238, allocations: 32.79 MB / 294.2 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 440.8 MB, free: 3.773 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.347e-05/2.53e-05, allocations: 6.219 kB / 440.8 MB, free: 3.766 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001939/0.001964, allocations: 1.612 MB / 442.4 MB, free: 2.141 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006764/0.00264, allocations: 494.6 kB / 442.9 MB, free: 1.652 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.937e-05/0.00272, allocations: 0 / 442.9 MB, free: 1.652 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.002843, allocations: 15.86 kB / 442.9 MB, free: 1.637 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.589e-05/0.002889, allocations: 11.88 kB / 443 MB, free: 1.625 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.003067, allocations: 43.83 kB / 443 MB, free: 1.582 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000132/0.003199, allocations: 83.69 kB / 443.1 MB, free: 1.5 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.003319, allocations: 20.22 kB / 443.1 MB, free: 1.48 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.976e-05/0.003378, allocations: 39.91 kB / 443.1 MB, free: 1.441 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.387e-05/0.003442, allocations: 23.89 kB / 443.2 MB, free: 1.418 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.003468, allocations: 8 kB / 443.2 MB, free: 1.41 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.3e-05/0.003481, allocations: 8 kB / 443.2 MB, free: 1.402 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.461e-05/0.003506, allocations: 11.98 kB / 443.2 MB, free: 1.391 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.111e-05/0.003547, allocations: 23.92 kB / 443.2 MB, free: 1.367 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.003682, allocations: 79.64 kB / 443.3 MB, free: 1.289 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.003685, allocations: 0 / 443.3 MB, free: 1.289 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.003686, allocations: 4 kB / 443.3 MB, free: 1.285 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.00369, allocations: 0 / 443.3 MB, free: 1.285 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000507/0.004197, allocations: 330.8 kB / 443.6 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.004233, allocations: 12.03 kB / 443.6 MB, free: 0.918 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.717e-05/0.00427, allocations: 8.891 kB / 443.6 MB, free: 0.9102 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.004456, allocations: 137.6 kB / 443.8 MB, free: 0.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.004474, allocations: 8.375 kB / 443.8 MB, free: 0.7422 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.725e-05/0.004501, allocations: 8.328 kB / 443.8 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.004622, allocations: 80.47 kB / 443.9 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.004631, allocations: 4.125 kB / 443.9 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.004643, allocations: 8.375 kB / 443.9 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.004649, allocations: 3.938 kB / 443.9 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.469e-05/0.004714, allocations: 31.98 kB / 443.9 MB, free: 0.6055 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003939/0.005108, allocations: 276.3 kB / 444.2 MB, free: 312 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.414e-05/0.005192, allocations: 38.58 kB / 444.2 MB, free: 264 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.745e-05/0.005219, allocations: 24.86 kB / 444.2 MB, free: 236 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.005232, allocations: 0 / 444.2 MB, free: 236 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001042/0.005336, allocations: 75.38 kB / 444.3 MB, free: 148 kB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.005337, allocations: 0 / 444.3 MB, free: 148 kB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001951/0.005532, allocations: 77.88 kB / 444.4 MB, free: 64 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1715/0.1771, allocations: 54.11 kB / 444.4 MB, free: 46.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.925e-05/0.1772, allocations: 129.7 kB / 444.6 MB, free: 46.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.1772, allocations: 27.33 kB / 444.6 MB, free: 46.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.238e-05/0.1772, allocations: 104.2 kB / 444.7 MB, free: 46.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.1772, allocations: 21.22 kB / 444.7 MB, free: 46.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.033e-05/0.1773, allocations: 24.97 kB / 444.7 MB, free: 46.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.571e-05/0.1773, allocations: 322.9 kB / 445.1 MB, free: 46.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.205e-05/0.1773, allocations: 16.75 kB / 445.1 MB, free: 46.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.961e-05/0.1773, allocations: 40.2 kB / 445.1 MB, free: 46.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.177e-05/0.1774, allocations: 50.22 kB / 445.2 MB, free: 46.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1774, allocations: 2.562 kB / 445.2 MB, free: 46.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.122e-05/0.1775, allocations: 88.91 kB / 445.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.1775, allocations: 5.188 kB / 445.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.1775, allocations: 0 / 445.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.1775, allocations: 4.125 kB / 445.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.366e-05/0.1776, allocations: 5.781 kB / 445.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1776, allocations: 5.688 kB / 445.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.296e-05/0.1776, allocations: 10.66 kB / 445.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.558e-06/0.1776, allocations: 6.656 kB / 445.3 MB, free: 46.16 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$whenCondition2) * 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 4.411e-05/0.1777, allocations: 119.8 kB / 445.4 MB, free: 46.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.052e-05/0.1777, allocations: 11.27 kB / 445.4 MB, free: 46.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.173e-05/0.1777, allocations: 13.72 kB / 445.4 MB, free: 46.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1777, allocations: 3.938 kB / 445.4 MB, free: 46.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1777, allocations: 0 / 445.4 MB, free: 46.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.1777, allocations: 0 / 445.4 MB, free: 46.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.1779, allocations: 294.1 kB / 445.7 MB, free: 45.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1779, allocations: 0 / 445.7 MB, free: 45.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.248e-05/0.1779, allocations: 9.281 kB / 445.7 MB, free: 45.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1779, allocations: 3.938 kB / 445.7 MB, free: 45.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.1779, allocations: 3.281 kB / 445.7 MB, free: 45.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.1779, allocations: 3.656 kB / 445.7 MB, free: 45.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1779, allocations: 0 / 445.7 MB, free: 45.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.178, allocations: 189.6 kB / 445.9 MB, free: 45.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.636e-06/0.1781, allocations: 2.969 kB / 445.9 MB, free: 45.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.1781, allocations: 3.938 kB / 445.9 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.402e-05/0.1781, allocations: 14.25 kB / 446 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.033e-05/0.1781, allocations: 5.797 kB / 446 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.1781, allocations: 2.875 kB / 446 MB, free: 45.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.065e-05/0.1782, allocations: 96.5 kB / 446.1 MB, free: 45.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1782, allocations: 0 / 446.1 MB, free: 45.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001463/0.1783, allocations: 24.55 kB / 446.1 MB, free: 45.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 6.121e-05/0.1784, allocations: 99.77 kB / 446.2 MB, free: 45.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.191e-05/0.1785, allocations: 37.17 kB / 446.2 MB, free: 45.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.1785, allocations: 0 / 446.2 MB, free: 45.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.934e-05/0.1785, allocations: 28.8 kB / 446.2 MB, free: 45.49 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00019/0.1787, allocations: 17.2 kB / 446.3 MB, free: 45.49 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002816/0.179, allocations: 229.8 kB / 446.5 MB, free: 45.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.281e-05/0.179, allocations: 82.22 kB / 446.6 MB, free: 45.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.252e-05/0.179, allocations: 14.38 kB / 446.6 MB, free: 45.26 MB / 410.7 MB Notification: Performance of SimCode: time 4.21e-07/0.179, allocations: 0.5 kB / 446.6 MB, free: 45.26 MB / 410.7 MB Notification: Performance of Templates: time 0.001446/0.1805, allocations: 1.125 MB / 447.7 MB, free: 45.21 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.387547321617603]