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.001359/0.001359, allocations: 103.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001568/0.001567, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2141/0.2141, allocations: 46.11 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 76.22 kB / 417.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1302, allocations: 62.46 MB / 480.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.004737/0.135, allocations: 3.531 MB / 483.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002654/0.1376, allocations: 1.473 MB / 485.1 MB, free: 208 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000339/0.138, allocations: 27.88 kB / 485.1 MB, free: 180 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002971/0.1383, allocations: 114.7 kB / 485.2 MB, free: 64 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004794/0.1388, allocations: 158.6 kB / 485.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.14, allocations: 0.638 MB / 486 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008535/0.1409, allocations: 0.925 MB / 486.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004565/0.1414, allocations: 292.8 kB / 487.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004778/0.1418, allocations: 370.4 kB / 487.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003672/0.1422, allocations: 362 kB / 487.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1423, allocations: 76 kB / 488 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001307/0.1425, allocations: 83.98 kB / 488.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.1426, allocations: 171.3 kB / 488.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002786/0.1429, allocations: 365.7 kB / 488.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007268/0.1436, allocations: 0.8096 MB / 489.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1437, allocations: 0 / 489.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1437, allocations: 0 / 489.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.1437, allocations: 0 / 489.4 MB, free: 11.84 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.002111/0.1458, allocations: 1.199 MB / 490.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.1458, allocations: 8.031 kB / 490.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005147/0.1464, allocations: 147.7 kB / 490.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007024/0.1471, allocations: 0.5661 MB / 491.3 MB, free: 9.824 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.1471, allocations: 37.38 kB / 491.4 MB, free: 9.789 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.345e-05/0.1472, allocations: 48.38 kB / 491.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.1486, allocations: 0.7247 MB / 492.2 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.1487, allocations: 0 / 492.2 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.667e-05/0.1487, allocations: 28 kB / 492.2 MB, free: 8.934 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.1487, allocations: 12 kB / 492.2 MB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.1502, allocations: 0.558 MB / 492.7 MB, free: 8.363 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003152/0.1533, allocations: 2.302 MB / 495 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.1551, allocations: 0.7098 MB / 495.8 MB, free: 5.223 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008147/0.1559, allocations: 334.2 kB / 496.1 MB, free: 4.891 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.885e-05/0.156, allocations: 12.44 kB / 496.1 MB, free: 4.879 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.156, allocations: 38.94 kB / 496.1 MB, free: 4.832 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.385e-06/0.156, allocations: 0 / 496.1 MB, free: 4.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.004586/0.1606, allocations: 1.926 MB / 498.1 MB, free: 2.852 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.1608, allocations: 239.8 kB / 498.3 MB, free: 2.562 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006248/0.1614, allocations: 0.5787 MB / 498.9 MB, free: 1.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.54e-05/0.1615, allocations: 33.7 kB / 498.9 MB, free: 1.934 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002636/0.1617, allocations: 356.8 kB / 499.3 MB, free: 1.582 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.1619, allocations: 181.3 kB / 499.4 MB, free: 1.402 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.1621, allocations: 110.2 kB / 499.5 MB, free: 1.289 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1622, allocations: 326 kB / 499.9 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008023/0.163, allocations: 294.9 kB / 0.4884 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008926/0.1639, allocations: 435.6 kB / 0.4888 GB, free: 200 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/0.1655, allocations: 0.6551 MB / 0.4895 GB, free: 15.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1655, allocations: 0 / 0.4895 GB, free: 15.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001875/0.1674, allocations: 0.7906 MB / 0.4903 GB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.1674, allocations: 10.44 kB / 0.4903 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1675, allocations: 4 kB / 0.4903 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.1675, allocations: 7.938 kB / 0.4903 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008454/0.1683, allocations: 192 kB / 0.4905 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.1684, allocations: 15.92 kB / 0.4905 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005252/0.1689, allocations: 79.91 kB / 0.4905 GB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.681e-05/0.169, allocations: 27.98 kB / 0.4906 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007189/0.1697, allocations: 361.1 kB / 0.4909 GB, free: 14.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006618/0.1704, allocations: 361.3 kB / 0.4913 GB, free: 13.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001154/0.1715, allocations: 0.5436 MB / 0.4918 GB, free: 13.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.687e-06/0.1715, allocations: 4 kB / 0.4918 GB, free: 13.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.001399/0.1729, allocations: 0.6592 MB / 0.4924 GB, free: 12.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.173, allocations: 8 kB / 0.4924 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.173, allocations: 3.984 kB / 0.4925 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.035e-06/0.173, allocations: 8 kB / 0.4925 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006472/0.1736, allocations: 164 kB / 0.4926 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.816e-05/0.1737, allocations: 7.938 kB / 0.4926 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/0.1741, allocations: 59.94 kB / 0.4927 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.672e-05/0.1742, allocations: 20 kB / 0.4927 GB, free: 12.1 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.0001979/0.1744, allocations: 220.1 kB / 0.4929 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.1745, allocations: 79.19 kB / 0.493 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.1747, allocations: 79.44 kB / 0.4931 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.1747, allocations: 11.94 kB / 0.4931 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.1748, allocations: 4 kB / 0.4931 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.1748, allocations: 3.984 kB / 0.4931 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002754/0.1775, allocations: 1.456 MB / 0.4945 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.818e-06/0.1775, allocations: 0 / 0.4945 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006901/0.1782, allocations: 147.8 kB / 0.4946 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.156e-06/0.1783, allocations: 11.92 kB / 0.4947 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.937e-05/0.1783, allocations: 8 kB / 0.4947 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1783, allocations: 4.062 kB / 0.4947 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1783, allocations: 4 kB / 0.4947 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00267/0.181, allocations: 1.256 MB / 0.4959 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/0.1812, allocations: 184.2 kB / 0.4961 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.982e-05/0.1813, allocations: 16 kB / 0.4961 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005629/0.1819, allocations: 79.91 kB / 0.4962 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.182, allocations: 43.88 kB / 0.4962 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.1821, allocations: 23.98 kB / 0.4962 GB, free: 8.367 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005025/0.1826, allocations: 399.1 kB / 0.4966 GB, free: 7.984 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1826, allocations: 0 / 0.4966 GB, free: 7.984 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006815/0.1833, allocations: 180 kB / 0.4968 GB, free: 7.809 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.0001395/0.1834, allocations: 111.1 kB / 0.4969 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002634/0.1861, allocations: 0.9969 MB / 0.4979 GB, free: 6.691 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/0.1861, allocations: 4 kB / 0.4979 GB, free: 6.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008751/0.187, allocations: 360.1 kB / 0.4982 GB, free: 6.336 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001142/0.1881, allocations: 207 kB / 0.4984 GB, free: 6.148 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.1907, allocations: 1.345 MB / 0.4997 GB, free: 4.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/0.1912, allocations: 0.9218 MB / 0.5006 GB, free: 3.816 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000439/0.1917, allocations: 96.78 kB / 0.5007 GB, free: 3.723 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002018/0.1919, allocations: 55.41 kB / 0.5008 GB, free: 3.668 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1919, allocations: 0 / 0.5008 GB, free: 3.668 MB / 382.1 MB Notification: Performance of Templates: time 0.2045/0.3964, allocations: 8.644 MB / 0.5092 GB, free: 41.35 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/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_trunk_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches