Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00138/0.00138, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001727/0.001727, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246.8 MB, free: 10.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2562/0.2562, allocations: 46.1 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 75.69 kB / 417.6 MB, free: 19.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1625, allocations: 62.44 MB / 480 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.004547/0.1671, allocations: 1.622 MB / 481.6 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.1684, allocations: 0.5883 MB / 482.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.1686, allocations: 0 / 482.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.1688, allocations: 23.73 kB / 482.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.957e-05/0.1689, allocations: 11.86 kB / 482.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.1693, allocations: 83.83 kB / 482.3 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001729/0.1694, allocations: 115.7 kB / 482.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.1696, allocations: 31.97 kB / 482.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.458e-05/0.1697, allocations: 43.84 kB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.963e-05/0.1698, allocations: 39.77 kB / 482.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.092e-05/0.1698, allocations: 8 kB / 482.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.756e-05/0.1698, allocations: 8 kB / 482.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.16e-05/0.1699, allocations: 27.92 kB / 482.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.038e-05/0.17, allocations: 43.67 kB / 482.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.1701, allocations: 91.91 kB / 482.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1701, allocations: 0 / 482.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1701, allocations: 0 / 482.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1701, allocations: 0 / 482.7 MB, free: 2.578 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006912/0.1708, allocations: 411.2 kB / 483.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1709, allocations: 12.03 kB / 483.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.027e-05/0.1709, allocations: 8.844 kB / 483.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.1712, allocations: 200.1 kB / 483.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.1712, allocations: 8.375 kB / 483.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.1712, allocations: 4.375 kB / 483.4 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.1715, allocations: 109.8 kB / 483.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.1715, allocations: 0 / 483.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.1716, allocations: 8 kB / 483.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.84e-06/0.1716, allocations: 4 kB / 483.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001575/0.1717, allocations: 51.95 kB / 483.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006798/0.1724, allocations: 388.3 kB / 483.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003249/0.1728, allocations: 102.5 kB / 484 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.1729, allocations: 36.88 kB / 484.1 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.796e-06/0.1729, allocations: 0 / 484.1 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003045/0.1732, allocations: 103.3 kB / 484.2 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.1732, allocations: 0 / 484.2 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004463/0.1737, allocations: 141.5 kB / 484.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.1737, allocations: 59.34 kB / 484.4 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.1739, allocations: 157.2 kB / 484.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.1739, allocations: 25.7 kB / 484.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.056e-05/0.174, allocations: 100 kB / 484.6 MB, free: 500 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.711e-05/0.174, allocations: 19.8 kB / 484.7 MB, free: 480 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/0.174, allocations: 21.72 kB / 484.7 MB, free: 452 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1742, allocations: 318.8 kB / 485 MB, free: 124 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.1743, allocations: 43.91 kB / 485 MB, free: 80 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.1744, allocations: 53.69 kB / 485.1 MB, free: 20 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.1746, allocations: 73.89 kB / 485.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1746, allocations: 0 / 485.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002863/0.1749, allocations: 125.4 kB / 485.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.175, allocations: 11.94 kB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.175, allocations: 0 / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.175, allocations: 0 / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.1751, allocations: 20.02 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.1751, allocations: 0 / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.847e-05/0.1752, allocations: 23.97 kB / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-06/0.1752, allocations: 0 / 485.3 MB, free: 15.75 MB / 366.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 9.079e-05/0.1753, allocations: 125.8 kB / 485.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.1753, allocations: 11.84 kB / 485.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.174e-05/0.1754, allocations: 8.719 kB / 485.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1754, allocations: 8 kB / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1754, allocations: 0 / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.1754, allocations: 3.984 kB / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004925/0.1759, allocations: 394.3 kB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1759, allocations: 3.938 kB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.227e-05/0.176, allocations: 19.98 kB / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.176, allocations: 0 / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.176, allocations: 4 kB / 485.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.176, allocations: 0 / 485.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.176, allocations: 0 / 485.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004273/0.1765, allocations: 255.2 kB / 486.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.624e-05/0.1765, allocations: 89.03 kB / 486.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.1766, allocations: 0 / 486.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.1767, allocations: 15.98 kB / 486.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.439e-05/0.1768, allocations: 15.98 kB / 486.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.1768, allocations: 8.047 kB / 486.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.547e-05/0.1769, allocations: 111.3 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1769, allocations: 0 / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.1771, allocations: 12 kB / 486.4 MB, free: 14.59 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,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.0001161/0.1772, allocations: 107.2 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003041/0.1775, allocations: 87.83 kB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1775, allocations: 4 kB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.1777, allocations: 43.91 kB / 486.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.178, allocations: 20.72 kB / 486.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009118/0.1789, allocations: 286.4 kB / 486.9 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.1792, allocations: 0.6971 MB / 487.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.325e-05/0.1792, allocations: 4.562 kB / 487.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.664e-05/0.1793, allocations: 15.44 kB / 487.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1793, allocations: 4 kB / 487.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of Templates: time 0.004273/0.1835, allocations: 1.231 MB / 488.9 MB, free: 12.06 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches