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.001071/0.001071, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2079/0.2079, allocations: 46.19 MB / 345.2 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002895/0.0002897, allocations: 8 kB / 419.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1092, allocations: 63.56 MB / 483.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.003456/0.1127, allocations: 3.137 MB / 486.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002571/0.1153, allocations: 1.446 MB / 487.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005431/0.1159, allocations: 23.81 kB / 487.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003219/0.1162, allocations: 79.23 kB / 487.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006606/0.1169, allocations: 123 kB / 487.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.1182, allocations: 0.5751 MB / 488.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001135/0.1194, allocations: 0.8781 MB / 489.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000501/0.1199, allocations: 280.8 kB / 489.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007545/0.1207, allocations: 294.4 kB / 489.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005046/0.1212, allocations: 298.1 kB / 490.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.1213, allocations: 24 kB / 490.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.1214, allocations: 28 kB / 490.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.1216, allocations: 111.3 kB / 490.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002812/0.1218, allocations: 327.4 kB / 490.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007437/0.1226, allocations: 0.7352 MB / 491.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.1226, allocations: 0 / 491.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1226, allocations: 0 / 491.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.801e-05/0.1226, allocations: 0 / 491.4 MB, free: 11.81 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.002132/0.1248, allocations: 1.114 MB / 492.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.1248, allocations: 16.81 kB / 492.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005571/0.1254, allocations: 147.8 kB / 492.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007992/0.1262, allocations: 0.5661 MB / 493.2 MB, free: 9.879 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.361e-05/0.1263, allocations: 45.38 kB / 493.3 MB, free: 9.836 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.711e-05/0.1264, allocations: 56.27 kB / 493.3 MB, free: 9.781 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.1279, allocations: 0.7639 MB / 494.1 MB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.1279, allocations: 3.938 kB / 494.1 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.654e-05/0.128, allocations: 24 kB / 494.1 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.128, allocations: 15.98 kB / 494.1 MB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.1296, allocations: 0.6479 MB / 494.8 MB, free: 8.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003174/0.1328, allocations: 2.345 MB / 497.1 MB, free: 5.832 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.1347, allocations: 0.8152 MB / 498 MB, free: 4.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009012/0.1356, allocations: 382.2 kB / 498.3 MB, free: 4.602 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.1357, allocations: 12.42 kB / 498.3 MB, free: 4.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.1357, allocations: 42.94 kB / 498.4 MB, free: 4.539 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 3.687e-06/0.1357, allocations: 4 kB / 498.4 MB, free: 4.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.00493/0.1407, allocations: 2.16 MB / 0.4888 GB, free: 2.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.1408, allocations: 235.8 kB / 0.489 GB, free: 2.035 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005976/0.1414, allocations: 0.5825 MB / 0.4896 GB, free: 1.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.254e-05/0.1415, allocations: 37.7 kB / 0.4896 GB, free: 1.398 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.1417, allocations: 356.8 kB / 0.49 GB, free: 1.047 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.1418, allocations: 177.4 kB / 0.4902 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-05/0.1419, allocations: 49.7 kB / 0.4902 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.61e-05/0.142, allocations: 334 kB / 0.4905 GB, free: 496 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008736/0.1429, allocations: 340.9 kB / 0.4908 GB, free: 156 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009964/0.1439, allocations: 487.6 kB / 0.4913 GB, free: 15.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001806/0.1457, allocations: 0.7489 MB / 0.492 GB, free: 14.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1457, allocations: 7.938 kB / 0.4921 GB, free: 14.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002042/0.1478, allocations: 0.9 MB / 0.4929 GB, free: 13.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.917e-05/0.1479, allocations: 163.1 kB / 0.4931 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.1479, allocations: 4 kB / 0.4931 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.1479, allocations: 4 kB / 0.4931 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009217/0.1488, allocations: 220 kB / 0.4933 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.1489, allocations: 4 kB / 0.4933 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005765/0.1494, allocations: 107.9 kB / 0.4934 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.003e-05/0.1495, allocations: 24 kB / 0.4934 GB, free: 13.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.953e-06/0.1495, allocations: 4 kB / 0.4934 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001364/0.1509, allocations: 0.6259 MB / 0.494 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-06/0.1509, allocations: 0 / 0.494 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.502e-06/0.1509, allocations: 4 kB / 0.4941 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006825/0.1516, allocations: 172.1 kB / 0.4942 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.1516, allocations: 11.94 kB / 0.4942 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004312/0.1521, allocations: 75.88 kB / 0.4943 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.1521, allocations: 16 kB / 0.4943 GB, free: 12.48 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.0002906/0.1524, allocations: 272.9 kB / 0.4946 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.1525, allocations: 79.06 kB / 0.4947 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001739/0.1527, allocations: 87.42 kB / 0.4947 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.1527, allocations: 4 kB / 0.4947 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.1527, allocations: 3.938 kB / 0.4947 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.1527, allocations: 3.984 kB / 0.4947 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.1555, allocations: 1.553 MB / 0.4963 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.1556, allocations: 4 kB / 0.4963 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007692/0.1563, allocations: 175.9 kB / 0.4964 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.106e-06/0.1564, allocations: 4 kB / 0.4964 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.895e-05/0.1564, allocations: 11.98 kB / 0.4964 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.1564, allocations: 4 kB / 0.4965 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1564, allocations: 0 / 0.4965 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002919/0.1593, allocations: 1.415 MB / 0.4978 GB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.1596, allocations: 192.1 kB / 0.498 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.129e-05/0.1597, allocations: 12 kB / 0.498 GB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006486/0.1603, allocations: 107.9 kB / 0.4981 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.1604, allocations: 35.94 kB / 0.4982 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.699e-05/0.1605, allocations: 23.98 kB / 0.4982 GB, free: 8.379 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004384/0.1609, allocations: 407 kB / 0.4986 GB, free: 7.988 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1609, allocations: 0 / 0.4986 GB, free: 7.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006618/0.1616, allocations: 180 kB / 0.4987 GB, free: 7.812 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.0001347/0.1617, allocations: 107.2 kB / 0.4989 GB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.1644, allocations: 1.103 MB / 0.4999 GB, free: 6.598 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1644, allocations: 3.938 kB / 0.4999 GB, free: 6.594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009719/0.1654, allocations: 415.8 kB / 0.5003 GB, free: 6.188 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.1666, allocations: 179.2 kB / 0.5005 GB, free: 6.012 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.1691, allocations: 1.667 MB / 0.5021 GB, free: 4.301 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/0.1696, allocations: 0.9259 MB / 0.503 GB, free: 3.348 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004235/0.17, allocations: 96.91 kB / 0.5031 GB, free: 3.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.1702, allocations: 55.42 kB / 0.5032 GB, free: 3.203 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1702, allocations: 0 / 0.5032 GB, free: 3.203 MB / 382.1 MB Notification: Performance of Templates: time 0.203/0.3733, allocations: 7.939 MB / 0.5109 GB, free: 39.99 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