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.001532/0.001532, allocations: 113.4 kB / 17.86 MB, free: 5.625 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.001451/0.001451, allocations: 201.9 kB / 18.77 MB, free: 4.711 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.331/1.331, allocations: 222.9 MB / 242.5 MB, free: 15.32 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.2074/0.2074, allocations: 44.17 MB / 336.8 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 60.66 kB / 408.3 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1153, allocations: 60.82 MB / 469.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006538/0.1219, allocations: 4.347 MB / 473.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003009/0.1249, allocations: 1.515 MB / 475 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006234/0.1256, allocations: 35.81 kB / 475.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003774/0.1259, allocations: 106.9 kB / 475.2 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003778/0.1264, allocations: 134.8 kB / 475.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.1275, allocations: 0.5416 MB / 475.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008869/0.1284, allocations: 0.9566 MB / 476.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005603/0.1289, allocations: 423.1 kB / 477.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002798/0.1292, allocations: 322.2 kB / 477.5 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003103/0.1296, allocations: 369.6 kB / 477.9 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.023e-05/0.1297, allocations: 40 kB / 477.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.847e-05/0.1298, allocations: 44 kB / 478 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.1299, allocations: 143.2 kB / 478.1 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002965/0.1302, allocations: 397.2 kB / 478.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006124/0.1308, allocations: 0.7253 MB / 479.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1308, allocations: 0 / 479.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1308, allocations: 4 kB / 479.2 MB, free: 4.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.1309, allocations: 4 kB / 479.2 MB, free: 4.695 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.00201/0.1329, allocations: 1.28 MB / 480.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1329, allocations: 12.03 kB / 480.5 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.1331, allocations: 119.5 kB / 480.6 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007993/0.1339, allocations: 0.6203 MB / 481.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.1339, allocations: 49.62 kB / 481.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.134, allocations: 68.38 kB / 481.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.1353, allocations: 0.7392 MB / 482.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.1353, allocations: 11.92 kB / 482.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.796e-05/0.1354, allocations: 24 kB / 482.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.1354, allocations: 16 kB / 482.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.1366, allocations: 0.5386 MB / 482.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00342/0.14, allocations: 2.718 MB / 485.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.1414, allocations: 0.6707 MB / 486.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005418/0.142, allocations: 283.4 kB / 486.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.286e-05/0.142, allocations: 15.94 kB / 486.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.405e-05/0.1421, allocations: 38.56 kB / 486.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.494e-06/0.1421, allocations: 0 / 486.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001811/0.1439, allocations: 0.7921 MB / 487.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.144, allocations: 239.3 kB / 487.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007633/0.1448, allocations: 0.7007 MB / 488.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.279e-05/0.1449, allocations: 33.7 kB / 488.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003166/0.1452, allocations: 432.5 kB / 488.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.1453, allocations: 189.3 kB / 488.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/0.1455, allocations: 106.1 kB / 488.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1457, allocations: 326 kB / 489.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005146/0.1462, allocations: 231 kB / 489.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006063/0.1468, allocations: 368 kB / 489.8 MB, free: 9.676 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.1479, allocations: 0.5556 MB / 490.4 MB, free: 9.086 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.1479, allocations: 4 kB / 490.4 MB, free: 9.082 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002621/0.1505, allocations: 1.048 MB / 491.4 MB, free: 8.016 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.1505, allocations: 8 kB / 491.4 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.1506, allocations: 0 / 491.4 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/0.1518, allocations: 331.4 kB / 491.7 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000594/0.1525, allocations: 119.9 kB / 491.9 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00834/0.1608, allocations: 6.767 MB / 498.6 MB, free: 256 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000584/0.1614, allocations: 79.34 kB / 498.7 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.271e-05/0.1615, allocations: 23.98 kB / 498.7 MB, free: 152 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006327/0.1621, allocations: 345.2 kB / 499.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004628/0.1626, allocations: 330.2 kB / 499.4 MB, free: 15.44 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007995/0.1634, allocations: 0.4972 MB / 499.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.993e-06/0.1634, allocations: 0 / 499.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001532/0.165, allocations: 0.7433 MB / 0.4889 GB, free: 14.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.165, allocations: 4 kB / 0.4889 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.165, allocations: 4 kB / 0.4889 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005047/0.1655, allocations: 141.7 kB / 0.489 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007453/0.1663, allocations: 171.8 kB / 0.4892 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00329/0.1696, allocations: 3.194 MB / 0.4923 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/0.17, allocations: 59.94 kB / 0.4924 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.1701, allocations: 20 kB / 0.4924 GB, free: 10.29 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002089/0.1703, allocations: 216.3 kB / 0.4926 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000194/0.1705, allocations: 98.81 kB / 0.4927 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000183/0.1707, allocations: 95.16 kB / 0.4928 GB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1707, allocations: 4 kB / 0.4928 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1707, allocations: 0 / 0.4928 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.1707, allocations: 7.984 kB / 0.4928 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.1718, allocations: 0.7349 MB / 0.4935 GB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.1718, allocations: 0 / 0.4935 GB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005784/0.1724, allocations: 115.8 kB / 0.4936 GB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.313e-06/0.1724, allocations: 4 kB / 0.4936 GB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.842e-05/0.1725, allocations: 15.98 kB / 0.4936 GB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.1725, allocations: 4 kB / 0.4936 GB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1725, allocations: 0 / 0.4936 GB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.1743, allocations: 1.213 MB / 0.4948 GB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002463/0.1746, allocations: 211.8 kB / 0.495 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.012e-05/0.1747, allocations: 15.98 kB / 0.495 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004845/0.1752, allocations: 35.97 kB / 0.4951 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.1753, allocations: 31.95 kB / 0.4951 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/0.1753, allocations: 19.92 kB / 0.4951 GB, free: 7.395 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005524/0.1759, allocations: 487 kB / 0.4956 GB, free: 6.922 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1759, allocations: 0 / 0.4956 GB, free: 6.922 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001003/0.1769, allocations: 283 kB / 0.4959 GB, free: 6.645 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 (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.0001365/0.177, allocations: 111.7 kB / 0.496 GB, free: 6.523 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003902/0.1809, allocations: 1.864 MB / 0.4978 GB, free: 4.586 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.181, allocations: 0 / 0.4978 GB, free: 4.586 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005566/0.1815, allocations: 279.7 kB / 0.4981 GB, free: 4.312 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.1829, allocations: 227.4 kB / 0.4983 GB, free: 4.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002937/0.1858, allocations: 1.868 MB / 0.5001 GB, free: 2.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005725/0.1864, allocations: 0.9851 MB / 0.5011 GB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.1866, allocations: 47.44 kB / 0.5011 GB, free: 1.121 MB / 382.1 MB Notification: Performance of SimCode: time 1.893e-06/0.1866, allocations: 4 kB / 0.5011 GB, free: 1.117 MB / 382.1 MB Notification: Performance of Templates: time 0.2111/0.3978, allocations: 17.1 MB / 0.5178 GB, free: 41.72 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches