Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.002282/0.002288, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.134/2.134, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001098, allocations: 98.84 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003931/0.000393, allocations: 11.98 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09634/0.09677, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.3087/0.4056, allocations: 32.01 MB / 406.7 MB, free: 5.293 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02852/0.4341, allocations: 13.57 MB / 420.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002816/0.437, allocations: 64.28 kB / 420.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003241/0.4403, allocations: 0.6046 MB / 420.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009474/0.4498, allocations: 2.065 MB / 423 MB, free: 9.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01304/0.4629, allocations: 2.933 MB / 425.9 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006397/0.4693, allocations: 2.641 MB / 428.5 MB, free: 5.852 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002526/0.4719, allocations: 1.04 MB / 429.6 MB, free: 5.191 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004329/0.4762, allocations: 1.346 MB / 430.9 MB, free: 4.465 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003576/0.4799, allocations: 1.162 MB / 432.1 MB, free: 3.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007967/0.4807, allocations: 88 kB / 432.2 MB, free: 3.504 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008138/0.4889, allocations: 2.22 MB / 434.4 MB, free: 1.281 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001505/0.4904, allocations: 0.5181 MB / 434.9 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.4915, allocations: 360.8 kB / 435.2 MB, free: 412 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008013/0.4996, allocations: 2.927 MB / 438.2 MB, free: 13.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4996, allocations: 0 / 438.2 MB, free: 13.47 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4996, allocations: 4 kB / 438.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.32e-05/0.4997, allocations: 0 / 438.2 MB, free: 13.46 MB / 314.7 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.007955/0.5077, allocations: 2.104 MB / 440.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.773e-05/0.5078, allocations: 8.031 kB / 440.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000759/0.5085, allocations: 185.9 kB / 440.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001212/0.5098, allocations: 205.7 kB / 440.7 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003373/0.5132, allocations: 1.044 MB / 441.7 MB, free: 9.801 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.5134, allocations: 102.2 kB / 441.8 MB, free: 9.699 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000552/0.5139, allocations: 119.9 kB / 441.9 MB, free: 9.582 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00584/0.5198, allocations: 1.936 MB / 443.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.492e-05/0.5199, allocations: 4 kB / 443.9 MB, free: 7.547 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003394/0.5202, allocations: 51.97 kB / 443.9 MB, free: 7.496 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003004/0.5205, allocations: 118.3 kB / 444 MB, free: 7.379 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006696/0.5273, allocations: 1.984 MB / 446 MB, free: 5.387 MB / 314.7 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.02222/0.5495, allocations: 7.946 MB / 454 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003734/0.5533, allocations: 1.176 MB / 455.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009933/0.5633, allocations: 3.455 MB / 458.6 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.088e-05/0.5634, allocations: 55.56 kB / 458.7 MB, free: 8.004 MB / 330.7 MB Notification: Performance of pre-optimization done (n=119): time 4.529e-06/0.5634, allocations: 0 / 458.7 MB, free: 8.004 MB / 330.7 MB Notification: Performance of matching and sorting (n=134): time 0.02328/0.5867, allocations: 5.424 MB / 464.1 MB, free: 2.449 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.5869, allocations: 175.5 kB / 464.3 MB, free: 2.242 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003098/0.59, allocations: 1.411 MB / 465.7 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004613/0.5905, allocations: 61.69 kB / 465.7 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008169/0.5913, allocations: 0.6656 MB / 466.4 MB, free: 84 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008745/0.5922, allocations: 481.2 kB / 466.9 MB, free: 15.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002378/0.5925, allocations: 36 kB / 466.9 MB, free: 15.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000261/0.5927, allocations: 378.8 kB / 467.3 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002726/0.5955, allocations: 0.7612 MB / 468 MB, free: 14.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003165/0.5987, allocations: 1.176 MB / 469.2 MB, free: 13.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00283/0.6015, allocations: 0.8803 MB / 470.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/0.6016, allocations: 4 kB / 470.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.00763/0.6092, allocations: 2.304 MB / 472.4 MB, free: 9.875 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002316/0.6116, allocations: 4.539 MB / 476.9 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.254e-05/0.6117, allocations: 12 kB / 476.9 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01378/0.6255, allocations: 1.135 MB / 478.1 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002943/0.6285, allocations: 351.5 kB / 478.4 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004613/0.6331, allocations: 2.892 MB / 481.3 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002787/0.636, allocations: 127.8 kB / 481.4 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004042/0.6364, allocations: 79.97 kB / 481.5 MB, free: 288 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.6364, allocations: 4 kB / 481.5 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007093/0.6435, allocations: 2.131 MB / 483.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.875e-05/0.6436, allocations: 12.5 kB / 483.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01138/0.655, allocations: 0.8428 MB / 484.5 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002906/0.658, allocations: 363.5 kB / 484.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003499/0.6615, allocations: 2.627 MB / 487.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00202/0.6636, allocations: 127.9 kB / 487.6 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002544/0.6638, allocations: 79.97 kB / 487.7 MB, free: 9.977 MB / 362.7 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.001466/0.6653, allocations: 0.5217 MB / 488.2 MB, free: 9.441 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00051/0.6658, allocations: 166 kB / 488.4 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007745/0.6736, allocations: 2.356 MB / 490.7 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-05/0.6737, allocations: 16 kB / 490.7 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.6737, allocations: 0 / 490.7 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.235e-05/0.6737, allocations: 11.97 kB / 490.8 MB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.6856, allocations: 4.038 MB / 494.8 MB, free: 2.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/0.6857, allocations: 4 kB / 494.8 MB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002051/0.6878, allocations: 235.7 kB / 495 MB, free: 2.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007282/0.6951, allocations: 0.9284 MB / 496 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003099/0.6954, allocations: 43.97 kB / 496 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003885/0.6993, allocations: 2.849 MB / 498.8 MB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.6993, allocations: 0 / 498.8 MB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009195/0.7085, allocations: 3.246 MB / 0.4903 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008366/0.7094, allocations: 283 kB / 0.4906 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004988/0.7099, allocations: 43.98 kB / 0.4906 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001928/0.7119, allocations: 103.8 kB / 0.4907 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004913/0.7124, allocations: 149.1 kB / 0.4909 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002309/0.7126, allocations: 59.97 kB / 0.4909 GB, free: 10.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002183/0.7148, allocations: 0.9707 MB / 0.4919 GB, free: 9.613 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7149, allocations: 0 / 0.4919 GB, free: 9.613 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005001/0.7199, allocations: 1.273 MB / 0.4931 GB, free: 8.34 MB / 378.7 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.01253/0.7324, allocations: 4.99 MB / 0.498 GB, free: 3.262 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01038/0.7428, allocations: 3.043 MB / 0.501 GB, free: 236 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/0.7429, allocations: 0 / 0.501 GB, free: 236 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003671/0.7466, allocations: 1.089 MB / 0.502 GB, free: 15.14 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00609/0.7527, allocations: 0.7308 MB / 0.5027 GB, free: 14.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01716/0.7699, allocations: 13.35 MB / 0.5158 GB, free: 0.625 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/0.7715, allocations: 1.427 MB / 0.5172 GB, free: 15.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001888/0.7734, allocations: 0.6672 MB / 0.5178 GB, free: 14.5 MB / 410.7 MB Notification: Performance of SimCode: time 3.376e-06/0.7734, allocations: 0 / 0.5178 GB, free: 14.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.19/4.964, allocations: 66.01 MB / 0.5823 GB, free: 99.79 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat