Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 102.6 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 180.8 kB / 16.92 MB, free: 6.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.193/2.193, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5474/0.5474, allocations: 43.57 MB / 315 MB, free: 8.82 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005053/0.0005053, allocations: 16 kB / 384.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.161, allocations: 58.85 MB / 443.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00233/0.1634, allocations: 1.33 MB / 444.8 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.1646, allocations: 0.5815 MB / 445.3 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.1648, allocations: 8 kB / 445.4 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.165, allocations: 15.86 kB / 445.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.711e-05/0.165, allocations: 3.938 kB / 445.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004553/0.1655, allocations: 75.84 kB / 445.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002189/0.1657, allocations: 111.7 kB / 445.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.1659, allocations: 40.17 kB / 445.6 MB, free: 10.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.978e-05/0.166, allocations: 47.77 kB / 445.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.1661, allocations: 27.84 kB / 445.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.787e-05/0.1661, allocations: 4 kB / 445.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.376e-05/0.1662, allocations: 0 / 445.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.749e-05/0.1662, allocations: 15.92 kB / 445.7 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.38e-05/0.1663, allocations: 61.44 kB / 445.7 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.1665, allocations: 75.75 kB / 445.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1665, allocations: 0 / 445.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1665, allocations: 0 / 445.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.1665, allocations: 4 kB / 445.8 MB, free: 10.27 MB / 382.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.0008344/0.1673, allocations: 411.1 kB / 446.2 MB, free: 9.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.1674, allocations: 12.03 kB / 446.2 MB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.221e-05/0.1675, allocations: 8.844 kB / 446.2 MB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.1678, allocations: 204 kB / 446.4 MB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.1678, allocations: 8.375 kB / 446.5 MB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.1679, allocations: 4.375 kB / 446.5 MB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.1682, allocations: 114 kB / 446.6 MB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1682, allocations: 0 / 446.6 MB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.859e-05/0.1682, allocations: 8 kB / 446.6 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1683, allocations: 0 / 446.6 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.1685, allocations: 59.89 kB / 446.6 MB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008943/0.1694, allocations: 396.5 kB / 447 MB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003958/0.1698, allocations: 118.5 kB / 447.1 MB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.1699, allocations: 44.88 kB / 447.2 MB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.1699, allocations: 0 / 447.2 MB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003776/0.1703, allocations: 107.3 kB / 447.3 MB, free: 8.641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.1703, allocations: 0 / 447.3 MB, free: 8.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.000584/0.1709, allocations: 157.5 kB / 447.4 MB, free: 8.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/0.171, allocations: 59.34 kB / 447.5 MB, free: 8.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002043/0.1712, allocations: 149.8 kB / 447.6 MB, free: 8.254 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.1713, allocations: 25.7 kB / 447.7 MB, free: 8.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.1714, allocations: 104 kB / 447.8 MB, free: 8.117 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.098e-05/0.1714, allocations: 19.8 kB / 447.8 MB, free: 8.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.916e-05/0.1715, allocations: 17.72 kB / 447.8 MB, free: 8.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002291/0.1717, allocations: 322.8 kB / 448.1 MB, free: 7.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.1719, allocations: 39.97 kB / 448.2 MB, free: 7.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.172, allocations: 65.62 kB / 448.2 MB, free: 7.641 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/0.1723, allocations: 81.62 kB / 448.3 MB, free: 7.555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1723, allocations: 0 / 448.3 MB, free: 7.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000317/0.1726, allocations: 133.5 kB / 448.4 MB, free: 7.418 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.1727, allocations: 11.94 kB / 448.5 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.1727, allocations: 0 / 448.5 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.1727, allocations: 0 / 448.5 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.1728, allocations: 19.92 kB / 448.5 MB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.1729, allocations: 7.938 kB / 448.5 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.173, allocations: 27.97 kB / 448.5 MB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.173, allocations: 8 kB / 448.5 MB, free: 7.344 MB / 382.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.0001467/0.1732, allocations: 117.6 kB / 448.6 MB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.812e-05/0.1732, allocations: 15.83 kB / 448.6 MB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.016e-05/0.1732, allocations: 16.72 kB / 448.7 MB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.1733, allocations: 0 / 448.7 MB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.1733, allocations: 0 / 448.7 MB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.1733, allocations: 3.984 kB / 448.7 MB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006787/0.174, allocations: 398.4 kB / 449.1 MB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.174, allocations: 0 / 449.1 MB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.1741, allocations: 15.98 kB / 449.1 MB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.1741, allocations: 4 kB / 449.1 MB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.1741, allocations: 0 / 449.1 MB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1741, allocations: 0 / 449.1 MB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1741, allocations: 0 / 449.1 MB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005826/0.1747, allocations: 267.5 kB / 449.3 MB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.846e-05/0.1748, allocations: 92.94 kB / 449.4 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.1748, allocations: 0 / 449.4 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.175, allocations: 31.98 kB / 449.5 MB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.809e-05/0.1751, allocations: 15.97 kB / 449.5 MB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.1751, allocations: 4 kB / 449.5 MB, free: 6.289 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001136/0.1752, allocations: 112 kB / 449.6 MB, free: 6.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1752, allocations: 0 / 449.6 MB, free: 6.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.1755, allocations: 19.92 kB / 449.6 MB, free: 6.16 MB / 382.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.0001984/0.1757, allocations: 111.2 kB / 449.7 MB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003484/0.176, allocations: 87.83 kB / 449.8 MB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.385e-06/0.1761, allocations: 4 kB / 449.8 MB, free: 5.949 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.1762, allocations: 48.03 kB / 449.8 MB, free: 5.902 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.1766, allocations: 15.98 kB / 449.9 MB, free: 5.887 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007306/0.1773, allocations: 249.1 kB / 450.1 MB, free: 5.617 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/0.1779, allocations: 0.7081 MB / 450.8 MB, free: 4.883 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.277e-05/0.178, allocations: 16.41 kB / 450.8 MB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.675e-05/0.178, allocations: 15.44 kB / 450.8 MB, free: 4.848 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.178, allocations: 0 / 450.8 MB, free: 4.848 MB / 382.1 MB Notification: Performance of Templates: time 0.004325/0.1824, allocations: 1.047 MB / 451.9 MB, free: 3.805 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches