Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.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.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters") translateModel(ModelicaTest.Blocks.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 102 kB / 15.98 MB, free: 6.344 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.001354/0.001354, allocations: 200 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.602/1.602, allocations: 205.1 MB / 222.8 MB, free: 4.691 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.431/0.431, allocations: 43.49 MB / 313.6 MB, free: 8.539 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.001974/0.001975, allocations: 71.89 kB / 382.2 MB, free: 8.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1522, allocations: 57.78 MB / 440 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.004671/0.157, allocations: 1.746 MB / 441.7 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001563/0.1586, allocations: 0.6399 MB / 442.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.1587, allocations: 4 kB / 442.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.82e-05/0.1589, allocations: 7.875 kB / 442.4 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.159, allocations: 15.88 kB / 442.4 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005479/0.1596, allocations: 127.8 kB / 442.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.1599, allocations: 151.6 kB / 442.7 MB, free: 12.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.16, allocations: 45.34 kB / 442.7 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.1602, allocations: 59.78 kB / 442.8 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001599/0.1603, allocations: 75.67 kB / 442.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.641e-05/0.1604, allocations: 12 kB / 442.9 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.834e-05/0.1604, allocations: 12 kB / 442.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.196e-05/0.1605, allocations: 27.91 kB / 442.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.2e-05/0.1606, allocations: 71.64 kB / 443 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.1608, allocations: 135.5 kB / 443.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.1608, allocations: 0 / 443.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1608, allocations: 0 / 443.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.1608, allocations: 0 / 443.1 MB, free: 11.62 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007631/0.1616, allocations: 462.9 kB / 443.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.1616, allocations: 11.89 kB / 443.6 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.45e-05/0.1617, allocations: 16.75 kB / 443.6 MB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.1621, allocations: 228 kB / 443.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.1621, allocations: 4.375 kB / 443.8 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.643e-05/0.1621, allocations: 8.375 kB / 443.8 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004453/0.1626, allocations: 180.3 kB / 444 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.1626, allocations: 4 kB / 444 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.477e-05/0.1626, allocations: 4 kB / 444 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1627, allocations: 3.938 kB / 444 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003949/0.1631, allocations: 127.9 kB / 444.1 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009896/0.1641, allocations: 452.3 kB / 444.6 MB, free: 10 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006014/0.1647, allocations: 190.5 kB / 444.8 MB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002018/0.1649, allocations: 72.95 kB / 444.8 MB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.1649, allocations: 11.86 kB / 444.8 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.165, allocations: 34.56 kB / 444.9 MB, free: 9.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.165, allocations: 4 kB / 444.9 MB, free: 9.676 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.001474/0.1665, allocations: 0.5564 MB / 445.4 MB, free: 9.066 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.159e-05/0.1666, allocations: 110.7 kB / 445.6 MB, free: 8.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.1668, allocations: 167.1 kB / 445.7 MB, free: 8.762 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.1668, allocations: 29.7 kB / 445.7 MB, free: 8.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.703e-05/0.1669, allocations: 112 kB / 445.9 MB, free: 8.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.558e-05/0.1669, allocations: 31.55 kB / 445.9 MB, free: 8.582 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.532e-05/0.167, allocations: 25.72 kB / 445.9 MB, free: 8.551 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1671, allocations: 326.8 kB / 446.2 MB, free: 8.223 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/0.1674, allocations: 80.73 kB / 446.3 MB, free: 8.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.1676, allocations: 90.52 kB / 446.4 MB, free: 8.043 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004606/0.1681, allocations: 141 kB / 446.5 MB, free: 7.902 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1681, allocations: 0 / 446.5 MB, free: 7.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00051/0.1686, allocations: 189.4 kB / 446.7 MB, free: 7.711 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.1687, allocations: 8 kB / 446.7 MB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.1687, allocations: 0 / 446.7 MB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.1687, allocations: 0 / 446.7 MB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.1689, allocations: 47.83 kB / 446.8 MB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.169, allocations: 0 / 446.8 MB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.1691, allocations: 23.97 kB / 446.8 MB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.1691, allocations: 8 kB / 446.8 MB, free: 7.625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001893/0.1693, allocations: 116.1 kB / 446.9 MB, free: 7.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001248/0.1695, allocations: 58.53 kB / 447 MB, free: 7.441 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001966/0.1697, allocations: 76.77 kB / 447 MB, free: 7.363 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.32e-07/0.1697, allocations: 0 / 447 MB, free: 7.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.0003254/0.17, allocations: 121.5 kB / 447.2 MB, free: 7.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.17, allocations: 7.281 kB / 447.2 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-06/0.1701, allocations: 0 / 447.2 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-06/0.1701, allocations: 4.375 kB / 447.2 MB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.687e-05/0.1702, allocations: 23.92 kB / 447.2 MB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.1702, allocations: 4.484 kB / 447.2 MB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.588e-05/0.1703, allocations: 15.98 kB / 447.2 MB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.1703, allocations: 11.94 kB / 447.2 MB, free: 7.176 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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.0001611/0.1705, allocations: 184.2 kB / 447.4 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.329e-05/0.1705, allocations: 15.84 kB / 447.4 MB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.146e-05/0.1706, allocations: 21.38 kB / 447.5 MB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.1706, allocations: 3.938 kB / 447.5 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.1706, allocations: 0 / 447.5 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1706, allocations: 4 kB / 447.5 MB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009439/0.1716, allocations: 0.5147 MB / 448 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.1716, allocations: 7.938 kB / 448 MB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001724/0.1718, allocations: 39.94 kB / 448 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1718, allocations: 0 / 448 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.1718, allocations: 0 / 448 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.1718, allocations: 4 kB / 448 MB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.1718, allocations: 0 / 448 MB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007609/0.1726, allocations: 360 kB / 448.4 MB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.183e-05/0.1727, allocations: 96.89 kB / 448.5 MB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/0.1727, allocations: 4 kB / 448.5 MB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.173, allocations: 44 kB / 448.5 MB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.173, allocations: 8 kB / 448.5 MB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.173, allocations: 7.984 kB / 448.5 MB, free: 5.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.995e-05/0.1731, allocations: 123.2 kB / 448.7 MB, free: 5.648 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1732, allocations: 0 / 448.7 MB, free: 5.648 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.1735, allocations: 36 kB / 448.7 MB, free: 5.613 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealDerivative.u) * 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 (9): * Single equations (assignments): 9 * 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.0001401/0.1736, allocations: 103.2 kB / 448.8 MB, free: 5.504 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005904/0.1742, allocations: 199.7 kB / 449 MB, free: 5.309 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1742, allocations: 4 kB / 449 MB, free: 5.305 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002087/0.1745, allocations: 76.33 kB / 449.1 MB, free: 5.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.1749, allocations: 39.72 kB / 449.1 MB, free: 5.191 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007374/0.1757, allocations: 325 kB / 449.4 MB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.176, allocations: 0.7085 MB / 450.1 MB, free: 4.113 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.061e-05/0.1761, allocations: 16.88 kB / 450.1 MB, free: 4.098 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.212e-05/0.1762, allocations: 15.44 kB / 450.2 MB, free: 4.082 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1762, allocations: 4 kB / 450.2 MB, free: 4.078 MB / 382.1 MB Notification: Performance of Templates: time 0.005259/0.1814, allocations: 2.185 MB / 452.3 MB, free: 1.902 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Limiters/Limiters.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches