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.001157/0.001157, allocations: 97.89 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.001182/0.001181, allocations: 203.3 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.597/1.597, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2537/0.2537, allocations: 45.91 MB / 344 MB, free: 12.13 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002802/0.0002802, allocations: 11.98 kB / 417.9 MB, free: 20.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1592, allocations: 63.46 MB / 481.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002043/0.1613, allocations: 1.326 MB / 482.7 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009282/0.1623, allocations: 0.542 MB / 483.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.489e-05/0.1623, allocations: 0 / 483.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.064e-05/0.1624, allocations: 3.938 kB / 483.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.54e-05/0.1625, allocations: 19.91 kB / 483.3 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003233/0.1628, allocations: 75.53 kB / 483.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001669/0.163, allocations: 63.86 kB / 483.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.1631, allocations: 31.92 kB / 483.4 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.578e-05/0.1632, allocations: 43.83 kB / 483.5 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.916e-05/0.1633, allocations: 27.84 kB / 483.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.1633, allocations: 4 kB / 483.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.308e-05/0.1633, allocations: 0 / 483.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.354e-05/0.1634, allocations: 15.92 kB / 483.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.386e-05/0.1634, allocations: 37.64 kB / 483.6 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.1635, allocations: 64.09 kB / 483.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.1635, allocations: 0 / 483.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1635, allocations: 0 / 483.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.1635, allocations: 0 / 483.6 MB, free: 3.141 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.0006618/0.1642, allocations: 395.1 kB / 484 MB, free: 2.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1643, allocations: 8.031 kB / 484 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.725e-05/0.1643, allocations: 15.81 kB / 484 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.1646, allocations: 202.8 kB / 484.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.447e-05/0.1646, allocations: 12 kB / 484.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.1646, allocations: 7.938 kB / 484.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.1649, allocations: 112.4 kB / 484.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.1649, allocations: 0 / 484.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.165, allocations: 8 kB / 484.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.165, allocations: 0 / 484.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.1651, allocations: 51.97 kB / 484.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007054/0.1659, allocations: 400.5 kB / 484.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.1662, allocations: 114.5 kB / 484.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.1662, allocations: 4 kB / 484.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/0.1665, allocations: 119.3 kB / 485 MB, free: 1.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.1665, allocations: 0 / 485 MB, free: 1.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004677/0.167, allocations: 153.8 kB / 485.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.1671, allocations: 59.41 kB / 485.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.1672, allocations: 150.4 kB / 485.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.1673, allocations: 29.7 kB / 485.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.761e-05/0.1673, allocations: 100.2 kB / 485.5 MB, free: 1.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.611e-05/0.1674, allocations: 15.81 kB / 485.5 MB, free: 1.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-06/0.1674, allocations: 7.875 kB / 485.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1675, allocations: 322.8 kB / 485.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/0.1677, allocations: 43.92 kB / 485.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.1678, allocations: 49.69 kB / 486 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.1679, allocations: 39.98 kB / 486 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.168, allocations: 3.984 kB / 486 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002795/0.1682, allocations: 125.5 kB / 486.1 MB, free: 432 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.1683, allocations: 7.953 kB / 486.1 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1683, allocations: 0 / 486.1 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.1683, allocations: 4 kB / 486.1 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.1684, allocations: 23.92 kB / 486.2 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.1684, allocations: 4.062 kB / 486.2 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.1685, allocations: 31.97 kB / 486.2 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.1685, allocations: 0 / 486.2 MB, free: 360 kB / 350.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,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.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.0001125/0.1687, allocations: 117.8 kB / 486.3 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.782e-05/0.1687, allocations: 11.91 kB / 486.3 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.714e-05/0.1687, allocations: 16.66 kB / 486.3 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1687, allocations: 4 kB / 486.3 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1688, allocations: 0 / 486.3 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1688, allocations: 0 / 486.3 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005792/0.1693, allocations: 398.5 kB / 486.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1694, allocations: 0 / 486.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.214e-05/0.1695, allocations: 19.94 kB / 486.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1695, allocations: 4 kB / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.1695, allocations: 288 / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1695, allocations: 0 / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1695, allocations: 0 / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004704/0.17, allocations: 267.2 kB / 487 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.053e-05/0.17, allocations: 89.05 kB / 487.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.1701, allocations: 3.953 kB / 487.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1702, allocations: 28.03 kB / 487.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.725e-05/0.1703, allocations: 11.98 kB / 487.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.1703, allocations: 8 kB / 487.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.527e-05/0.1704, allocations: 111.4 kB / 487.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.1704, allocations: 0 / 487.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002397/0.1706, allocations: 27.84 kB / 487.3 MB, free: 15.16 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 (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.0001243/0.1708, allocations: 95.78 kB / 487.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002956/0.1711, allocations: 87.88 kB / 487.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1711, allocations: 4.062 kB / 487.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001516/0.1712, allocations: 43.98 kB / 487.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.1715, allocations: 15.98 kB / 487.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005727/0.1721, allocations: 235.1 kB / 487.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.1724, allocations: 0.7121 MB / 488.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.634e-05/0.1725, allocations: 4.562 kB / 488.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.1725, allocations: 11.44 kB / 488.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1725, allocations: 0 / 488.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of Templates: time 0.003851/0.1764, allocations: 1.014 MB / 489.5 MB, free: 12.89 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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches