Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID") translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000915/0.0009149, allocations: 95.75 kB / 16.98 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 183.7 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 223.2 MB / 241.8 MB, free: 14.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2343/0.2343, allocations: 44.22 MB / 337.1 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003197, allocations: 11.94 kB / 409.5 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.128, allocations: 61.91 MB / 471.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004437/0.1325, allocations: 3.682 MB / 475.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002697/0.1352, allocations: 1.45 MB / 476.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004458/0.1357, allocations: 31.81 kB / 476.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.1358, allocations: 67.17 kB / 476.7 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007274/0.1366, allocations: 247.1 kB / 476.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000939/0.1375, allocations: 479.8 kB / 477.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007677/0.1383, allocations: 0.6455 MB / 478 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004123/0.1387, allocations: 310.5 kB / 478.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/0.1389, allocations: 250.6 kB / 478.6 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002696/0.1392, allocations: 290.1 kB / 478.9 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.074e-05/0.1393, allocations: 20 kB / 478.9 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.346e-05/0.1393, allocations: 20 kB / 478.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.169e-05/0.1394, allocations: 119.3 kB / 479 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.1396, allocations: 161.1 kB / 479.2 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005282/0.1401, allocations: 0.6978 MB / 479.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.1401, allocations: 0 / 479.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1401, allocations: 0 / 479.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.1401, allocations: 0 / 479.9 MB, free: 5.27 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00163/0.1418, allocations: 1.152 MB / 481 MB, free: 4.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1418, allocations: 8.031 kB / 481 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.142, allocations: 118.5 kB / 481.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007358/0.1427, allocations: 0.5847 MB / 481.7 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.935e-05/0.1428, allocations: 45.31 kB / 481.8 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.501e-05/0.1429, allocations: 71.91 kB / 481.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.144, allocations: 0.7583 MB / 482.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.144, allocations: 4 kB / 482.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.172e-05/0.1441, allocations: 27.94 kB / 482.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1441, allocations: 16 kB / 482.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/0.1453, allocations: 0.5855 MB / 483.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003422/0.1487, allocations: 2.741 MB / 486 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.1502, allocations: 0.7452 MB / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.384e-05/0.1503, allocations: 4 kB / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.1503, allocations: 38.56 kB / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 3.647e-06/0.1503, allocations: 0 / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001755/0.1521, allocations: 0.8721 MB / 487.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.1522, allocations: 243.3 kB / 487.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008288/0.1531, allocations: 0.6967 MB / 488.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.1531, allocations: 33.7 kB / 488.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003577/0.1535, allocations: 432.5 kB / 489 MB, free: 11.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.1537, allocations: 189.3 kB / 489.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.661e-05/0.1537, allocations: 8 kB / 489.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1538, allocations: 326 kB / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005013/0.1543, allocations: 245 kB / 489.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006051/0.1549, allocations: 384.1 kB / 490.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005468/0.1555, allocations: 278.3 kB / 490.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1555, allocations: 0 / 490.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002639/0.1582, allocations: 1.158 MB / 491.6 MB, free: 9.102 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004647/0.1586, allocations: 1.13 MB / 492.7 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.1586, allocations: 4 kB / 492.7 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.1599, allocations: 375 kB / 493.1 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005097/0.1604, allocations: 127.9 kB / 493.2 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00877/0.1692, allocations: 7.175 MB / 0.4886 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006165/0.1698, allocations: 99.39 kB / 0.4887 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.1699, allocations: 23.83 kB / 0.4888 GB, free: 15.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.859e-06/0.1699, allocations: 4 kB / 0.4888 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001413/0.1713, allocations: 0.6721 MB / 0.4894 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1713, allocations: 4 kB / 0.4894 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004943/0.1718, allocations: 145.8 kB / 0.4896 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007165/0.1726, allocations: 180.1 kB / 0.4897 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00367/0.1762, allocations: 3.323 MB / 0.493 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005826/0.1768, allocations: 67.5 kB / 0.493 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.571e-05/0.1769, allocations: 20 kB / 0.4931 GB, free: 10.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005033/0.1774, allocations: 293 kB / 0.4933 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.1776, allocations: 90.88 kB / 0.4934 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001591/0.1778, allocations: 95.16 kB / 0.4935 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.1778, allocations: 7.953 kB / 0.4935 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.1778, allocations: 4 kB / 0.4935 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.1778, allocations: 3.984 kB / 0.4935 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.1788, allocations: 0.735 MB / 0.4943 GB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.1789, allocations: 0 / 0.4943 GB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005471/0.1794, allocations: 119.9 kB / 0.4944 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/0.1794, allocations: 4 kB / 0.4944 GB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.913e-05/0.1795, allocations: 12 kB / 0.4944 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.1795, allocations: 4 kB / 0.4944 GB, free: 9.441 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1795, allocations: 3.953 kB / 0.4944 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.1814, allocations: 1.32 MB / 0.4957 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002414/0.1817, allocations: 211.9 kB / 0.4959 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.68e-05/0.1818, allocations: 12 kB / 0.4959 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004749/0.1822, allocations: 55.95 kB / 0.4959 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.1824, allocations: 31.95 kB / 0.496 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.1824, allocations: 16 kB / 0.496 GB, free: 7.746 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006256/0.183, allocations: 475 kB / 0.4964 GB, free: 7.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.183, allocations: 0 / 0.4964 GB, free: 7.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001225/0.1843, allocations: 275.1 kB / 0.4967 GB, free: 7.02 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * 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 (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002566/0.1845, allocations: 119.1 kB / 0.4968 GB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004497/0.189, allocations: 2.027 MB / 0.4988 GB, free: 4.793 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.1891, allocations: 0 / 0.4988 GB, free: 4.793 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006418/0.1897, allocations: 303.7 kB / 0.4991 GB, free: 4.496 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.1909, allocations: 212.9 kB / 0.4993 GB, free: 4.289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.1939, allocations: 1.761 MB / 0.501 GB, free: 2.488 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007154/0.1947, allocations: 1.005 MB / 0.502 GB, free: 1.457 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003543/0.195, allocations: 89.33 kB / 0.5021 GB, free: 1.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.1952, allocations: 51.44 kB / 0.5021 GB, free: 1.32 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1952, allocations: 0 / 0.5021 GB, free: 1.32 MB / 382.1 MB Notification: Performance of Templates: time 0.3156/0.5108, allocations: 10.88 MB / 0.5128 GB, free: 44.87 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches