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.0009342/0.0009342, allocations: 94.91 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001059/0.001059, allocations: 206.5 kB / 18.94 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.7 MB / 247.5 MB, free: 9.684 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1888/0.1888, allocations: 46.19 MB / 345.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002464/0.0002465, allocations: 8 kB / 420.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.094/0.09426, allocations: 63.56 MB / 483.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.003368/0.09767, allocations: 3.133 MB / 486.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002532/0.1002, allocations: 1.446 MB / 488.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004737/0.1007, allocations: 27.81 kB / 488.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002742/0.101, allocations: 79.19 kB / 488.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005353/0.1016, allocations: 123.1 kB / 488.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.1027, allocations: 0.5684 MB / 489.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009777/0.1037, allocations: 0.878 MB / 490 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004376/0.1042, allocations: 280.8 kB / 490.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004873/0.1047, allocations: 298.4 kB / 490.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003762/0.1051, allocations: 290.1 kB / 490.8 MB, free: 13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.1052, allocations: 24 kB / 490.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001174/0.1053, allocations: 31.98 kB / 490.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.1054, allocations: 115.3 kB / 491 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002553/0.1057, allocations: 323.4 kB / 491.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000488/0.1062, allocations: 0.565 MB / 491.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1062, allocations: 0 / 491.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1062, allocations: 0 / 491.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.884e-05/0.1062, allocations: 0 / 491.9 MB, free: 11.94 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.002066/0.1083, allocations: 1.116 MB / 493 MB, free: 10.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.1083, allocations: 16.81 kB / 493 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005628/0.1089, allocations: 155.8 kB / 493.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007417/0.1097, allocations: 0.5661 MB / 493.7 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.45e-05/0.1097, allocations: 37.38 kB / 493.8 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.256e-05/0.1098, allocations: 60.28 kB / 493.8 MB, free: 9.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.1113, allocations: 0.7677 MB / 494.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.1114, allocations: 8 kB / 494.6 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.718e-05/0.1114, allocations: 20 kB / 494.6 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.1115, allocations: 12 kB / 494.6 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.113, allocations: 0.644 MB / 495.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003244/0.1163, allocations: 2.345 MB / 497.6 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001878/0.1182, allocations: 0.823 MB / 498.4 MB, free: 5.102 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009066/0.1191, allocations: 378.2 kB / 498.8 MB, free: 4.727 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.908e-05/0.1192, allocations: 16.42 kB / 498.8 MB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.1192, allocations: 38.94 kB / 498.9 MB, free: 4.664 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.144e-06/0.1192, allocations: 0 / 498.9 MB, free: 4.664 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.005018/0.1242, allocations: 2.156 MB / 0.4893 GB, free: 2.453 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.1244, allocations: 243.8 kB / 0.4895 GB, free: 2.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006264/0.125, allocations: 0.5747 MB / 0.4901 GB, free: 1.574 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.311e-05/0.1251, allocations: 41.7 kB / 0.4901 GB, free: 1.527 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/0.1253, allocations: 356.8 kB / 0.4905 GB, free: 1.176 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.1255, allocations: 177.3 kB / 0.4906 GB, free: 1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.517e-05/0.1255, allocations: 53.69 kB / 0.4907 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1256, allocations: 330 kB / 0.491 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008994/0.1265, allocations: 348.9 kB / 0.4913 GB, free: 280 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009823/0.1275, allocations: 483.7 kB / 0.4918 GB, free: 15.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001773/0.1293, allocations: 0.7528 MB / 0.4925 GB, free: 14.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1293, allocations: 4 kB / 0.4925 GB, free: 14.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002071/0.1314, allocations: 0.8961 MB / 0.4934 GB, free: 14.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.352e-05/0.1315, allocations: 159.2 kB / 0.4935 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.1315, allocations: 7.984 kB / 0.4936 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.1316, allocations: 4 kB / 0.4936 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008913/0.1325, allocations: 223.7 kB / 0.4938 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.1325, allocations: 4 kB / 0.4938 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005894/0.1331, allocations: 111.9 kB / 0.4939 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.191e-05/0.1331, allocations: 20 kB / 0.4939 GB, free: 13.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.784e-06/0.1331, allocations: 4 kB / 0.4939 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001374/0.1345, allocations: 0.6181 MB / 0.4945 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1345, allocations: 0 / 0.4945 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.203e-06/0.1346, allocations: 8.25 kB / 0.4945 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006835/0.1352, allocations: 175.8 kB / 0.4947 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1353, allocations: 7.984 kB / 0.4947 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004502/0.1357, allocations: 75.88 kB / 0.4948 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.1358, allocations: 24 kB / 0.4948 GB, free: 12.6 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.0002814/0.1361, allocations: 272.9 kB / 0.495 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.1362, allocations: 75.06 kB / 0.4951 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001743/0.1364, allocations: 87.42 kB / 0.4952 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.1364, allocations: 4.281 kB / 0.4952 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.1364, allocations: 3.938 kB / 0.4952 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.1364, allocations: 7.984 kB / 0.4952 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002807/0.1392, allocations: 1.55 MB / 0.4967 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.1392, allocations: 4 kB / 0.4967 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007439/0.14, allocations: 171.9 kB / 0.4969 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.14, allocations: 4 kB / 0.4969 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.128e-05/0.14, allocations: 15.98 kB / 0.4969 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.1401, allocations: 7.938 kB / 0.4969 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1401, allocations: 0 / 0.4969 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002907/0.143, allocations: 1.415 MB / 0.4983 GB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000209/0.1432, allocations: 192.1 kB / 0.4985 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.937e-05/0.1433, allocations: 8 kB / 0.4985 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006244/0.1439, allocations: 111.9 kB / 0.4986 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.946e-05/0.144, allocations: 43.94 kB / 0.4986 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.17e-05/0.1441, allocations: 15.98 kB / 0.4987 GB, free: 8.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004252/0.1445, allocations: 403 kB / 0.499 GB, free: 8.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1445, allocations: 0 / 0.499 GB, free: 8.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006415/0.1452, allocations: 180 kB / 0.4992 GB, free: 7.938 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.0001361/0.1453, allocations: 119.2 kB / 0.4993 GB, free: 7.812 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002622/0.1479, allocations: 1.107 MB / 0.5004 GB, free: 6.707 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.1479, allocations: 0 / 0.5004 GB, free: 6.707 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009507/0.1489, allocations: 407.8 kB / 0.5008 GB, free: 6.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.1501, allocations: 186.8 kB / 0.501 GB, free: 6.129 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/0.1527, allocations: 1.696 MB / 0.5026 GB, free: 4.383 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004359/0.1531, allocations: 0.926 MB / 0.5035 GB, free: 3.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002333/0.1533, allocations: 55.41 kB / 0.5036 GB, free: 3.379 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1534, allocations: 0 / 0.5036 GB, free: 3.379 MB / 382.1 MB Notification: Performance of Templates: time 0.1858/0.3391, allocations: 8.75 MB / 0.5121 GB, free: 39.02 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