Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 91.5 kB / 21.19 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.02/1.02, allocations: 177 MB / 204.8 MB, free: 5.238 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.395e-06/2.395e-06, allocations: 0 / 272.9 MB, free: 1.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.347e-05/3.587e-05, allocations: 2.312 kB / 272.9 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.009881/0.009917, allocations: 8.78 MB / 281.7 MB, free: 8.461 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006963/0.01688, allocations: 6.1 MB / 287.8 MB, free: 2.348 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004813/0.01736, allocations: 39.62 kB / 287.8 MB, free: 2.309 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005945/0.01796, allocations: 266.1 kB / 288.1 MB, free: 2.047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002205/0.02016, allocations: 1.232 MB / 289.3 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1767/0.1968, allocations: 2.142 MB / 291.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003395/0.2002, allocations: 2.617 MB / 294.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001068/0.2013, allocations: 0.5997 MB / 294.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002224/0.2035, allocations: 1.246 MB / 295.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001516/0.205, allocations: 0.9653 MB / 296.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002412/0.2053, allocations: 92.41 kB / 297 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001851/0.2071, allocations: 0.9637 MB / 298 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003295/0.2074, allocations: 400.2 kB / 298.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004944/0.2079, allocations: 390.4 kB / 298.7 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00212/0.2101, allocations: 1.723 MB / 300.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2101, allocations: 0 / 300.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2101, allocations: 3.531 kB / 300.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.2101, allocations: 0 / 300.4 MB, free: 14.96 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002164/0.2122, allocations: 1.46 MB / 301.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2123, allocations: 13.27 kB / 301.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003937/0.2127, allocations: 192.7 kB / 302.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007762/0.2135, allocations: 0.676 MB / 302.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.884e-05/0.2135, allocations: 53.77 kB / 302.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.2136, allocations: 69.14 kB / 302.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009766/0.2146, allocations: 1.087 MB / 304 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.2146, allocations: 4.719 kB / 304 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.805e-05/0.2147, allocations: 31.7 kB / 304 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.38e-05/0.2147, allocations: 67.05 kB / 304.1 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007494/0.2155, allocations: 461.5 kB / 304.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003088/0.2186, allocations: 3.475 MB / 308 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004546/0.219, allocations: 306.7 kB / 308.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.2192, allocations: 124.8 kB / 308.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00105/0.2203, allocations: 0.9405 MB / 309.4 MB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.2203, allocations: 44.86 kB / 309.4 MB, free: 9.266 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.723e-06/0.2203, allocations: 0 / 309.4 MB, free: 9.266 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002007/0.2223, allocations: 1.133 MB / 310.6 MB, free: 8.617 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.2223, allocations: 161.8 kB / 310.7 MB, free: 8.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005383/0.2229, allocations: 0.7458 MB / 311.5 MB, free: 7.957 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.443e-05/0.2229, allocations: 40.02 kB / 311.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002115/0.2231, allocations: 0.5419 MB / 312 MB, free: 7.434 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.226e-05/0.2232, allocations: 177.8 kB / 312.2 MB, free: 7.281 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.2234, allocations: 184.8 kB / 312.4 MB, free: 7.168 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2235, allocations: 0.567 MB / 313 MB, free: 6.613 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002275/0.2237, allocations: 130.8 kB / 313.1 MB, free: 6.559 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00037/0.2241, allocations: 0.6473 MB / 313.7 MB, free: 5.828 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005333/0.2246, allocations: 0.6571 MB / 314.4 MB, free: 5.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.2246, allocations: 4.938 kB / 314.4 MB, free: 5.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000844/0.2255, allocations: 0.7298 MB / 315.1 MB, free: 4.691 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2255, allocations: 15.98 kB / 315.1 MB, free: 4.676 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.2255, allocations: 8 kB / 315.2 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/0.2266, allocations: 311.8 kB / 315.5 MB, free: 4.355 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003588/0.227, allocations: 177.7 kB / 315.6 MB, free: 4.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005108/0.2275, allocations: 1.708 MB / 317.3 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.2278, allocations: 35.98 kB / 317.4 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.897e-05/0.2278, allocations: 47.98 kB / 317.4 MB, free: 2.352 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000275/0.2281, allocations: 256 kB / 317.7 MB, free: 2.098 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000305/0.2284, allocations: 0.6598 MB / 318.3 MB, free: 1.227 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004631/0.2289, allocations: 0.6644 MB / 319 MB, free: 436 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.166e-06/0.2289, allocations: 4 kB / 319 MB, free: 432 kB / 266.7 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.0008163/0.2297, allocations: 0.7192 MB / 319.7 MB, free: 15.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.2297, allocations: 8.906 kB / 319.7 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.2297, allocations: 8 kB / 319.7 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009339/0.2306, allocations: 287 kB / 320 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003346/0.231, allocations: 177 kB / 320.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007109/0.2317, allocations: 1.691 MB / 321.9 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/0.232, allocations: 47.98 kB / 321.9 MB, free: 13.49 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.346e-05/0.232, allocations: 39.98 kB / 322 MB, free: 13.45 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001756/0.2322, allocations: 331.1 kB / 322.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.2323, allocations: 99.48 kB / 322.4 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007373/0.2331, allocations: 0.4953 MB / 322.9 MB, free: 12.53 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.2331, allocations: 8 kB / 322.9 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2331, allocations: 0 / 322.9 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2331, allocations: 3.984 kB / 322.9 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.2343, allocations: 1.104 MB / 324 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.2343, allocations: 0 / 324 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.2345, allocations: 82.62 kB / 324.1 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006107/0.2351, allocations: 231.9 kB / 324.3 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.2352, allocations: 15.98 kB / 324.3 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000664/0.2358, allocations: 1.704 MB / 326 MB, free: 9.293 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2358, allocations: 0 / 326 MB, free: 9.293 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007148/0.2365, allocations: 0.6691 MB / 326.7 MB, free: 8.594 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.608e-05/0.2366, allocations: 87.19 kB / 326.8 MB, free: 8.512 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.136e-05/0.2367, allocations: 19.98 kB / 326.8 MB, free: 8.492 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.2369, allocations: 25.05 kB / 326.8 MB, free: 8.469 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.984e-05/0.237, allocations: 44.42 kB / 326.9 MB, free: 8.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.287e-05/0.237, allocations: 23.98 kB / 326.9 MB, free: 8.398 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003639/0.2374, allocations: 466.9 kB / 327.3 MB, free: 7.949 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2374, allocations: 0 / 327.3 MB, free: 7.949 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001155/0.2386, allocations: 0.6084 MB / 328 MB, free: 7.34 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006728/0.2392, allocations: 454 kB / 328.4 MB, free: 6.914 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.2404, allocations: 0.7862 MB / 329.2 MB, free: 6.195 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2404, allocations: 0.6094 kB / 329.2 MB, free: 6.195 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002744/0.2407, allocations: 203.4 kB / 329.4 MB, free: 6.004 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008779/0.2416, allocations: 363.1 kB / 329.7 MB, free: 5.688 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.2436, allocations: 1.442 MB / 331.2 MB, free: 4.223 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001355/0.2437, allocations: 208.2 kB / 331.4 MB, free: 3.996 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000548/0.2443, allocations: 306 kB / 331.7 MB, free: 3.703 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.2444, allocations: 68.5 kB / 331.7 MB, free: 3.637 MB / 282.7 MB Notification: Performance of SimCode: time 7.31e-07/0.2444, allocations: 0 / 331.7 MB, free: 3.637 MB / 282.7 MB Notification: Performance of Templates: time 0.02153/0.2659, allocations: 19.56 MB / 351.3 MB, free: 404 kB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.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: 3.721045312937349]