Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 95.31 kB / 15.98 MB, free: 6.34 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.0016/0.001601, allocations: 195.8 kB / 16.91 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.509/1.509, allocations: 205.1 MB / 222.8 MB, free: 4.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.403/0.403, allocations: 43.5 MB / 313.6 MB, free: 8.293 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 67.89 kB / 382.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1532, allocations: 57.78 MB / 440 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.004918/0.1582, allocations: 1.681 MB / 441.7 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.1599, allocations: 0.5893 MB / 442.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.1601, allocations: 3.938 kB / 442.3 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000191/0.1603, allocations: 7.875 kB / 442.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.053e-05/0.1604, allocations: 15.92 kB / 442.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005251/0.161, allocations: 79.83 kB / 442.4 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000277/0.1613, allocations: 115.7 kB / 442.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.1615, allocations: 36.19 kB / 442.5 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1616, allocations: 51.83 kB / 442.6 MB, free: 11.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.1617, allocations: 35.84 kB / 442.6 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.43e-05/0.1617, allocations: 8 kB / 442.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.259e-05/0.1618, allocations: 8 kB / 442.6 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.799e-05/0.1618, allocations: 19.92 kB / 442.6 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.097e-05/0.1619, allocations: 39.73 kB / 442.7 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002183/0.1621, allocations: 87.69 kB / 442.8 MB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.1622, allocations: 3.938 kB / 442.8 MB, free: 11.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1622, allocations: 4 kB / 442.8 MB, free: 11.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.1622, allocations: 0 / 442.8 MB, free: 11.72 MB / 382.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.001082/0.1633, allocations: 423 kB / 443.2 MB, free: 11.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.573e-05/0.1634, allocations: 11.89 kB / 443.2 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.364e-05/0.1634, allocations: 12.84 kB / 443.2 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.1639, allocations: 192.2 kB / 443.4 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.69e-05/0.1639, allocations: 4.375 kB / 443.4 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.164, allocations: 8.375 kB / 443.4 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/0.1645, allocations: 109.9 kB / 443.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.1645, allocations: 4 kB / 443.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.205e-05/0.1645, allocations: 0 / 443.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-06/0.1645, allocations: 0 / 443.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003826/0.1649, allocations: 55.95 kB / 443.6 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.1662, allocations: 384.4 kB / 444 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000535/0.1667, allocations: 98.52 kB / 444 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.1669, allocations: 44.91 kB / 444.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.1669, allocations: 0 / 444.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005562/0.1675, allocations: 103.3 kB / 444.2 MB, free: 10.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.733e-06/0.1675, allocations: 0 / 444.2 MB, free: 10.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.000767/0.1683, allocations: 145.5 kB / 444.3 MB, free: 9.984 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.1684, allocations: 55.34 kB / 444.4 MB, free: 9.918 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.1687, allocations: 149.7 kB / 444.5 MB, free: 9.762 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.727e-05/0.1687, allocations: 29.7 kB / 444.6 MB, free: 9.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.1689, allocations: 96.14 kB / 444.7 MB, free: 9.629 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.326e-05/0.1689, allocations: 23.69 kB / 444.7 MB, free: 9.605 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.514e-05/0.169, allocations: 21.72 kB / 444.7 MB, free: 9.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000266/0.1693, allocations: 330.8 kB / 445 MB, free: 9.246 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.1695, allocations: 35.97 kB / 445.1 MB, free: 9.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.1697, allocations: 57.56 kB / 445.1 MB, free: 9.148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000315/0.17, allocations: 73.69 kB / 445.2 MB, free: 9.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.17, allocations: 0 / 445.2 MB, free: 9.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004499/0.1705, allocations: 125.4 kB / 445.3 MB, free: 8.941 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.1705, allocations: 11.97 kB / 445.3 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.1706, allocations: 3.984 kB / 445.3 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.1706, allocations: 7.938 kB / 445.3 MB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.1708, allocations: 15.98 kB / 445.3 MB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.1708, allocations: 0 / 445.3 MB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.1709, allocations: 16.06 kB / 445.4 MB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.171, allocations: 8 kB / 445.4 MB, free: 8.879 MB / 382.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.00015/0.1711, allocations: 121.1 kB / 445.5 MB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.342e-05/0.1712, allocations: 11.84 kB / 445.5 MB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.402e-05/0.1712, allocations: 12.72 kB / 445.5 MB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.1713, allocations: 0 / 445.5 MB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.1713, allocations: 3.984 kB / 445.5 MB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.1713, allocations: 0 / 445.5 MB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000812/0.1721, allocations: 402.6 kB / 445.9 MB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1721, allocations: 0 / 445.9 MB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.1723, allocations: 15.98 kB / 445.9 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.1723, allocations: 0 / 445.9 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.1723, allocations: 288 / 445.9 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1723, allocations: 0 / 445.9 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1723, allocations: 0 / 445.9 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006723/0.173, allocations: 259.2 kB / 446.2 MB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.437e-05/0.1731, allocations: 89.03 kB / 446.3 MB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.1732, allocations: 0 / 446.3 MB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.1734, allocations: 24.05 kB / 446.3 MB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.888e-05/0.1735, allocations: 11.97 kB / 446.3 MB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.1735, allocations: 4 kB / 446.3 MB, free: 7.852 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001509/0.1737, allocations: 108 kB / 446.4 MB, free: 7.746 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1737, allocations: 4 kB / 446.4 MB, free: 7.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003733/0.174, allocations: 15.94 kB / 446.4 MB, free: 7.727 MB / 382.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.0002236/0.1743, allocations: 107.2 kB / 446.5 MB, free: 7.609 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000487/0.1748, allocations: 87.83 kB / 446.6 MB, free: 7.523 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1748, allocations: 0 / 446.6 MB, free: 7.523 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002326/0.175, allocations: 47.91 kB / 446.7 MB, free: 7.477 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005948/0.1757, allocations: 24.05 kB / 446.7 MB, free: 7.453 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009037/0.1766, allocations: 247 kB / 446.9 MB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005091/0.1771, allocations: 0.7041 MB / 447.6 MB, free: 6.453 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.837e-05/0.1772, allocations: 8.547 kB / 447.6 MB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.004e-05/0.1772, allocations: 11.44 kB / 447.7 MB, free: 6.434 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1772, allocations: 0 / 447.7 MB, free: 6.434 MB / 382.1 MB Notification: Performance of Templates: time 0.005532/0.1828, allocations: 1.128 MB / 448.8 MB, free: 5.312 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches