Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 96.94 kB / 16.02 MB, free: 84 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.001754/0.001754, allocations: 177.7 kB / 16.91 MB, free: 6.645 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.291/2.291, allocations: 205.4 MB / 223.1 MB, free: 5.488 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.4756/0.4756, allocations: 43.58 MB / 315 MB, free: 8.777 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.0005138/0.0005138, allocations: 12 kB / 384.6 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1643, allocations: 58.86 MB / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002795/0.1671, allocations: 1.326 MB / 444.8 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.1684, allocations: 0.5075 MB / 445.3 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1685, allocations: 4 kB / 445.3 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.1687, allocations: 7.922 kB / 445.3 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.588e-05/0.1687, allocations: 3.938 kB / 445.3 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.169, allocations: 43.89 kB / 445.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001553/0.1691, allocations: 79.72 kB / 445.4 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.1693, allocations: 24.48 kB / 445.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.516e-05/0.1694, allocations: 19.92 kB / 445.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.1695, allocations: 27.8 kB / 445.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.896e-05/0.1695, allocations: 4 kB / 445.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.453e-05/0.1695, allocations: 0 / 445.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.089e-05/0.1696, allocations: 19.91 kB / 445.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.121e-05/0.1697, allocations: 61.45 kB / 445.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.1698, allocations: 63.7 kB / 445.6 MB, free: 10.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.1699, allocations: 0 / 445.6 MB, free: 10.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.491e-06/0.1699, allocations: 0 / 445.6 MB, free: 10.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.1699, allocations: 0 / 445.6 MB, free: 10.49 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007575/0.1707, allocations: 379.2 kB / 446 MB, free: 10.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.1707, allocations: 8.031 kB / 446 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.621e-05/0.1708, allocations: 12.84 kB / 446 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002749/0.1711, allocations: 188.2 kB / 446.2 MB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.1711, allocations: 12.38 kB / 446.2 MB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.471e-05/0.1711, allocations: 8.375 kB / 446.2 MB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.1713, allocations: 85.78 kB / 446.3 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.1714, allocations: 0 / 446.3 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.1714, allocations: 8 kB / 446.3 MB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.1714, allocations: 0 / 446.3 MB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.852e-05/0.1715, allocations: 31.98 kB / 446.3 MB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000774/0.1723, allocations: 368.6 kB / 446.7 MB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.1724, allocations: 42.59 kB / 446.7 MB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4e-05/0.1725, allocations: 20.86 kB / 446.8 MB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.1725, allocations: 3.984 kB / 446.8 MB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000216/0.1727, allocations: 75.36 kB / 446.8 MB, free: 9.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.1727, allocations: 0 / 446.8 MB, free: 9.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002522/0.173, allocations: 85.52 kB / 446.9 MB, free: 9.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.1731, allocations: 55.41 kB / 447 MB, free: 8.953 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.1732, allocations: 137.8 kB / 447.1 MB, free: 8.809 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.1733, allocations: 25.7 kB / 447.1 MB, free: 8.777 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.732e-05/0.1733, allocations: 108 kB / 447.2 MB, free: 8.668 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.876e-05/0.1734, allocations: 15.81 kB / 447.2 MB, free: 8.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.1734, allocations: 17.72 kB / 447.3 MB, free: 8.629 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1736, allocations: 318.8 kB / 447.6 MB, free: 8.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.19e-05/0.1736, allocations: 23.92 kB / 447.6 MB, free: 8.285 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.202e-05/0.1737, allocations: 38.52 kB / 447.6 MB, free: 8.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.497e-05/0.1738, allocations: 54.5 kB / 447.7 MB, free: 8.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1738, allocations: 0 / 447.7 MB, free: 8.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001487/0.1739, allocations: 89.53 kB / 447.8 MB, free: 8.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.174, allocations: 4 kB / 447.8 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.174, allocations: 0 / 447.8 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.174, allocations: 7.938 kB / 447.8 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.109e-05/0.1741, allocations: 4 kB / 447.8 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.1741, allocations: 4 kB / 447.8 MB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.963e-05/0.1742, allocations: 19.89 kB / 447.8 MB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.1742, allocations: 4 kB / 447.8 MB, free: 8.039 MB / 382.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: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_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.0001146/0.1743, allocations: 121.4 kB / 447.9 MB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.798e-05/0.1743, allocations: 7.906 kB / 447.9 MB, free: 7.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.182e-05/0.1744, allocations: 24.58 kB / 448 MB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1744, allocations: 0 / 448 MB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.1744, allocations: 3.938 kB / 448 MB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1744, allocations: 0 / 448 MB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.1748, allocations: 350.5 kB / 448.3 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1748, allocations: 0 / 448.3 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.62e-05/0.1749, allocations: 4 kB / 448.3 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1749, allocations: 0 / 448.3 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.1749, allocations: 0 / 448.3 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1749, allocations: 3.938 kB / 448.3 MB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1749, allocations: 0 / 448.3 MB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002463/0.1752, allocations: 199.9 kB / 448.5 MB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.596e-05/0.1752, allocations: 85.05 kB / 448.6 MB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.1753, allocations: 3.984 kB / 448.6 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.745e-05/0.1753, allocations: 8 kB / 448.6 MB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.166e-05/0.1754, allocations: 11.98 kB / 448.6 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.1754, allocations: 4 kB / 448.6 MB, free: 7.137 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.912e-05/0.1755, allocations: 99.27 kB / 448.7 MB, free: 7.039 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1755, allocations: 4 kB / 448.7 MB, free: 7.035 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002226/0.1757, allocations: 23.95 kB / 448.8 MB, free: 7.012 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,fallingEdge.not_u) * 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 0.0001273/0.1759, allocations: 107.1 kB / 448.9 MB, free: 6.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001249/0.176, allocations: 43.98 kB / 448.9 MB, free: 6.852 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.176, allocations: 0 / 448.9 MB, free: 6.852 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.93e-05/0.1761, allocations: 24.08 kB / 448.9 MB, free: 6.828 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.1764, allocations: 20.11 kB / 448.9 MB, free: 6.809 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005661/0.177, allocations: 253.3 kB / 449.2 MB, free: 6.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.1774, allocations: 0.7004 MB / 449.9 MB, free: 5.809 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.368e-05/0.1774, allocations: 8.375 kB / 449.9 MB, free: 5.801 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.555e-05/0.1775, allocations: 19.42 kB / 449.9 MB, free: 5.781 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1775, allocations: 0 / 449.9 MB, free: 5.781 MB / 382.1 MB Notification: Performance of Templates: time 0.003296/0.1808, allocations: 0.82 MB / 450.7 MB, free: 4.965 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches