Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001277, allocations: 99.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001613/0.001613, allocations: 206.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002407/0.0002408, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09593/0.09619, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.205/0.3012, allocations: 32.08 MB / 390.3 MB, free: 3.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0183/0.3195, allocations: 13.58 MB / 403.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003128/0.3227, allocations: 65.09 kB / 403.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002208/0.325, allocations: 0.6019 MB / 404.5 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006383/0.3314, allocations: 2.076 MB / 406.6 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0091/0.3405, allocations: 2.932 MB / 409.5 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005612/0.3461, allocations: 2.633 MB / 412.2 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001972/0.3481, allocations: 1.036 MB / 413.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00376/0.3519, allocations: 1.349 MB / 414.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002762/0.3547, allocations: 1.161 MB / 415.7 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003382/0.355, allocations: 89.44 kB / 415.8 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006169/0.3612, allocations: 2.247 MB / 418.1 MB, free: 312 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009959/0.3622, allocations: 0.5181 MB / 418.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009029/0.3631, allocations: 364.8 kB / 418.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006163/0.3693, allocations: 2.927 MB / 421.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3694, allocations: 0 / 421.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.969e-06/0.3694, allocations: 4 kB / 421.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.053e-05/0.3695, allocations: 0 / 421.9 MB, free: 12.48 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006118/0.3756, allocations: 2.1 MB / 424 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.732e-05/0.3757, allocations: 8.031 kB / 424 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004356/0.3761, allocations: 197.9 kB / 424.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006484/0.3768, allocations: 205.7 kB / 424.4 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002029/0.3788, allocations: 1.051 MB / 425.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.009e-05/0.3789, allocations: 98.2 kB / 425.5 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001946/0.3791, allocations: 127.9 kB / 425.6 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003017/0.3821, allocations: 1.932 MB / 427.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.894e-05/0.3822, allocations: 0 / 427.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.3823, allocations: 55.97 kB / 427.6 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001548/0.3825, allocations: 118.3 kB / 427.7 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003294/0.3858, allocations: 1.976 MB / 429.7 MB, free: 4.398 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01208/0.3979, allocations: 7.946 MB / 437.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/0.3998, allocations: 1.168 MB / 438.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00535/0.4051, allocations: 3.463 MB / 442.3 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/0.4052, allocations: 51.52 kB / 442.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=119): time 3.156e-06/0.4052, allocations: 3.938 kB / 442.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=134): time 0.01238/0.4176, allocations: 5.425 MB / 447.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.4178, allocations: 175.5 kB / 447.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/0.4197, allocations: 1.419 MB / 449.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002096/0.4199, allocations: 57.69 kB / 449.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005647/0.4205, allocations: 0.7073 MB / 450.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004436/0.421, allocations: 469.4 kB / 450.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.453e-05/0.4211, allocations: 36 kB / 450.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.4212, allocations: 373.9 kB / 451 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.4225, allocations: 0.7534 MB / 451.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001484/0.424, allocations: 1.179 MB / 452.9 MB, free: 12.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.4253, allocations: 0.8803 MB / 453.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.4253, allocations: 4 kB / 453.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003939/0.4293, allocations: 2.412 MB / 456.2 MB, free: 8.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001922/0.4312, allocations: 4.606 MB / 460.8 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.112e-05/0.4312, allocations: 12 kB / 460.8 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006864/0.4381, allocations: 1.139 MB / 462 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/0.4396, allocations: 347.5 kB / 462.3 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002802/0.4424, allocations: 2.889 MB / 465.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.4441, allocations: 127.9 kB / 465.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001792/0.4443, allocations: 87.91 kB / 465.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.4444, allocations: 4 kB / 465.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003471/0.4478, allocations: 2.124 MB / 467.5 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.4479, allocations: 20.17 kB / 467.6 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005831/0.4537, allocations: 0.8537 MB / 468.4 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/0.4551, allocations: 363.4 kB / 468.8 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002016/0.4572, allocations: 2.644 MB / 471.4 MB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/0.4586, allocations: 128 kB / 471.5 MB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000154/0.4588, allocations: 83.97 kB / 471.6 MB, free: 8.816 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (203): * Single equations (assignments): 199 * 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 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008754/0.4597, allocations: 0.5139 MB / 472.1 MB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/0.4599, allocations: 169.9 kB / 472.3 MB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004192/0.4641, allocations: 2.362 MB / 474.7 MB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.901e-05/0.4642, allocations: 20.14 kB / 474.7 MB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.4642, allocations: 7.984 kB / 474.7 MB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.657e-05/0.4642, allocations: 11.97 kB / 474.7 MB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006433/0.4706, allocations: 4.038 MB / 478.7 MB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.4707, allocations: 4 kB / 478.7 MB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009834/0.4717, allocations: 235.7 kB / 479 MB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00406/0.4757, allocations: 0.9323 MB / 479.9 MB, free: 432 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001562/0.4759, allocations: 43.97 kB / 479.9 MB, free: 388 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002359/0.4783, allocations: 2.837 MB / 482.8 MB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.4783, allocations: 4.031 kB / 482.8 MB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005048/0.4834, allocations: 3.253 MB / 486 MB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006677/0.484, allocations: 278.7 kB / 486.3 MB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004257/0.4845, allocations: 35.98 kB / 486.3 MB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/0.4858, allocations: 107.8 kB / 486.4 MB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002979/0.4861, allocations: 145.1 kB / 486.6 MB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001702/0.4863, allocations: 59.97 kB / 486.6 MB, free: 9.461 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001611/0.4879, allocations: 0.9668 MB / 487.6 MB, free: 8.496 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4879, allocations: 0 / 487.6 MB, free: 8.496 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004188/0.4921, allocations: 1.288 MB / 488.9 MB, free: 7.207 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.level,tank3.medium.T,tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.008918/0.501, allocations: 4.981 MB / 493.9 MB, free: 2.152 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006196/0.5073, allocations: 3.051 MB / 496.9 MB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/0.5073, allocations: 7.906 kB / 496.9 MB, free: 15.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002102/0.5094, allocations: 1.077 MB / 498 MB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00394/0.5134, allocations: 0.7538 MB / 498.8 MB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01258/0.526, allocations: 13.29 MB / 0.5001 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001232/0.5273, allocations: 1.438 MB / 0.5015 GB, free: 14.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002965/0.5303, allocations: 0.7316 MB / 0.5022 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001142/0.5314, allocations: 0.6477 MB / 0.5028 GB, free: 12.75 MB / 430.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5314, allocations: 0 / 0.5028 GB, free: 12.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4022/0.9337, allocations: 61.42 MB / 0.5628 GB, free: 135.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001437/0.9339, allocations: 266 kB / 0.563 GB, free: 134.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.324/5.258, allocations: 2.5 kB / 0.563 GB, free: 134.9 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat