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.001582/0.001582, allocations: 113.4 kB / 17.99 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001994/0.001994, allocations: 209.8 kB / 18.92 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.975/1.975, allocations: 227.4 MB / 247.1 MB, free: 10.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4104/0.4104, allocations: 46.1 MB / 344.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 74 kB / 417.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1261, allocations: 62.44 MB / 480.1 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.005187/0.1313, allocations: 3.538 MB / 483.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003116/0.1345, allocations: 1.449 MB / 485.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000788/0.1353, allocations: 31.81 kB / 485.2 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004828/0.1358, allocations: 79.25 kB / 485.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009014/0.1368, allocations: 119 kB / 485.4 MB, free: 412 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.1384, allocations: 0.5874 MB / 485.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001445/0.1398, allocations: 0.9211 MB / 486.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006229/0.1405, allocations: 308.8 kB / 487.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008163/0.1413, allocations: 378.3 kB / 487.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006119/0.1419, allocations: 362.1 kB / 487.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002282/0.1421, allocations: 72 kB / 488 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002203/0.1424, allocations: 72 kB / 488 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001993/0.1426, allocations: 175.4 kB / 488.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005084/0.1431, allocations: 365.7 kB / 488.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008983/0.144, allocations: 0.608 MB / 489.2 MB, free: 12.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.144, allocations: 0 / 489.2 MB, free: 12.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.144, allocations: 4 kB / 489.2 MB, free: 12.58 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.099e-05/0.1441, allocations: 0 / 489.2 MB, free: 12.58 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.002676/0.1468, allocations: 1.199 MB / 490.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.1468, allocations: 16.03 kB / 490.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005693/0.1474, allocations: 139.7 kB / 490.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007408/0.1482, allocations: 0.5661 MB / 491.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.1482, allocations: 37.38 kB / 491.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.847e-05/0.1483, allocations: 52.38 kB / 491.2 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.1498, allocations: 0.7208 MB / 491.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.1499, allocations: 4 kB / 491.9 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.142e-05/0.1499, allocations: 24 kB / 491.9 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.15, allocations: 12 kB / 491.9 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.1514, allocations: 0.5581 MB / 492.5 MB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003226/0.1547, allocations: 2.305 MB / 494.8 MB, free: 6.707 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.1564, allocations: 0.7137 MB / 495.5 MB, free: 5.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008054/0.1572, allocations: 330.2 kB / 495.8 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.679e-05/0.1573, allocations: 8.375 kB / 495.8 MB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.1573, allocations: 38.94 kB / 495.9 MB, free: 5.574 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.415e-06/0.1573, allocations: 0 / 495.9 MB, free: 5.574 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.004695/0.162, allocations: 1.93 MB / 497.8 MB, free: 3.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.1622, allocations: 239.8 kB / 498 MB, free: 3.301 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006735/0.1629, allocations: 0.5787 MB / 498.6 MB, free: 2.711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.868e-05/0.1629, allocations: 37.7 kB / 498.7 MB, free: 2.668 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.1632, allocations: 352.8 kB / 499 MB, free: 2.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.1633, allocations: 181.3 kB / 499.2 MB, free: 2.141 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.1635, allocations: 106.2 kB / 499.3 MB, free: 2.031 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1636, allocations: 330 kB / 499.6 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008109/0.1644, allocations: 306.9 kB / 499.9 MB, free: 1.398 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009071/0.1654, allocations: 427.6 kB / 0.4886 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.167, allocations: 0.6591 MB / 0.4892 GB, free: 252 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.167, allocations: 0 / 0.4892 GB, free: 252 kB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002028/0.1691, allocations: 0.7906 MB / 0.49 GB, free: 15.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.1691, allocations: 8 kB / 0.49 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.1691, allocations: 0 / 0.49 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.289e-05/0.1692, allocations: 8.188 kB / 0.49 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009139/0.1701, allocations: 195.7 kB / 0.4902 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.1701, allocations: 7.938 kB / 0.4902 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006467/0.1708, allocations: 83.91 kB / 0.4903 GB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.916e-05/0.1708, allocations: 19.98 kB / 0.4903 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00081/0.1716, allocations: 365.1 kB / 0.4907 GB, free: 14.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007121/0.1724, allocations: 363.8 kB / 0.491 GB, free: 14.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001203/0.1736, allocations: 0.5514 MB / 0.4916 GB, free: 13.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.596e-06/0.1736, allocations: 0 / 0.4916 GB, free: 13.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.001585/0.1752, allocations: 0.6551 MB / 0.4922 GB, free: 13.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.1752, allocations: 8 kB / 0.4922 GB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.1752, allocations: 7.984 kB / 0.4922 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.687e-06/0.1753, allocations: 4 kB / 0.4922 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007521/0.176, allocations: 164 kB / 0.4924 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.176, allocations: 7.938 kB / 0.4924 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005767/0.1766, allocations: 59.94 kB / 0.4924 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.916e-05/0.1767, allocations: 20 kB / 0.4925 GB, free: 12.84 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.0002727/0.1769, allocations: 224.1 kB / 0.4927 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.1771, allocations: 75.06 kB / 0.4927 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002539/0.1774, allocations: 79.44 kB / 0.4928 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.1774, allocations: 11.94 kB / 0.4928 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.1774, allocations: 0 / 0.4928 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.1774, allocations: 3.984 kB / 0.4928 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002982/0.1804, allocations: 1.46 MB / 0.4943 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.1804, allocations: 0 / 0.4943 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007681/0.1812, allocations: 143.8 kB / 0.4944 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.602e-05/0.1812, allocations: 8.047 kB / 0.4944 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.044e-05/0.1813, allocations: 12.09 kB / 0.4944 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.613e-06/0.1813, allocations: 4 kB / 0.4944 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1813, allocations: 0 / 0.4944 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002915/0.1842, allocations: 1.256 MB / 0.4956 GB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000299/0.1846, allocations: 188.2 kB / 0.4958 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.1847, allocations: 20 kB / 0.4958 GB, free: 9.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006388/0.1854, allocations: 75.91 kB / 0.4959 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.1855, allocations: 51.81 kB / 0.496 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-05/0.1856, allocations: 15.98 kB / 0.496 GB, free: 9.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005597/0.1861, allocations: 403.1 kB / 0.4964 GB, free: 8.727 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.1862, allocations: 0 / 0.4964 GB, free: 8.727 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001002/0.1872, allocations: 180 kB / 0.4965 GB, free: 8.551 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.0002354/0.1874, allocations: 111.1 kB / 0.4966 GB, free: 8.434 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002866/0.1903, allocations: 1.005 MB / 0.4976 GB, free: 7.422 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.1903, allocations: 4.125 kB / 0.4976 GB, free: 7.418 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009443/0.1913, allocations: 356.1 kB / 0.498 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.1927, allocations: 196.3 kB / 0.4982 GB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.196, allocations: 1.636 MB / 0.4998 GB, free: 5.211 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005869/0.1966, allocations: 0.9218 MB / 0.5007 GB, free: 4.262 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000295/0.1969, allocations: 63.41 kB / 0.5007 GB, free: 4.199 MB / 382.1 MB Notification: Performance of SimCode: time 1.854e-06/0.1969, allocations: 0 / 0.5007 GB, free: 4.199 MB / 382.1 MB Notification: Performance of Templates: time 0.2457/0.4427, allocations: 8.853 MB / 0.5094 GB, free: 40.13 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