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.001174/0.001174, allocations: 106.3 kB / 17.98 MB, free: 5.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.001511/0.001511, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.319/1.319, allocations: 222.9 MB / 242.6 MB, free: 15.44 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.1942/0.1942, allocations: 44.17 MB / 336.9 MB, free: 2.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 60.72 kB / 408.5 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1113, allocations: 60.83 MB / 469.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006128/0.1175, allocations: 4.355 MB / 473.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003314/0.1208, allocations: 1.511 MB / 475.2 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001077/0.1219, allocations: 35.81 kB / 475.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006551/0.1227, allocations: 114.9 kB / 475.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009621/0.1236, allocations: 130.8 kB / 475.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001549/0.1252, allocations: 0.5381 MB / 476 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001397/0.1266, allocations: 1.031 MB / 477.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008196/0.1274, allocations: 439.1 kB / 477.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005576/0.128, allocations: 358.3 kB / 477.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005291/0.1286, allocations: 389.7 kB / 478.2 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002409/0.1288, allocations: 88 kB / 478.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001769/0.129, allocations: 88 kB / 478.4 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002025/0.1292, allocations: 199.1 kB / 478.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004631/0.1297, allocations: 445.2 kB / 479 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008125/0.1305, allocations: 0.7526 MB / 479.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1305, allocations: 4 kB / 479.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1305, allocations: 0 / 479.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.214e-05/0.1306, allocations: 0 / 479.8 MB, free: 4.258 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.00245/0.133, allocations: 1.28 MB / 481.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.1331, allocations: 12.03 kB / 481.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002303/0.1333, allocations: 115.5 kB / 481.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000954/0.1343, allocations: 0.6203 MB / 481.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.816e-05/0.1343, allocations: 49.69 kB / 481.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.1345, allocations: 64.38 kB / 481.9 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.1359, allocations: 0.743 MB / 482.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.1359, allocations: 0 / 482.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.553e-05/0.136, allocations: 28 kB / 482.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.136, allocations: 19.94 kB / 482.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.1372, allocations: 0.5347 MB / 483.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0038/0.141, allocations: 2.722 MB / 486 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.1424, allocations: 0.6787 MB / 486.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005602/0.143, allocations: 290.1 kB / 486.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.075e-05/0.1431, allocations: 8 kB / 486.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.1431, allocations: 42.5 kB / 487 MB, free: 12.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.735e-06/0.1431, allocations: 4 kB / 487 MB, free: 12.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001847/0.145, allocations: 0.7891 MB / 487.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.1451, allocations: 243.2 kB / 488 MB, free: 11.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008887/0.146, allocations: 0.7006 MB / 488.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.293e-05/0.1461, allocations: 37.7 kB / 488.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000322/0.1464, allocations: 432.5 kB / 489.2 MB, free: 10.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.1466, allocations: 185.3 kB / 489.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/0.1468, allocations: 114.1 kB / 489.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1469, allocations: 326 kB / 489.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005103/0.1474, allocations: 227 kB / 490 MB, free: 9.641 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005817/0.148, allocations: 368 kB / 490.4 MB, free: 9.227 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.149, allocations: 0.5558 MB / 490.9 MB, free: 8.637 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.149, allocations: 0 / 490.9 MB, free: 8.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002673/0.1517, allocations: 1.044 MB / 492 MB, free: 7.574 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.1517, allocations: 7.984 kB / 492 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.1518, allocations: 4 kB / 492 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.153, allocations: 315.4 kB / 492.3 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005542/0.1536, allocations: 131.8 kB / 492.4 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008979/0.1626, allocations: 7.255 MB / 499.7 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006357/0.1632, allocations: 83.41 kB / 499.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.65e-05/0.1633, allocations: 20 kB / 499.8 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006913/0.164, allocations: 345.2 kB / 0.4884 GB, free: 14.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000525/0.1646, allocations: 328.1 kB / 0.4887 GB, free: 14.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008652/0.1655, allocations: 0.4972 MB / 0.4892 GB, free: 13.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.046e-06/0.1655, allocations: 0 / 0.4892 GB, free: 13.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001653/0.1671, allocations: 0.7428 MB / 0.4899 GB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.1672, allocations: 7.984 kB / 0.4899 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.1672, allocations: 8.281 kB / 0.4899 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005124/0.1677, allocations: 133.6 kB / 0.4901 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007301/0.1684, allocations: 171.8 kB / 0.4902 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003684/0.1721, allocations: 3.43 MB / 0.4936 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005847/0.1727, allocations: 67.53 kB / 0.4936 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.804e-05/0.1728, allocations: 23.94 kB / 0.4937 GB, free: 9.074 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.0002754/0.1731, allocations: 212.1 kB / 0.4939 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000302/0.1734, allocations: 90.88 kB / 0.4939 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002304/0.1737, allocations: 103.2 kB / 0.494 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.1737, allocations: 4 kB / 0.4941 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.1737, allocations: 4 kB / 0.4941 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.1737, allocations: 3.984 kB / 0.4941 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.175, allocations: 0.7427 MB / 0.4948 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.175, allocations: 0 / 0.4948 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005763/0.1756, allocations: 111.8 kB / 0.4949 GB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/0.1756, allocations: 4 kB / 0.4949 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.57e-05/0.1757, allocations: 16 kB / 0.4949 GB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.1757, allocations: 4 kB / 0.4949 GB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1757, allocations: 0 / 0.4949 GB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/0.1776, allocations: 1.205 MB / 0.4961 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002591/0.1779, allocations: 219.8 kB / 0.4963 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.178, allocations: 12 kB / 0.4963 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004999/0.1785, allocations: 39.95 kB / 0.4963 GB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.1786, allocations: 35.89 kB / 0.4964 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.271e-05/0.1786, allocations: 16 kB / 0.4964 GB, free: 6.176 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005586/0.1792, allocations: 479 kB / 0.4969 GB, free: 5.711 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1792, allocations: 0 / 0.4969 GB, free: 5.711 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001013/0.1802, allocations: 283.1 kB / 0.4971 GB, free: 5.434 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.0001424/0.1804, allocations: 119.6 kB / 0.4972 GB, free: 5.305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003832/0.1842, allocations: 1.889 MB / 0.4991 GB, free: 3.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.1842, allocations: 0 / 0.4991 GB, free: 3.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005795/0.1848, allocations: 281.9 kB / 0.4994 GB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/0.1863, allocations: 245.9 kB / 0.4996 GB, free: 2.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/0.189, allocations: 1.86 MB / 0.5014 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1802/0.3692, allocations: 0.9822 MB / 0.5024 GB, free: 48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.3696, allocations: 51.62 kB / 0.5024 GB, free: 48 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3696, allocations: 0 / 0.5024 GB, free: 48 MB / 382.1 MB Notification: Performance of Templates: time 0.0239/0.3935, allocations: 17.11 MB / 0.5191 GB, free: 42.14 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