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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009401/0.0009402, allocations: 96.41 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 183.3 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 223.2 MB / 241.8 MB, free: 368 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2213/0.2213, allocations: 44.23 MB / 337.1 MB, free: 2.891 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003824/0.0003824, allocations: 8 kB / 409.5 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1731, allocations: 61.92 MB / 471.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002097/0.1753, allocations: 1.299 MB / 472.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007774/0.1761, allocations: 463.2 kB / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.785e-05/0.1762, allocations: 0 / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.243e-05/0.1762, allocations: 3.938 kB / 473.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.1763, allocations: 11.97 kB / 473.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.1765, allocations: 23.98 kB / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.1767, allocations: 51.88 kB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.1769, allocations: 28.2 kB / 473.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.922e-05/0.1769, allocations: 27.84 kB / 473.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.439e-05/0.177, allocations: 19.86 kB / 473.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.177, allocations: 4 kB / 473.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.738e-05/0.177, allocations: 4 kB / 473.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.681e-05/0.1771, allocations: 11.92 kB / 473.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.294e-05/0.1771, allocations: 41.64 kB / 473.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.358e-05/0.1772, allocations: 44.12 kB / 473.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1772, allocations: 0 / 473.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1772, allocations: 0 / 473.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.1773, allocations: 8 kB / 473.5 MB, free: 11.71 MB / 350.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.0006467/0.1779, allocations: 375.1 kB / 473.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.178, allocations: 12.03 kB / 473.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.683e-05/0.178, allocations: 7.906 kB / 473.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.1782, allocations: 186.9 kB / 474 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.1783, allocations: 8 kB / 474 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.1783, allocations: 7.953 kB / 474.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.1785, allocations: 81.05 kB / 474.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1785, allocations: 3.938 kB / 474.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1786, allocations: 4 kB / 474.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1786, allocations: 0 / 474.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.184e-05/0.1787, allocations: 31.98 kB / 474.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006505/0.1793, allocations: 368.4 kB / 474.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.1795, allocations: 46.59 kB / 474.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.1795, allocations: 0 / 474.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.1798, allocations: 67.5 kB / 474.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.743e-06/0.1798, allocations: 7.938 kB / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.00027/0.1801, allocations: 89.56 kB / 474.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000188/0.1803, allocations: 59.34 kB / 474.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.1804, allocations: 144.1 kB / 474.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.1804, allocations: 25.7 kB / 475 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/0.1806, allocations: 96.05 kB / 475.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.723e-05/0.1806, allocations: 23.88 kB / 475.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-06/0.1807, allocations: 0 / 475.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1808, allocations: 326.8 kB / 475.4 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.682e-05/0.1808, allocations: 16 kB / 475.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.27e-05/0.1809, allocations: 38.5 kB / 475.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.229e-05/0.1809, allocations: 16 kB / 475.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.181, allocations: 3.938 kB / 475.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001334/0.1811, allocations: 85.52 kB / 475.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.1811, allocations: 4 kB / 475.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.1811, allocations: 8.062 kB / 475.6 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.1811, allocations: 0 / 475.6 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.544e-05/0.1812, allocations: 12 kB / 475.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1812, allocations: 3.984 kB / 475.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.995e-05/0.1813, allocations: 15.86 kB / 475.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.1813, allocations: 0 / 475.6 MB, free: 9.363 MB / 350.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,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.fallingEdge.not_u,fallingEdge.not_u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.598e-05/0.1814, allocations: 122.3 kB / 475.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.83e-05/0.1814, allocations: 11.89 kB / 475.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.133e-05/0.1815, allocations: 20.7 kB / 475.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1815, allocations: 0 / 475.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1815, allocations: 8 kB / 475.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1815, allocations: 0 / 475.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004169/0.1819, allocations: 338.5 kB / 476.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.182, allocations: 3.938 kB / 476.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.614e-05/0.182, allocations: 4 kB / 476.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.182, allocations: 0 / 476.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.182, allocations: 8 kB / 476.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.182, allocations: 4 kB / 476.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.1821, allocations: 7.938 kB / 476.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002004/0.1823, allocations: 183.4 kB / 476.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-05/0.1823, allocations: 89.03 kB / 476.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.1823, allocations: 192 / 476.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.1825, allocations: 4 kB / 476.4 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.1825, allocations: 19.88 kB / 476.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-06/0.1825, allocations: 12.05 kB / 476.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.526e-05/0.1826, allocations: 109.2 kB / 476.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1826, allocations: 0 / 476.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.1828, allocations: 15.91 kB / 476.5 MB, free: 8.324 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001066/0.183, allocations: 95.25 kB / 476.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001244/0.1831, allocations: 43.92 kB / 476.7 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1831, allocations: 0 / 476.7 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.241e-05/0.1832, allocations: 24.69 kB / 476.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002323/0.1834, allocations: 12.12 kB / 476.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005294/0.1839, allocations: 245.3 kB / 476.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.1842, allocations: 0.7043 MB / 477.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.325e-05/0.1843, allocations: 4.438 kB / 477.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.347e-05/0.1843, allocations: 15.42 kB / 477.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1843, allocations: 0 / 477.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of Templates: time 0.00316/0.1875, allocations: 0.8069 MB / 478.5 MB, free: 6.32 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (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) 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches