Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 97.31 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 198.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.2 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2663/0.2663, allocations: 45.92 MB / 344 MB, free: 12.13 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003102/0.0003106, allocations: 8 kB / 417.9 MB, free: 20.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1706, allocations: 63.46 MB / 481.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002128/0.1728, allocations: 1.31 MB / 482.7 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009023/0.1737, allocations: 495.1 kB / 483.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.765e-05/0.1738, allocations: 0 / 483.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.121e-05/0.1738, allocations: 3.938 kB / 483.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.488e-05/0.1739, allocations: 3.984 kB / 483.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001822/0.1741, allocations: 35.91 kB / 483.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001815/0.1743, allocations: 55.88 kB / 483.3 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.1744, allocations: 16.22 kB / 483.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.798e-05/0.1745, allocations: 27.84 kB / 483.3 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.898e-05/0.1746, allocations: 23.86 kB / 483.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.1746, allocations: 0 / 483.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.181e-05/0.1746, allocations: 4 kB / 483.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.873e-05/0.1747, allocations: 15.92 kB / 483.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.26e-05/0.1747, allocations: 37.7 kB / 483.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.989e-05/0.1748, allocations: 48.12 kB / 483.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.1748, allocations: 0 / 483.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1748, allocations: 0 / 483.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.1748, allocations: 0 / 483.4 MB, free: 3.324 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.0005965/0.1754, allocations: 375.1 kB / 483.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.1755, allocations: 12.02 kB / 483.8 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.434e-05/0.1755, allocations: 11.91 kB / 483.8 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.1758, allocations: 190.9 kB / 484 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.1758, allocations: 8 kB / 484 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.1758, allocations: 4 kB / 484 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.176, allocations: 77.59 kB / 484.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.176, allocations: 0 / 484.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.834e-05/0.1761, allocations: 4 kB / 484.1 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.1761, allocations: 4 kB / 484.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.887e-05/0.1762, allocations: 35.97 kB / 484.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006588/0.1769, allocations: 372.4 kB / 484.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.177, allocations: 50.5 kB / 484.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.234e-05/0.177, allocations: 4 kB / 484.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.1772, allocations: 79.47 kB / 484.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.003e-06/0.1772, allocations: 0 / 484.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002533/0.1775, allocations: 77.59 kB / 484.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.1775, allocations: 51.41 kB / 484.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.1777, allocations: 140.5 kB / 484.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/0.1777, allocations: 33.69 kB / 484.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.984e-05/0.1778, allocations: 104 kB / 485 MB, free: 1.523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.006e-05/0.1779, allocations: 19.88 kB / 485.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.615e-06/0.1779, allocations: 4 kB / 485.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.178, allocations: 314.8 kB / 485.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.275e-05/0.1781, allocations: 19.98 kB / 485.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.646e-05/0.1782, allocations: 38.5 kB / 485.4 MB, free: 1.117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.102e-05/0.1782, allocations: 16 kB / 485.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.1782, allocations: 4 kB / 485.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001332/0.1784, allocations: 85.53 kB / 485.5 MB, free: 1.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.1784, allocations: 7.953 kB / 485.5 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1784, allocations: 0 / 485.5 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.1784, allocations: 4 kB / 485.5 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.561e-05/0.1785, allocations: 8 kB / 485.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.1785, allocations: 4 kB / 485.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.711e-05/0.1786, allocations: 11.89 kB / 485.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.1786, allocations: 8.062 kB / 485.6 MB, free: 0.9648 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 0.0001145/0.1787, allocations: 121.8 kB / 485.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.599e-05/0.1787, allocations: 7.906 kB / 485.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.128e-05/0.1788, allocations: 24.66 kB / 485.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1788, allocations: 0 / 485.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.1788, allocations: 0 / 485.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1788, allocations: 0 / 485.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003715/0.1792, allocations: 346.4 kB / 486.1 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1792, allocations: 7.953 kB / 486.1 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.802e-05/0.1792, allocations: 4 kB / 486.1 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-06/0.1793, allocations: 0 / 486.1 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.1793, allocations: 4 kB / 486.1 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1793, allocations: 3.938 kB / 486.1 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1793, allocations: 192 / 486.1 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002236/0.1795, allocations: 191.4 kB / 486.3 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.991e-05/0.1796, allocations: 88.91 kB / 486.4 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.17e-05/0.1796, allocations: 12.08 kB / 486.4 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.728e-05/0.1797, allocations: 4 kB / 486.4 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.063e-05/0.1798, allocations: 11.98 kB / 486.4 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-06/0.1798, allocations: 0 / 486.4 MB, free: 56 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.18, allocations: 113.2 kB / 486.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.18, allocations: 0 / 486.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002283/0.1802, allocations: 15.91 kB / 486.5 MB, free: 15.93 MB / 366.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.0001028/0.1803, allocations: 95.78 kB / 486.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001342/0.1805, allocations: 47.92 kB / 486.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1805, allocations: 0 / 486.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.658e-05/0.1805, allocations: 24.7 kB / 486.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/0.1808, allocations: 11.97 kB / 486.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005432/0.1814, allocations: 231.3 kB / 486.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.1817, allocations: 0.6965 MB / 487.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.593e-05/0.1817, allocations: 8.438 kB / 487.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.556e-05/0.1818, allocations: 19.42 kB / 487.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1818, allocations: 0 / 487.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of Templates: time 0.003166/0.1849, allocations: 0.7998 MB / 488.4 MB, free: 13.95 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches