Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.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.001317/0.001317, allocations: 115 kB / 18.46 MB, free: 4.621 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.001388/0.001388, allocations: 207.3 kB / 21.41 MB, free: 1.668 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.632/1.632, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.3314/0.3314, allocations: 46.92 MB / 357.8 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 179] 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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 75.89 kB / 0.4921 GB, free: 7.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1485, allocations: 66 MB / 0.5565 GB, free: 5.367 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.004164/0.1527, allocations: 1.642 MB / 0.5581 GB, free: 3.711 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.1542, allocations: 0.5899 MB / 0.5587 GB, free: 3.117 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.1544, allocations: 3.938 kB / 0.5587 GB, free: 3.113 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.1545, allocations: 15.86 kB / 0.5587 GB, free: 3.098 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.739e-05/0.1546, allocations: 7.875 kB / 0.5587 GB, free: 3.09 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004871/0.1551, allocations: 87.75 kB / 0.5588 GB, free: 3.004 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002459/0.1553, allocations: 111.8 kB / 0.5589 GB, free: 2.895 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.1555, allocations: 39.95 kB / 0.5589 GB, free: 2.855 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.1556, allocations: 51.78 kB / 0.559 GB, free: 2.805 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.233e-05/0.1557, allocations: 39.83 kB / 0.559 GB, free: 2.766 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.579e-05/0.1557, allocations: 8 kB / 0.559 GB, free: 2.758 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.245e-05/0.1557, allocations: 8 kB / 0.5591 GB, free: 2.75 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.1558, allocations: 19.92 kB / 0.5591 GB, free: 2.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.883e-05/0.1559, allocations: 43.72 kB / 0.5591 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002275/0.1561, allocations: 87.58 kB / 0.5592 GB, free: 2.602 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.367e-05/0.1561, allocations: 0 / 0.5592 GB, free: 2.602 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1561, allocations: 3.938 kB / 0.5592 GB, free: 2.598 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1561, allocations: 4 kB / 0.5592 GB, free: 2.594 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000906/0.157, allocations: 415.1 kB / 0.5596 GB, free: 2.141 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.1571, allocations: 8.031 kB / 0.5596 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.404e-05/0.1571, allocations: 12.83 kB / 0.5596 GB, free: 2.121 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.1575, allocations: 213.5 kB / 0.5598 GB, free: 1.875 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.1576, allocations: 12.38 kB / 0.5598 GB, free: 1.863 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.609e-05/0.1576, allocations: 4.375 kB / 0.5598 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.158, allocations: 102 kB / 0.5599 GB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.158, allocations: 0 / 0.5599 GB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.158, allocations: 4 kB / 0.5599 GB, free: 1.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.158, allocations: 0 / 0.5599 GB, free: 1.75 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002336/0.1583, allocations: 63.89 kB / 0.56 GB, free: 1.688 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009392/0.1592, allocations: 380.5 kB / 0.5604 GB, free: 1.266 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004748/0.1597, allocations: 102.5 kB / 0.5605 GB, free: 1.156 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.1598, allocations: 36.91 kB / 0.5605 GB, free: 1.117 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.1599, allocations: 4 kB / 0.5605 GB, free: 1.113 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003664/0.1602, allocations: 95.36 kB / 0.5606 GB, free: 1.008 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.954e-06/0.1602, allocations: 0 / 0.5606 GB, free: 1.008 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0006498/0.1609, allocations: 145.5 kB / 0.5607 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.1609, allocations: 55.34 kB / 0.5608 GB, free: 0.793 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.1611, allocations: 153.8 kB / 0.5609 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.1612, allocations: 29.7 kB / 0.561 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.92e-05/0.1613, allocations: 100.1 kB / 0.5611 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.532e-05/0.1613, allocations: 19.84 kB / 0.5611 GB, free: 488 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.21e-05/0.1614, allocations: 29.72 kB / 0.5611 GB, free: 452 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.1615, allocations: 318.8 kB / 0.5614 GB, free: 124 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.1617, allocations: 39.97 kB / 0.5614 GB, free: 84 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.1619, allocations: 49.69 kB / 0.5615 GB, free: 28 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003312/0.1622, allocations: 77.83 kB / 0.5616 GB, free: 15.94 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1622, allocations: 0 / 0.5616 GB, free: 15.94 MB / 430.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004244/0.1626, allocations: 121.5 kB / 0.5617 GB, free: 15.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.1627, allocations: 11.94 kB / 0.5617 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1627, allocations: 0 / 0.5617 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.1627, allocations: 3.984 kB / 0.5617 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.1628, allocations: 15.94 kB / 0.5617 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.1628, allocations: 0 / 0.5617 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.163, allocations: 28.05 kB / 0.5617 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.163, allocations: 4.031 kB / 0.5617 GB, free: 15.75 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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 0.0001346/0.1631, allocations: 124.4 kB / 0.5619 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.468e-05/0.1632, allocations: 15.84 kB / 0.5619 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.514e-05/0.1632, allocations: 8.719 kB / 0.5619 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1632, allocations: 4 kB / 0.5619 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1632, allocations: 0 / 0.5619 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1632, allocations: 0 / 0.5619 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007818/0.164, allocations: 398.3 kB / 0.5623 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.164, allocations: 0 / 0.5623 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.1641, allocations: 11.98 kB / 0.5623 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.1641, allocations: 0 / 0.5623 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.1642, allocations: 8 kB / 0.5623 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1642, allocations: 0 / 0.5623 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1642, allocations: 4 kB / 0.5623 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006609/0.1648, allocations: 247.8 kB / 0.5625 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.467e-05/0.1649, allocations: 97.05 kB / 0.5626 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.1649, allocations: 7.984 kB / 0.5626 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.1651, allocations: 15.98 kB / 0.5626 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.045e-05/0.1652, allocations: 15.98 kB / 0.5627 GB, free: 14.72 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.1652, allocations: 0 / 0.5627 GB, free: 14.72 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001289/0.1654, allocations: 118.2 kB / 0.5628 GB, free: 14.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1654, allocations: 0 / 0.5628 GB, free: 14.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004279/0.1658, allocations: 12 kB / 0.5628 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: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.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 0.000149/0.1659, allocations: 99.25 kB / 0.5629 GB, free: 14.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004397/0.1664, allocations: 91.84 kB / 0.563 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1664, allocations: 0 / 0.563 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.1666, allocations: 40.05 kB / 0.563 GB, free: 14.36 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005058/0.1671, allocations: 19.98 kB / 0.563 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.1682, allocations: 292 kB / 0.5633 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.1686, allocations: 0.7079 MB / 0.564 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.357e-05/0.1686, allocations: 11.44 kB / 0.564 GB, free: 13.28 MB / 430.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1686, allocations: 0 / 0.564 GB, free: 13.28 MB / 430.1 MB Notification: Performance of Templates: time 0.003944/0.1726, allocations: 1.36 MB / 0.5653 GB, free: 11.92 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.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: 7.8029719479964115]