Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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) 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: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 95.58 kB / 16.3 MB, free: 5.992 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.001411/0.001411, allocations: 184.5 kB / 17.2 MB, free: 5.906 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.409/1.409, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003188/0.000319, allocations: 6.125 kB / 300.8 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1172, allocations: 50.43 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03144/0.1487, allocations: 26.89 MB / 378.1 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01901/0.1678, allocations: 12.69 MB / 390.8 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001801/0.1696, allocations: 55.56 kB / 390.9 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001968/0.1716, allocations: 0.5129 MB / 391.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005629/0.1772, allocations: 1.764 MB / 393.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008002/0.1853, allocations: 2.871 MB / 396 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004972/0.1902, allocations: 2.191 MB / 398.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001768/0.192, allocations: 0.8282 MB / 399 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002674/0.1947, allocations: 1.172 MB / 400.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001743/0.1965, allocations: 0.9811 MB / 401.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001973/0.1967, allocations: 72 kB / 401.3 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005279/0.202, allocations: 2.126 MB / 403.4 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008748/0.2029, allocations: 454.7 kB / 403.8 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006565/0.2035, allocations: 309 kB / 404.1 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005876/0.2094, allocations: 2.588 MB / 406.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2095, allocations: 0 / 406.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.709e-06/0.2095, allocations: 0 / 406.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.833e-05/0.2095, allocations: 0 / 406.7 MB, free: 3.996 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004446/0.214, allocations: 1.838 MB / 408.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.214, allocations: 8.031 kB / 408.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002442/0.2143, allocations: 160.3 kB / 408.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005829/0.2149, allocations: 170.2 kB / 408.9 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001644/0.2165, allocations: 0.9178 MB / 409.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.144e-05/0.2166, allocations: 81.92 kB / 409.9 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.2168, allocations: 104 kB / 410 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002774/0.2196, allocations: 1.609 MB / 411.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.2196, allocations: 8 kB / 411.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/0.2197, allocations: 43.98 kB / 411.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001653/0.2199, allocations: 113.8 kB / 411.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002925/0.2228, allocations: 1.632 MB / 413.4 MB, free: 13.14 MB / 350.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.01128/0.2341, allocations: 6.73 MB / 420.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.2357, allocations: 0.9316 MB / 421 MB, free: 5.078 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004313/0.24, allocations: 2.848 MB / 423.9 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.405e-05/0.2401, allocations: 43.22 kB / 423.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 4.058e-06/0.2401, allocations: 0 / 423.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.2302/0.4703, allocations: 3.712 MB / 427.6 MB, free: 26.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.4704, allocations: 191.9 kB / 427.8 MB, free: 26.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/0.4721, allocations: 1.295 MB / 429.1 MB, free: 26.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.4722, allocations: 52.52 kB / 429.2 MB, free: 26.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004344/0.4727, allocations: 0.651 MB / 429.8 MB, free: 25.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002992/0.473, allocations: 322.5 kB / 430.1 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.729e-05/0.4731, allocations: 28.78 kB / 430.2 MB, free: 25.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.4732, allocations: 360.6 kB / 430.5 MB, free: 25.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008766/0.4741, allocations: 0.5612 MB / 431.1 MB, free: 25.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.4752, allocations: 0.9792 MB / 432.1 MB, free: 24.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.4764, allocations: 0.6779 MB / 432.7 MB, free: 24.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.4765, allocations: 3.312 kB / 432.8 MB, free: 24.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003533/0.48, allocations: 1.866 MB / 434.6 MB, free: 24.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007794/0.4808, allocations: 4.639 MB / 439.3 MB, free: 19.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.186e-05/0.4809, allocations: 12.81 kB / 439.3 MB, free: 19.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004985/0.4859, allocations: 0.7847 MB / 440.1 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.4871, allocations: 285.9 kB / 440.3 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001809/0.489, allocations: 2.158 MB / 442.5 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.4904, allocations: 101.7 kB / 442.6 MB, free: 18.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.4905, allocations: 68.06 kB / 442.7 MB, free: 18.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.4905, allocations: 5.156 kB / 442.7 MB, free: 18.28 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003028/0.4936, allocations: 1.659 MB / 444.3 MB, free: 18.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.4936, allocations: 12.03 kB / 444.3 MB, free: 18.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003999/0.4976, allocations: 0.6251 MB / 445 MB, free: 18.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.4987, allocations: 296.8 kB / 445.2 MB, free: 18.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.5001, allocations: 2.008 MB / 447.3 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.5013, allocations: 103.5 kB / 447.4 MB, free: 16.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/0.5015, allocations: 69.83 kB / 447.4 MB, free: 16.61 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[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 (166): * Single equations (assignments): 163 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007494/0.5023, allocations: 474.4 kB / 447.9 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002506/0.5025, allocations: 140.3 kB / 448 MB, free: 16.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002773/0.5053, allocations: 1.521 MB / 449.5 MB, free: 16.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.318e-06/0.5053, allocations: 14.06 kB / 449.6 MB, free: 16.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.5053, allocations: 0 / 449.6 MB, free: 16.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.5054, allocations: 9.281 kB / 449.6 MB, free: 16.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004359/0.5097, allocations: 2.816 MB / 452.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.5098, allocations: 0.5625 kB / 452.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007188/0.5105, allocations: 157.4 kB / 452.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002945/0.5134, allocations: 0.647 MB / 453.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001533/0.5136, allocations: 27.06 kB / 453.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/0.515, allocations: 2.116 MB / 455.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.515, allocations: 3.281 kB / 455.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002923/0.518, allocations: 2.137 MB / 457.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005098/0.5185, allocations: 253.2 kB / 457.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002229/0.5187, allocations: 28.84 kB / 457.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008829/0.5196, allocations: 71.03 kB / 457.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.5198, allocations: 103.4 kB / 457.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.62e-05/0.5199, allocations: 45.34 kB / 458 MB, free: 13.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00134/0.5213, allocations: 0.8889 MB / 458.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5213, allocations: 0 / 458.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00303/0.5243, allocations: 1.115 MB / 460 MB, free: 13.44 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004774/0.5291, allocations: 3.674 MB / 463.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0041/0.5332, allocations: 2.248 MB / 465.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.343e-06/0.5332, allocations: 1.781 kB / 465.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.5344, allocations: 0.6751 MB / 466.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002537/0.5369, allocations: 0.5779 MB / 467.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007613/0.5446, allocations: 12.35 MB / 479.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008523/0.5454, allocations: 1.288 MB / 480.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002172/0.5476, allocations: 0.5656 MB / 481.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000733/0.5484, allocations: 0.5242 MB / 481.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5484, allocations: 0 / 481.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09034/0.6387, allocations: 49.4 MB / 0.5188 GB, free: 14 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002266/0.639, allocations: 271.3 kB / 0.5191 GB, free: 13.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.587/4.226, allocations: 0 / 0.5191 GB, free: 13.63 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat