Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 85.95 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002173/0.002173, allocations: 172.1 kB / 26.39 MB, free: 8 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9275/0.9275, allocations: 158.6 MB / 188.3 MB, free: 2.812 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.213e-06/1.213e-06, allocations: 0 / 252.2 MB, free: 7.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.909e-05/2.03e-05, allocations: 6.25 kB / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02228/0.0223, allocations: 10.98 MB / 263.2 MB, free: 12.22 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.03307, allocations: 6.765 MB / 270 MB, free: 5.438 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001545/0.03462, allocations: 59.44 kB / 270.1 MB, free: 5.379 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.03565, allocations: 421.2 kB / 270.5 MB, free: 4.965 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003424/0.03908, allocations: 1.764 MB / 272.2 MB, free: 3.191 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005717/0.0448, allocations: 2.837 MB / 275.1 MB, free: 356 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005609/0.0504, allocations: 4.063 MB / 279.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001889/0.05229, allocations: 1.095 MB / 280.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004035/0.05633, allocations: 2.074 MB / 282.3 MB, free: 9.078 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002674/0.059, allocations: 1.555 MB / 283.9 MB, free: 7.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003967/0.0594, allocations: 160 kB / 284 MB, free: 7.363 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002382/0.06178, allocations: 0.9713 MB / 285 MB, free: 6.391 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007224/0.0625, allocations: 0.6738 MB / 285.7 MB, free: 5.715 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004109/0.06661, allocations: 0.6353 MB / 286.3 MB, free: 5.078 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004516/0.07113, allocations: 2.29 MB / 288.6 MB, free: 2.781 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.07114, allocations: 0 / 288.6 MB, free: 2.781 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.07114, allocations: 4 kB / 288.6 MB, free: 2.777 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.244e-05/0.07119, allocations: 0 / 288.6 MB, free: 2.777 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.004514/0.0757, allocations: 2.039 MB / 290.6 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.07576, allocations: 11.98 kB / 290.6 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007605/0.07652, allocations: 279.7 kB / 290.9 MB, free: 416 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001839/0.07836, allocations: 0.9832 MB / 291.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002141/0.07857, allocations: 260.2 kB / 292.1 MB, free: 15.1 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002152/0.07878, allocations: 104 kB / 292.2 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00208/0.08086, allocations: 1.448 MB / 293.7 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.08089, allocations: 3.953 kB / 293.7 MB, free: 13.37 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.08099, allocations: 43.97 kB / 293.7 MB, free: 13.33 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.0811, allocations: 109.9 kB / 293.8 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008701/0.08197, allocations: 0.5913 MB / 294.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005289/0.08726, allocations: 3.962 MB / 298.4 MB, free: 8.566 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007014/0.08796, allocations: 0.5721 MB / 299 MB, free: 7.988 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/0.08827, allocations: 246.5 kB / 299.2 MB, free: 7.746 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002378/0.09064, allocations: 1.732 MB / 300.9 MB, free: 5.992 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.09067, allocations: 46.39 kB / 301 MB, free: 5.938 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004462/0.09112, allocations: 191.2 kB / 301.2 MB, free: 5.75 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 2.515e-06/0.09112, allocations: 0 / 301.2 MB, free: 5.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.007419/0.09854, allocations: 2.897 MB / 304.1 MB, free: 2.824 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.0986, allocations: 145.5 kB / 304.2 MB, free: 2.652 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007092/0.09931, allocations: 0.9217 MB / 305.1 MB, free: 1.711 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.512e-05/0.09939, allocations: 45.7 kB / 305.2 MB, free: 1.66 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003588/0.09975, allocations: 0.6941 MB / 305.9 MB, free: 0.957 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/0.1, allocations: 412.5 kB / 306.3 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002967/0.1003, allocations: 305 kB / 306.6 MB, free: 252 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1004, allocations: 480.8 kB / 307 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003069/0.1007, allocations: 211.5 kB / 307.3 MB, free: 15.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005304/0.1012, allocations: 0.7663 MB / 308 MB, free: 14.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.1024, allocations: 0.9401 MB / 309 MB, free: 13.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.1024, allocations: 4 kB / 309 MB, free: 13.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001514/0.1039, allocations: 1.148 MB / 310.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.1039, allocations: 11.94 kB / 310.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.1039, allocations: 12 kB / 310.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002891/0.1068, allocations: 0.9244 MB / 311.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006422/0.1075, allocations: 299.5 kB / 311.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001051/0.1085, allocations: 1.14 MB / 312.5 MB, free: 9.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006778/0.1092, allocations: 47.98 kB / 312.5 MB, free: 9.836 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.52e-05/0.1093, allocations: 59.95 kB / 312.6 MB, free: 9.777 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005352/0.1098, allocations: 350.7 kB / 312.9 MB, free: 9.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005453/0.1104, allocations: 0.7975 MB / 313.7 MB, free: 8.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008788/0.1113, allocations: 0.9665 MB / 314.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.22e-06/0.1113, allocations: 0 / 314.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001744/0.113, allocations: 1.124 MB / 315.8 MB, free: 6.113 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.113, allocations: 8 kB / 315.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.113, allocations: 12 kB / 315.8 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002511/0.1155, allocations: 0.7921 MB / 316.6 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006082/0.1161, allocations: 299.5 kB / 316.9 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008531/0.117, allocations: 1.077 MB / 318 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006798/0.1177, allocations: 63.91 kB / 318.1 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.1e-05/0.1178, allocations: 55.95 kB / 318.1 MB, free: 3.777 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0003387/0.1181, allocations: 359.7 kB / 318.5 MB, free: 3.418 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.1183, allocations: 167.2 kB / 318.6 MB, free: 3.254 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001812/0.1201, allocations: 1.091 MB / 319.7 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.1202, allocations: 15.98 kB / 319.7 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.1202, allocations: 0 / 319.7 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.1202, allocations: 3.984 kB / 319.8 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002401/0.1226, allocations: 1.775 MB / 321.5 MB, free: 324 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1226, allocations: 0 / 321.5 MB, free: 324 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004596/0.123, allocations: 183.8 kB / 321.7 MB, free: 140 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001382/0.1244, allocations: 0.5846 MB / 322.3 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.072e-05/0.1245, allocations: 31.92 kB / 322.3 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000923/0.1254, allocations: 1.184 MB / 323.5 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1254, allocations: 0 / 323.5 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.1269, allocations: 1.264 MB / 324.8 MB, free: 13.01 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000415/0.1273, allocations: 254.9 kB / 325 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000151/0.1275, allocations: 27.98 kB / 325 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.1279, allocations: 43.98 kB / 325.1 MB, free: 12.69 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.1281, allocations: 97.06 kB / 325.2 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.68e-05/0.1281, allocations: 35.97 kB / 325.2 MB, free: 12.56 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004183/0.1285, allocations: 0.5146 MB / 325.7 MB, free: 12.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1285, allocations: 4 kB / 325.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001685/0.1302, allocations: 0.8701 MB / 326.6 MB, free: 11.16 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007489/0.131, allocations: 465.8 kB / 327.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002521/0.1335, allocations: 1.427 MB / 328.5 MB, free: 9.273 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.1335, allocations: 4 kB / 328.5 MB, free: 9.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000666/0.1342, allocations: 450.3 kB / 328.9 MB, free: 8.828 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/0.1359, allocations: 0.6303 MB / 329.6 MB, free: 8.203 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003261/0.1392, allocations: 2.477 MB / 332 MB, free: 5.684 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.1394, allocations: 344.7 kB / 332.4 MB, free: 5.328 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008906/0.1403, allocations: 303.3 kB / 332.7 MB, free: 5.027 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009552/0.1413, allocations: 0.5759 MB / 333.2 MB, free: 4.449 MB / 314.7 MB Notification: Performance of SimCode: time 2.014e-06/0.1413, allocations: 0 / 333.2 MB, free: 4.449 MB / 314.7 MB Notification: Performance of Templates: time 0.1449/0.2862, allocations: 38.59 MB / 371.8 MB, free: 79.29 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.056920357979834]