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.0008549/0.0008548, allocations: 97.44 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 203.1 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.8 MB / 246.8 MB, free: 9.773 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2213/0.2213, allocations: 46.18 MB / 345.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003166/0.0003166, allocations: 11.98 kB / 419.5 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1368, allocations: 63.56 MB / 483.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.004669/0.1415, allocations: 3.145 MB / 486.2 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003365/0.1449, allocations: 1.446 MB / 487.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000865/0.1458, allocations: 23.81 kB / 487.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004312/0.1463, allocations: 83.17 kB / 487.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001078/0.1474, allocations: 115.1 kB / 487.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.1491, allocations: 0.58 MB / 488.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001462/0.1506, allocations: 0.8664 MB / 489.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005946/0.1512, allocations: 288.8 kB / 489.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000721/0.1519, allocations: 302.4 kB / 489.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005164/0.1525, allocations: 286.1 kB / 490.2 MB, free: 13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001464/0.1526, allocations: 20 kB / 490.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.1528, allocations: 24 kB / 490.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.1529, allocations: 119.3 kB / 490.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003552/0.1533, allocations: 327.4 kB / 490.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009017/0.1542, allocations: 0.7314 MB / 491.4 MB, free: 11.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.1542, allocations: 4 kB / 491.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1542, allocations: 0 / 491.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.853e-05/0.1543, allocations: 0 / 491.4 MB, free: 11.77 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.002623/0.1569, allocations: 1.114 MB / 492.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.157, allocations: 16.81 kB / 492.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006658/0.1576, allocations: 151.8 kB / 492.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009198/0.1586, allocations: 0.5661 MB / 493.2 MB, free: 9.836 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.291e-05/0.1586, allocations: 37.38 kB / 493.3 MB, free: 9.801 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.1587, allocations: 56.28 kB / 493.3 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.1604, allocations: 0.7755 MB / 494.1 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.1605, allocations: 0 / 494.1 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.99e-05/0.1605, allocations: 24 kB / 494.1 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.1606, allocations: 12 kB / 494.1 MB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.1622, allocations: 0.6362 MB / 494.8 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004666/0.1669, allocations: 2.349 MB / 497.1 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00211/0.169, allocations: 0.8191 MB / 497.9 MB, free: 4.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009451/0.17, allocations: 382.2 kB / 498.3 MB, free: 4.566 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.247e-05/0.17, allocations: 8.375 kB / 498.3 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.161e-05/0.1701, allocations: 38.94 kB / 498.4 MB, free: 4.512 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 3.737e-06/0.1701, allocations: 3.938 kB / 498.4 MB, free: 4.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.005582/0.1757, allocations: 2.168 MB / 0.4888 GB, free: 2.285 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.1759, allocations: 243.7 kB / 0.489 GB, free: 1.992 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007311/0.1766, allocations: 0.5747 MB / 0.4896 GB, free: 1.406 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.532e-05/0.1767, allocations: 37.7 kB / 0.4896 GB, free: 1.363 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002913/0.177, allocations: 360.8 kB / 0.49 GB, free: 1.008 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.1771, allocations: 177.4 kB / 0.4902 GB, free: 0.832 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-05/0.1772, allocations: 53.69 kB / 0.4902 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1774, allocations: 322 kB / 0.4905 GB, free: 464 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009113/0.1783, allocations: 356.9 kB / 0.4909 GB, free: 108 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.1793, allocations: 479.7 kB / 0.4913 GB, free: 15.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001846/0.1812, allocations: 0.7528 MB / 0.492 GB, free: 14.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1812, allocations: 0 / 0.492 GB, free: 14.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002209/0.1834, allocations: 0.9041 MB / 0.4929 GB, free: 13.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.1836, allocations: 155.2 kB / 0.4931 GB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.1836, allocations: 3.984 kB / 0.4931 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.1836, allocations: 8 kB / 0.4931 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009233/0.1845, allocations: 219.7 kB / 0.4933 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.1846, allocations: 7.984 kB / 0.4933 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006436/0.1852, allocations: 107.9 kB / 0.4934 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.72e-05/0.1853, allocations: 23.98 kB / 0.4934 GB, free: 13.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.1853, allocations: 4 kB / 0.4934 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001437/0.1867, allocations: 0.6142 MB / 0.494 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1868, allocations: 4 kB / 0.494 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.855e-06/0.1868, allocations: 4 kB / 0.494 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006988/0.1875, allocations: 180 kB / 0.4942 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.1875, allocations: 4 kB / 0.4942 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004994/0.188, allocations: 75.89 kB / 0.4943 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.835e-05/0.188, allocations: 19.98 kB / 0.4943 GB, free: 12.45 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.0003505/0.1884, allocations: 277 kB / 0.4946 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.1886, allocations: 75.06 kB / 0.4946 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000191/0.1888, allocations: 83.44 kB / 0.4947 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.1888, allocations: 8 kB / 0.4947 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/0.1888, allocations: 12 kB / 0.4947 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.1888, allocations: 3.984 kB / 0.4947 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/0.1921, allocations: 1.546 MB / 0.4963 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.1921, allocations: 4 kB / 0.4963 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007556/0.1928, allocations: 175.9 kB / 0.4964 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.1929, allocations: 8 kB / 0.4964 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.373e-05/0.1929, allocations: 15.98 kB / 0.4964 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.1929, allocations: 3.938 kB / 0.4965 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1929, allocations: 4 kB / 0.4965 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003072/0.196, allocations: 1.408 MB / 0.4978 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002543/0.1963, allocations: 192.1 kB / 0.498 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.142e-05/0.1964, allocations: 8 kB / 0.498 GB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006399/0.197, allocations: 115.9 kB / 0.4981 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.1972, allocations: 39.94 kB / 0.4982 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.59e-05/0.1972, allocations: 15.98 kB / 0.4982 GB, free: 8.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005353/0.1978, allocations: 407 kB / 0.4986 GB, free: 7.949 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1978, allocations: 4 kB / 0.4986 GB, free: 7.945 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007336/0.1985, allocations: 180 kB / 0.4987 GB, free: 7.77 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.0001828/0.1987, allocations: 111.1 kB / 0.4989 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002955/0.2017, allocations: 1.107 MB / 0.4999 GB, free: 6.547 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.2017, allocations: 0 / 0.4999 GB, free: 6.547 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.2028, allocations: 412.1 kB / 0.5003 GB, free: 6.145 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/0.2045, allocations: 184.6 kB / 0.5005 GB, free: 5.973 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003298/0.2078, allocations: 1.667 MB / 0.5021 GB, free: 4.262 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005596/0.2084, allocations: 0.9259 MB / 0.503 GB, free: 3.309 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005233/0.2089, allocations: 100.9 kB / 0.5031 GB, free: 3.211 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.2091, allocations: 55.41 kB / 0.5032 GB, free: 3.16 MB / 382.1 MB Notification: Performance of SimCode: time 2.906e-06/0.2091, allocations: 0 / 0.5032 GB, free: 3.16 MB / 382.1 MB Notification: Performance of Templates: time 0.2674/0.4766, allocations: 7.917 MB / 0.5109 GB, free: 40 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