Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.StrictLimiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.D.x|PID1.I.y|PID2.D.x|PID2.I.y|limIntegrator1.y|limIntegrator2.y|slewRateLimiter1.y|slewRateLimiter2.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters") translateModel(ModelicaTest.Blocks.StrictLimiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.D.x|PID1.I.y|PID2.D.x|PID2.I.y|limIntegrator1.y|limIntegrator2.y|slewRateLimiter1.y|slewRateLimiter2.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 108.1 kB / 17.21 MB, free: 6.289 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.001928/0.001928, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 241.8 MB, free: 15.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2318/0.2318, allocations: 44.18 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 64.02 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1374, allocations: 60.83 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.004695/0.1421, allocations: 3.538 MB / 472.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002313/0.1445, allocations: 1.36 MB / 473.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003352/0.1448, allocations: 23.88 kB / 473.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000265/0.1451, allocations: 79.17 kB / 473.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004443/0.1456, allocations: 119.1 kB / 473.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.1466, allocations: 0.5503 MB / 474.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009303/0.1476, allocations: 0.8819 MB / 475.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005705/0.1481, allocations: 284.8 kB / 475.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005064/0.1487, allocations: 318.4 kB / 475.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003857/0.1491, allocations: 342.1 kB / 476 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.803e-05/0.1492, allocations: 36 kB / 476 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.257e-05/0.1493, allocations: 39.94 kB / 476.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.1494, allocations: 131.4 kB / 476.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003151/0.1497, allocations: 329.8 kB / 476.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006637/0.1504, allocations: 0.7589 MB / 477.3 MB, free: 6.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.1504, allocations: 0 / 477.3 MB, free: 6.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.22e-07/0.1504, allocations: 0 / 477.3 MB, free: 6.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.1504, allocations: 0 / 477.3 MB, free: 6.051 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002203/0.1526, allocations: 1.191 MB / 478.5 MB, free: 4.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.1527, allocations: 12.03 kB / 478.5 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.1528, allocations: 95.81 kB / 478.6 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007033/0.1535, allocations: 0.5466 MB / 479.1 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.253e-05/0.1536, allocations: 41.38 kB / 479.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.583e-05/0.1537, allocations: 48.38 kB / 479.2 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.1552, allocations: 0.7152 MB / 479.9 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.1552, allocations: 7.891 kB / 479.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.933e-05/0.1553, allocations: 24 kB / 480 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.1553, allocations: 12 kB / 480 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.1568, allocations: 0.5581 MB / 480.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003457/0.1602, allocations: 2.29 MB / 482.8 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001693/0.1619, allocations: 0.7212 MB / 483.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007788/0.1627, allocations: 322.3 kB / 483.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.378e-05/0.1628, allocations: 8.359 kB / 483.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.1628, allocations: 46.88 kB / 483.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 3.847e-06/0.1628, allocations: 3.984 kB / 483.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.004488/0.1673, allocations: 1.918 MB / 485.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1675, allocations: 188.3 kB / 486 MB, free: 12.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006406/0.1681, allocations: 0.5668 MB / 486.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.349e-05/0.1682, allocations: 37.69 kB / 486.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002771/0.1684, allocations: 356.8 kB / 487 MB, free: 11.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.1686, allocations: 177.4 kB / 487.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/0.1688, allocations: 110.2 kB / 487.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.169, allocations: 382.8 kB / 487.6 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007746/0.1698, allocations: 294.9 kB / 487.9 MB, free: 11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008851/0.1707, allocations: 418 kB / 488.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/0.1723, allocations: 0.6549 MB / 489 MB, free: 9.867 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1723, allocations: 0 / 489 MB, free: 9.867 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002125/0.1744, allocations: 0.8024 MB / 489.8 MB, free: 9.055 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/0.1745, allocations: 8 kB / 489.8 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.1745, allocations: 4 kB / 489.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.372e-05/0.1745, allocations: 7.938 kB / 489.8 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008763/0.1754, allocations: 195.9 kB / 490 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.1754, allocations: 4 kB / 490 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005001/0.1759, allocations: 75.91 kB / 490.1 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.411e-05/0.176, allocations: 23.98 kB / 490.1 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007167/0.1767, allocations: 365.1 kB / 490.4 MB, free: 8.383 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006182/0.1773, allocations: 355.6 kB / 490.8 MB, free: 7.984 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001098/0.1784, allocations: 0.532 MB / 491.3 MB, free: 7.418 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.325e-06/0.1785, allocations: 4 kB / 491.3 MB, free: 7.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.001371/0.1798, allocations: 0.6511 MB / 492 MB, free: 6.754 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.1799, allocations: 8 kB / 492 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.1799, allocations: 4.25 kB / 492 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.597e-06/0.1799, allocations: 12 kB / 492 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006299/0.1805, allocations: 163.8 kB / 492.2 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.1806, allocations: 7.938 kB / 492.2 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004115/0.181, allocations: 63.94 kB / 492.2 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/0.181, allocations: 16 kB / 492.2 MB, free: 6.484 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 4 (PID2.I.local_reset,PID1.I.local_reset,limIntegrator2.local_reset,limIntegrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002304/0.1813, allocations: 216.1 kB / 492.5 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.1814, allocations: 71.06 kB / 492.5 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002022/0.1816, allocations: 83.27 kB / 492.6 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.1816, allocations: 11.94 kB / 492.6 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.1816, allocations: 0 / 492.6 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1817, allocations: 3.984 kB / 492.6 MB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.1843, allocations: 1.464 MB / 494.1 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.1843, allocations: 0 / 494.1 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000689/0.185, allocations: 151.8 kB / 494.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.185, allocations: 4 kB / 494.2 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.1851, allocations: 15.98 kB / 494.2 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.1851, allocations: 4 kB / 494.3 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1851, allocations: 0 / 494.3 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.1877, allocations: 1.252 MB / 495.5 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/0.188, allocations: 188.1 kB / 495.7 MB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.802e-05/0.1881, allocations: 12 kB / 495.7 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005294/0.1886, allocations: 79.91 kB / 495.8 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.1887, allocations: 43.88 kB / 495.8 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.964e-05/0.1888, allocations: 19.98 kB / 495.8 MB, free: 2.762 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004785/0.1893, allocations: 391.1 kB / 496.2 MB, free: 2.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1893, allocations: 0 / 496.2 MB, free: 2.387 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007018/0.19, allocations: 180 kB / 496.4 MB, free: 2.211 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (der1.u,der2.u,limIntegrator1.y,limIntegrator2.y,PID1.I.y,PID1.D.x,PID2.I.y,PID2.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 50 * 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 Backend phase and start with SimCode phase: time 0.0001588/0.1901, allocations: 119.7 kB / 496.5 MB, free: 2.082 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002341/0.1925, allocations: 0.9774 MB / 497.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1925, allocations: 0 / 497.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000823/0.1933, allocations: 347.8 kB / 497.8 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.1944, allocations: 196.3 kB / 498 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.1981, allocations: 1.765 MB / 499.8 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004744/0.1986, allocations: 0.926 MB / 0.489 GB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004526/0.199, allocations: 93.06 kB / 0.4891 GB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002025/0.1993, allocations: 55.41 kB / 0.4891 GB, free: 13.67 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1993, allocations: 0 / 0.4891 GB, free: 13.67 MB / 382.1 MB Notification: Performance of Templates: time 0.01396/0.2132, allocations: 8.004 MB / 0.4969 GB, free: 5.754 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/StrictLimiters/StrictLimiters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches