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.001057/0.001057, allocations: 96.62 kB / 15.7 MB, free: 468 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.001263/0.001263, allocations: 173.9 kB / 16.58 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.288/2.288, allocations: 205.4 MB / 222.8 MB, free: 5.617 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.5525/0.5525, allocations: 43.57 MB / 314.6 MB, free: 8.758 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.0005333/0.0005336, allocations: 19.98 kB / 383.9 MB, free: 7.973 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.178, allocations: 58.86 MB / 442.8 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.002129/0.1802, allocations: 1.361 MB / 444.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.1814, allocations: 0.6053 MB / 444.8 MB, free: 11.03 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.1815, allocations: 4 kB / 444.8 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.75e-05/0.1816, allocations: 15.8 kB / 444.8 MB, free: 11.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.1817, allocations: 11.88 kB / 444.8 MB, free: 11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004322/0.1821, allocations: 123.8 kB / 444.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.1823, allocations: 135.6 kB / 445.1 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.1825, allocations: 33.06 kB / 445.1 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.1826, allocations: 55.78 kB / 445.1 MB, free: 10.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.1828, allocations: 59.73 kB / 445.2 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.709e-05/0.1828, allocations: 4 kB / 445.2 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.264e-05/0.1828, allocations: 8 kB / 445.2 MB, free: 10.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.877e-05/0.1829, allocations: 27.91 kB / 445.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.171e-05/0.1829, allocations: 41.64 kB / 445.3 MB, free: 10.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.1831, allocations: 96.02 kB / 445.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1831, allocations: 0 / 445.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1831, allocations: 0 / 445.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.918e-06/0.1831, allocations: 0 / 445.4 MB, free: 10.41 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.000685/0.1838, allocations: 446.8 kB / 445.8 MB, free: 9.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.1839, allocations: 12.02 kB / 445.8 MB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.335e-05/0.1839, allocations: 19.77 kB / 445.8 MB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.1842, allocations: 218.8 kB / 446.1 MB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.1842, allocations: 4 kB / 446.1 MB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.1843, allocations: 12 kB / 446.1 MB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004481/0.1847, allocations: 211.9 kB / 446.3 MB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.1848, allocations: 0 / 446.3 MB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.1848, allocations: 4 kB / 446.3 MB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1848, allocations: 4 kB / 446.3 MB, free: 9.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003908/0.1852, allocations: 159.8 kB / 446.4 MB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008894/0.1861, allocations: 472.3 kB / 446.9 MB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005874/0.1867, allocations: 250.4 kB / 447.1 MB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.1869, allocations: 92.8 kB / 447.2 MB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.187, allocations: 4 kB / 447.2 MB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.187, allocations: 30.56 kB / 447.3 MB, free: 8.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.187, allocations: 0 / 447.3 MB, free: 8.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.001565/0.1886, allocations: 0.6583 MB / 447.9 MB, free: 7.629 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.136e-05/0.1887, allocations: 102.8 kB / 448 MB, free: 7.504 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.1889, allocations: 171.1 kB / 448.2 MB, free: 7.328 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.1889, allocations: 33.64 kB / 448.2 MB, free: 7.289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.485e-05/0.189, allocations: 108 kB / 448.3 MB, free: 7.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.278e-05/0.189, allocations: 27.56 kB / 448.4 MB, free: 7.152 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-06/0.189, allocations: 4 kB / 448.4 MB, free: 7.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1892, allocations: 326.8 kB / 448.7 MB, free: 6.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.1894, allocations: 83.94 kB / 448.8 MB, free: 6.738 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.1897, allocations: 110.5 kB / 448.9 MB, free: 6.621 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.1899, allocations: 83.98 kB / 449 MB, free: 6.539 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1899, allocations: 7.984 kB / 449 MB, free: 6.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004915/0.1904, allocations: 217.4 kB / 449.2 MB, free: 6.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.782e-05/0.1905, allocations: 93 kB / 449.3 MB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1905, allocations: 3.984 kB / 449.3 MB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.1905, allocations: 0 / 449.3 MB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.1907, allocations: 47.91 kB / 449.3 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.1908, allocations: 240 / 449.3 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.1909, allocations: 43.91 kB / 449.4 MB, free: 6.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.1909, allocations: 7.969 kB / 449.4 MB, free: 6.113 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.456e-06/0.1909, allocations: 7.953 kB / 449.4 MB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002143/0.1911, allocations: 92.23 kB / 449.5 MB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.1912, allocations: 8.031 kB / 449.5 MB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-06/0.1912, allocations: 3.938 kB / 449.5 MB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.811e-05/0.1913, allocations: 23.98 kB / 449.5 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-06/0.1913, allocations: 0 / 449.5 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.298e-05/0.1914, allocations: 15.98 kB / 449.5 MB, free: 5.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.1914, allocations: 4 kB / 449.5 MB, free: 5.961 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001482/0.1915, allocations: 194.2 kB / 449.7 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.1916, allocations: 19.77 kB / 449.7 MB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.636e-05/0.1916, allocations: 21.39 kB / 449.8 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1916, allocations: 0 / 449.8 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1917, allocations: 0 / 449.8 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.1917, allocations: 8 kB / 449.8 MB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009149/0.1926, allocations: 0.55 MB / 450.3 MB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1926, allocations: 0 / 450.3 MB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001675/0.1928, allocations: 43.91 kB / 450.4 MB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.1928, allocations: 4 kB / 450.4 MB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1928, allocations: 4.031 kB / 450.4 MB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1928, allocations: 4 kB / 450.4 MB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1928, allocations: 0 / 450.4 MB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007897/0.1936, allocations: 431.9 kB / 450.8 MB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.786e-05/0.1937, allocations: 85.05 kB / 450.9 MB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.1937, allocations: 0 / 450.9 MB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.194, allocations: 56.02 kB / 450.9 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.389e-05/0.194, allocations: 7.984 kB / 450.9 MB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.1941, allocations: 7.984 kB / 450.9 MB, free: 4.438 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001144/0.1942, allocations: 123.2 kB / 451.1 MB, free: 4.316 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.1942, allocations: 0 / 451.1 MB, free: 4.316 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.1945, allocations: 32 kB / 451.1 MB, free: 4.285 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 (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.0001541/0.1947, allocations: 107.2 kB / 451.2 MB, free: 4.172 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006271/0.1953, allocations: 232.1 kB / 451.4 MB, free: 3.945 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.1953, allocations: 4.125 kB / 451.4 MB, free: 3.941 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.1955, allocations: 95.94 kB / 451.5 MB, free: 3.848 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.196, allocations: 43.86 kB / 451.6 MB, free: 3.805 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007884/0.1968, allocations: 336.6 kB / 451.9 MB, free: 3.445 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003244/0.1972, allocations: 0.7088 MB / 452.6 MB, free: 2.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001157/0.1973, allocations: 24.86 kB / 452.6 MB, free: 2.684 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.699e-05/0.1973, allocations: 15.44 kB / 452.6 MB, free: 2.668 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1973, allocations: 0 / 452.6 MB, free: 2.668 MB / 382.1 MB Notification: Performance of Templates: time 0.006967/0.2043, allocations: 1.992 MB / 454.6 MB, free: 0.6836 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