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.001002/0.001002, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.7 MB / 246.8 MB, free: 11.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2515/0.2515, allocations: 46.18 MB / 345.2 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003492/0.0003494, allocations: 8 kB / 419.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1519, allocations: 63.56 MB / 483.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002622/0.1545, allocations: 1.349 MB / 484.4 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.1562, allocations: 0.5728 MB / 485 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.1564, allocations: 8 kB / 485 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.1565, allocations: 3.938 kB / 485 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.554e-05/0.1566, allocations: 7.922 kB / 485 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003601/0.157, allocations: 83.78 kB / 485.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.1572, allocations: 103.8 kB / 485.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.1573, allocations: 31.97 kB / 485.2 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.1574, allocations: 39.84 kB / 485.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.745e-05/0.1576, allocations: 31.78 kB / 485.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.1576, allocations: 0 / 485.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.578e-05/0.1576, allocations: 4 kB / 485.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.114e-05/0.1577, allocations: 15.92 kB / 485.3 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.069e-05/0.1577, allocations: 57.5 kB / 485.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.1579, allocations: 83.89 kB / 485.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1579, allocations: 0 / 485.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1579, allocations: 0 / 485.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.158, allocations: 4 kB / 485.5 MB, free: 1.766 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.0006695/0.1586, allocations: 401.8 kB / 485.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1587, allocations: 8.875 kB / 485.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.481e-05/0.1587, allocations: 16.75 kB / 485.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/0.159, allocations: 199.1 kB / 486.1 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.159, allocations: 8.375 kB / 486.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.145e-05/0.1591, allocations: 8.375 kB / 486.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000427/0.1595, allocations: 109.9 kB / 486.2 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.1595, allocations: 0 / 486.2 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.454e-05/0.1596, allocations: 12 kB / 486.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.1596, allocations: 0 / 486.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002502/0.1599, allocations: 59.89 kB / 486.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009744/0.1608, allocations: 408.4 kB / 486.7 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/0.1613, allocations: 110.5 kB / 486.8 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.1615, allocations: 44.91 kB / 486.8 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.1615, allocations: 4 kB / 486.8 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002802/0.1618, allocations: 103.4 kB / 486.9 MB, free: 148 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.936e-06/0.1618, allocations: 0 / 486.9 MB, free: 148 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005166/0.1623, allocations: 161.4 kB / 487.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.1624, allocations: 59.34 kB / 487.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.1625, allocations: 152.7 kB / 487.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.1626, allocations: 29.69 kB / 487.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.291e-05/0.1626, allocations: 100.1 kB / 487.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.1627, allocations: 23.8 kB / 487.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.889e-05/0.1627, allocations: 13.72 kB / 487.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1628, allocations: 326.8 kB / 487.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.163, allocations: 31.98 kB / 487.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.1631, allocations: 61.62 kB / 487.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.1633, allocations: 85.67 kB / 488 MB, free: 15.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1633, allocations: 0 / 488 MB, free: 15.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002972/0.1636, allocations: 129.4 kB / 488.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1637, allocations: 11.97 kB / 488.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.1637, allocations: 0 / 488.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.1637, allocations: 4 kB / 488.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.1638, allocations: 19.92 kB / 488.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.1638, allocations: 0 / 488.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.164, allocations: 28.06 kB / 488.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-06/0.164, allocations: 4 kB / 488.1 MB, free: 14.86 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 0.0001136/0.1641, allocations: 121.8 kB / 488.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.228e-05/0.1641, allocations: 11.84 kB / 488.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.032e-05/0.1642, allocations: 12.72 kB / 488.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1642, allocations: 4 kB / 488.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1642, allocations: 0 / 488.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1642, allocations: 0 / 488.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006764/0.1649, allocations: 410.3 kB / 488.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1649, allocations: 288 / 488.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.062e-05/0.165, allocations: 12 kB / 488.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.165, allocations: 11.98 kB / 488.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.165, allocations: 3.938 kB / 488.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.165, allocations: 0 / 488.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.165, allocations: 0 / 488.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004685/0.1655, allocations: 259.3 kB / 489 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-05/0.1656, allocations: 85.02 kB / 489.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.1656, allocations: 3.938 kB / 489.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.1657, allocations: 36.03 kB / 489.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.276e-05/0.1658, allocations: 7.984 kB / 489.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.1658, allocations: 4 kB / 489.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.1e-05/0.1659, allocations: 114.2 kB / 489.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1659, allocations: 0 / 489.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002481/0.1662, allocations: 16 kB / 489.2 MB, free: 13.67 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.0001034/0.1663, allocations: 99.25 kB / 489.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003006/0.1666, allocations: 95.81 kB / 489.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1666, allocations: 0 / 489.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.1668, allocations: 52.03 kB / 489.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.1671, allocations: 15.98 kB / 489.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.1681, allocations: 310.9 kB / 489.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.1684, allocations: 0.6965 MB / 490.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.091e-05/0.1685, allocations: 16.53 kB / 490.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.681e-05/0.1685, allocations: 11.44 kB / 490.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1686, allocations: 4 kB / 490.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of Templates: time 0.003681/0.1722, allocations: 1.022 MB / 491.5 MB, free: 11.3 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