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.001664/0.001663, allocations: 96.14 kB / 15.87 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002245/0.002245, allocations: 199.1 kB / 16.79 MB, free: 6.828 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.611/1.611, allocations: 205.1 MB / 222.6 MB, free: 4.805 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.4034/0.4034, allocations: 43.51 MB / 313.5 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.00139/0.00139, allocations: 71.91 kB / 382 MB, free: 8.762 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1602/0.1616, allocations: 57.78 MB / 439.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.004062/0.1657, allocations: 1.746 MB / 441.6 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.1671, allocations: 0.64 MB / 442.2 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000184/0.1674, allocations: 4 kB / 442.2 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.103e-05/0.1674, allocations: 11.86 kB / 442.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.1676, allocations: 7.875 kB / 442.2 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005354/0.1681, allocations: 127.8 kB / 442.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002633/0.1684, allocations: 151.6 kB / 442.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.1686, allocations: 41.36 kB / 442.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.1687, allocations: 63.7 kB / 442.6 MB, free: 12.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001563/0.1689, allocations: 63.73 kB / 442.7 MB, free: 12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.169, allocations: 8 kB / 442.7 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.664e-05/0.169, allocations: 8 kB / 442.7 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.211e-05/0.169, allocations: 27.91 kB / 442.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.512e-05/0.1691, allocations: 59.64 kB / 442.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001961/0.1693, allocations: 131.5 kB / 442.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.1693, allocations: 4 kB / 442.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1694, allocations: 0 / 442.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.1694, allocations: 0 / 442.9 MB, free: 11.77 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.0009759/0.1704, allocations: 458.9 kB / 443.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.1704, allocations: 8.031 kB / 443.3 MB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.71e-05/0.1705, allocations: 20.75 kB / 443.4 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003337/0.1708, allocations: 220.1 kB / 443.6 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.1709, allocations: 8.375 kB / 443.6 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.1709, allocations: 8.375 kB / 443.6 MB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004491/0.1714, allocations: 184.3 kB / 443.8 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.1714, allocations: 0 / 443.8 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.1714, allocations: 8 kB / 443.8 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.1714, allocations: 4 kB / 443.8 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003766/0.1718, allocations: 111.9 kB / 443.9 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009011/0.1727, allocations: 460.3 kB / 444.3 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006181/0.1734, allocations: 190.4 kB / 444.5 MB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.1736, allocations: 80.89 kB / 444.6 MB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.1736, allocations: 7.984 kB / 444.6 MB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.1737, allocations: 34.56 kB / 444.7 MB, free: 9.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.1737, allocations: 0 / 444.7 MB, free: 9.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.001412/0.1751, allocations: 0.5602 MB / 445.2 MB, free: 9.215 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.1752, allocations: 114.8 kB / 445.3 MB, free: 9.078 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.1753, allocations: 163.1 kB / 445.5 MB, free: 8.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.521e-05/0.1754, allocations: 37.64 kB / 445.5 MB, free: 8.867 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.042e-05/0.1754, allocations: 108 kB / 445.6 MB, free: 8.758 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.902e-05/0.1755, allocations: 27.56 kB / 445.7 MB, free: 8.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-05/0.1756, allocations: 25.7 kB / 445.7 MB, free: 8.699 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1757, allocations: 330.8 kB / 446 MB, free: 8.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/0.1759, allocations: 72.8 kB / 446.1 MB, free: 8.293 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.1762, allocations: 94.5 kB / 446.2 MB, free: 8.191 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003918/0.1766, allocations: 136.7 kB / 446.3 MB, free: 8.055 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1766, allocations: 0 / 446.3 MB, free: 8.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004665/0.177, allocations: 189.5 kB / 446.5 MB, free: 7.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1771, allocations: 7.438 kB / 446.5 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1771, allocations: 384 / 446.5 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.1771, allocations: 0 / 446.5 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/0.1773, allocations: 47.84 kB / 446.5 MB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.1773, allocations: 0 / 446.5 MB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.1774, allocations: 23.91 kB / 446.6 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.1775, allocations: 8 kB / 446.6 MB, free: 7.781 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001442/0.1776, allocations: 116.1 kB / 446.7 MB, free: 7.664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001076/0.1777, allocations: 62.55 kB / 446.7 MB, free: 7.594 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00017/0.1779, allocations: 76.75 kB / 446.8 MB, free: 7.516 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.092e-06/0.1779, allocations: 0 / 446.8 MB, free: 7.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.0002499/0.1782, allocations: 125.4 kB / 446.9 MB, free: 7.387 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.998e-06/0.1782, allocations: 4 kB / 446.9 MB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.1782, allocations: 3.984 kB / 446.9 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.029e-06/0.1782, allocations: 8.016 kB / 447 MB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.181e-05/0.1783, allocations: 19.98 kB / 447 MB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.1783, allocations: 7.938 kB / 447 MB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.492e-05/0.1784, allocations: 15.98 kB / 447 MB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.1784, allocations: 4.547 kB / 447 MB, free: 7.324 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.0001237/0.1786, allocations: 188.1 kB / 447.2 MB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.651e-05/0.1786, allocations: 11.91 kB / 447.2 MB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.682e-05/0.1787, allocations: 21.39 kB / 447.2 MB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1787, allocations: 7.938 kB / 447.2 MB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.1787, allocations: 0 / 447.2 MB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1787, allocations: 0 / 447.2 MB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008996/0.1796, allocations: 0.5111 MB / 447.7 MB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.1796, allocations: 3.938 kB / 447.7 MB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.1798, allocations: 35.91 kB / 447.8 MB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.1798, allocations: 3.938 kB / 447.8 MB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.1798, allocations: 8 kB / 447.8 MB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1799, allocations: 80 / 447.8 MB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.1799, allocations: 3.984 kB / 447.8 MB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000709/0.1806, allocations: 364.1 kB / 448.1 MB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.644e-05/0.1806, allocations: 92.89 kB / 448.2 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.78e-05/0.1807, allocations: 0 / 448.2 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.1809, allocations: 39.95 kB / 448.3 MB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.946e-05/0.181, allocations: 12.05 kB / 448.3 MB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.181, allocations: 4 kB / 448.3 MB, free: 5.926 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001097/0.1811, allocations: 131.2 kB / 448.4 MB, free: 5.797 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1811, allocations: 0 / 448.4 MB, free: 5.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003269/0.1815, allocations: 36 kB / 448.5 MB, free: 5.762 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.0001287/0.1816, allocations: 99.17 kB / 448.6 MB, free: 5.656 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005891/0.1822, allocations: 195.8 kB / 448.7 MB, free: 5.465 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.1822, allocations: 0 / 448.7 MB, free: 5.465 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002196/0.1824, allocations: 79.94 kB / 448.8 MB, free: 5.387 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.1829, allocations: 39.91 kB / 448.9 MB, free: 5.348 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007252/0.1837, allocations: 319 kB / 449.2 MB, free: 5.012 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.184, allocations: 0.7088 MB / 449.9 MB, free: 4.277 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.1841, allocations: 24.86 kB / 449.9 MB, free: 4.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.462e-05/0.1842, allocations: 15.91 kB / 449.9 MB, free: 4.238 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1842, allocations: 0 / 449.9 MB, free: 4.238 MB / 382.1 MB Notification: Performance of Templates: time 0.006055/0.1903, allocations: 2.091 MB / 452 MB, free: 2.156 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