Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.StrictLimiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001257/0.001257, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 212 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2357/0.2357, allocations: 46.1 MB / 344.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 75.88 kB / 418.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1407, allocations: 62.46 MB / 480.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.005796/0.1466, allocations: 3.531 MB / 484.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003454/0.15, allocations: 1.473 MB / 485.7 MB, free: 292 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008653/0.1509, allocations: 27.81 kB / 485.7 MB, free: 264 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005158/0.1515, allocations: 110.7 kB / 485.8 MB, free: 152 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009969/0.1525, allocations: 158.7 kB / 486 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001694/0.1542, allocations: 0.6296 MB / 486.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001449/0.1557, allocations: 0.929 MB / 487.6 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006564/0.1564, allocations: 300.8 kB / 487.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007678/0.1572, allocations: 366.4 kB / 488.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006092/0.1578, allocations: 362 kB / 488.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.1579, allocations: 72 kB / 488.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.1581, allocations: 79.94 kB / 488.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1582, allocations: 179.3 kB / 488.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003279/0.1586, allocations: 365.7 kB / 489.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008066/0.1594, allocations: 0.8057 MB / 490 MB, free: 11.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1594, allocations: 4 kB / 490 MB, free: 11.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1594, allocations: 0 / 490 MB, free: 11.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.1594, allocations: 0 / 490 MB, free: 11.93 MB / 366.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.002148/0.1616, allocations: 1.199 MB / 491.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.1617, allocations: 16.02 kB / 491.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005209/0.1622, allocations: 131.8 kB / 491.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006954/0.1629, allocations: 0.566 MB / 492 MB, free: 9.922 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.1629, allocations: 41.38 kB / 492 MB, free: 9.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.182e-05/0.163, allocations: 60.36 kB / 492.1 MB, free: 9.824 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.1644, allocations: 0.7169 MB / 492.8 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.1644, allocations: 0 / 492.8 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.338e-05/0.1645, allocations: 24 kB / 492.8 MB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.1645, allocations: 15.98 kB / 492.8 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.1659, allocations: 0.5581 MB / 493.4 MB, free: 8.453 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003018/0.1689, allocations: 2.298 MB / 495.7 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/0.1707, allocations: 0.7176 MB / 496.4 MB, free: 5.309 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007879/0.1715, allocations: 322.2 kB / 496.7 MB, free: 4.988 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-05/0.1715, allocations: 12.36 kB / 496.7 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.723e-05/0.1716, allocations: 42.94 kB / 496.8 MB, free: 4.926 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.715e-06/0.1716, allocations: 0 / 496.8 MB, free: 4.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.004498/0.1761, allocations: 1.93 MB / 498.7 MB, free: 2.941 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/0.1762, allocations: 235.8 kB / 498.9 MB, free: 2.656 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006328/0.1769, allocations: 0.5786 MB / 499.5 MB, free: 2.066 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.1769, allocations: 37.7 kB / 499.5 MB, free: 2.023 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.1772, allocations: 360.8 kB / 499.9 MB, free: 1.668 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.1773, allocations: 177.4 kB / 0.4883 GB, free: 1.492 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.1775, allocations: 110.2 kB / 0.4884 GB, free: 1.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1776, allocations: 326 kB / 0.4888 GB, free: 1.055 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007832/0.1784, allocations: 306.8 kB / 0.489 GB, free: 0.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000866/0.1793, allocations: 427.7 kB / 0.4895 GB, free: 288 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.1809, allocations: 0.6473 MB / 0.4901 GB, free: 15.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.1809, allocations: 0 / 0.4901 GB, free: 15.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001904/0.1828, allocations: 0.8024 MB / 0.4909 GB, free: 14.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.1829, allocations: 6.5 kB / 0.4909 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.1829, allocations: 7.938 kB / 0.4909 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.1829, allocations: 7.938 kB / 0.4909 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008472/0.1838, allocations: 199.9 kB / 0.4911 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.1838, allocations: 4 kB / 0.4911 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005432/0.1843, allocations: 71.92 kB / 0.4912 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/0.1844, allocations: 23.98 kB / 0.4912 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007616/0.1852, allocations: 365.1 kB / 0.4915 GB, free: 14.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006733/0.1858, allocations: 369.3 kB / 0.4919 GB, free: 13.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001173/0.187, allocations: 0.536 MB / 0.4924 GB, free: 13.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.488e-06/0.187, allocations: 4 kB / 0.4924 GB, free: 13.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.001443/0.1885, allocations: 0.6514 MB / 0.493 GB, free: 12.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.1885, allocations: 12 kB / 0.4931 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1885, allocations: 4 kB / 0.4931 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/0.1885, allocations: 8 kB / 0.4931 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006656/0.1892, allocations: 159.8 kB / 0.4932 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/0.1892, allocations: 11.92 kB / 0.4932 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004907/0.1897, allocations: 63.95 kB / 0.4933 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-05/0.1898, allocations: 23.98 kB / 0.4933 GB, free: 12.19 MB / 382.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.0002329/0.19, allocations: 212.1 kB / 0.4935 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.1902, allocations: 75.06 kB / 0.4936 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002032/0.1904, allocations: 83.44 kB / 0.4937 GB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.1904, allocations: 15.92 kB / 0.4937 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.1904, allocations: 4 kB / 0.4937 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1905, allocations: 0 / 0.4937 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002928/0.1934, allocations: 1.452 MB / 0.4951 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.1934, allocations: 4 kB / 0.4951 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007022/0.1941, allocations: 155.8 kB / 0.4953 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.364e-05/0.1941, allocations: 7.984 kB / 0.4953 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.99e-05/0.1942, allocations: 19.92 kB / 0.4953 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.1942, allocations: 4 kB / 0.4953 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1942, allocations: 0 / 0.4953 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.1969, allocations: 1.256 MB / 0.4965 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002479/0.1972, allocations: 184.2 kB / 0.4967 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.1973, allocations: 12 kB / 0.4967 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/0.1979, allocations: 79.91 kB / 0.4968 GB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.198, allocations: 39.89 kB / 0.4968 GB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.539e-05/0.1981, allocations: 23.92 kB / 0.4968 GB, free: 8.461 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005154/0.1986, allocations: 403.1 kB / 0.4972 GB, free: 8.074 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1986, allocations: 0 / 0.4972 GB, free: 8.074 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007121/0.1993, allocations: 180 kB / 0.4974 GB, free: 7.898 MB / 382.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.0001648/0.1995, allocations: 115.2 kB / 0.4975 GB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.2021, allocations: 1.001 MB / 0.4985 GB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.2021, allocations: 0 / 0.4985 GB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008506/0.203, allocations: 352.2 kB / 0.4988 GB, free: 6.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.2042, allocations: 194.9 kB / 0.499 GB, free: 6.246 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002618/0.2068, allocations: 1.382 MB / 0.5003 GB, free: 4.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005039/0.2073, allocations: 0.918 MB / 0.5012 GB, free: 3.875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002325/0.2075, allocations: 63.41 kB / 0.5013 GB, free: 3.812 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2076, allocations: 0 / 0.5013 GB, free: 3.812 MB / 382.1 MB Notification: Performance of Templates: time 0.2947/0.5022, allocations: 8.857 MB / 0.51 GB, free: 40.42 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/StrictLimiters/StrictLimiters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches