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.002367/0.002366, allocations: 181.2 kB / 13.66 MB, free: 1.664 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.155/2.155, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001088/0.001088, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.511e-05/3.527e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0931/0.09316, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.032/1.125, allocations: 326.7 MB / 0.6796 GB, free: 15.78 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/1.125, allocations: 88.52 kB / 0.6797 GB, free: 15.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.677/2.802, allocations: 325.1 MB / 0.9972 GB, free: 30.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.405e-06/2.802, allocations: 0 / 0.9972 GB, free: 30.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001849/2.802, allocations: 47.91 kB / 0.9972 GB, free: 30.86 MB / 426.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.008448/2.811, allocations: 2.039 MB / 0.9992 GB, free: 28.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/2.811, allocations: 12.03 kB / 0.9992 GB, free: 28.76 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00068/2.811, allocations: 185.9 kB / 0.9994 GB, free: 28.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001062/2.813, allocations: 201.8 kB / 0.9996 GB, free: 28.37 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00404/2.817, allocations: 1.192 MB / 1.001 GB, free: 27.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/2.817, allocations: 90.28 kB / 1.001 GB, free: 27.03 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003704/2.817, allocations: 124 kB / 1.001 GB, free: 26.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004699/2.822, allocations: 1.92 MB / 1.003 GB, free: 24.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.9e-05/2.822, allocations: 4 kB / 1.003 GB, free: 24.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000269/2.822, allocations: 51.97 kB / 1.003 GB, free: 24.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002385/2.822, allocations: 118.2 kB / 1.003 GB, free: 24.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004845/2.827, allocations: 1.934 MB / 1.005 GB, free: 22.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01779/2.845, allocations: 7.675 MB / 1.012 GB, free: 14.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002739/2.848, allocations: 1.147 MB / 1.013 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/2.85, allocations: 0.7394 MB / 1.014 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007348/2.857, allocations: 3.458 MB / 1.018 GB, free: 9.047 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/2.857, allocations: 51.55 kB / 1.018 GB, free: 8.988 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 3.717e-06/2.857, allocations: 0 / 1.018 GB, free: 8.988 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.01421/2.871, allocations: 4.129 MB / 1.022 GB, free: 4.805 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.888e-05/2.871, allocations: 167.5 kB / 1.022 GB, free: 4.605 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002395/2.874, allocations: 1.239 MB / 1.023 GB, free: 3.359 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003129/2.874, allocations: 65.69 kB / 1.023 GB, free: 3.289 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005215/2.875, allocations: 0.6655 MB / 1.024 GB, free: 2.617 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004796/2.875, allocations: 465.4 kB / 1.024 GB, free: 2.156 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/2.875, allocations: 36 kB / 1.024 GB, free: 2.121 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/2.876, allocations: 378.8 kB / 1.025 GB, free: 1.742 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001852/2.877, allocations: 0.738 MB / 1.025 GB, free: 1.004 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3068/3.184, allocations: 1.132 MB / 1.026 GB, free: 50.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002882/3.187, allocations: 0.8642 MB / 1.027 GB, free: 50.04 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.921e-05/3.187, allocations: 4.641 kB / 1.027 GB, free: 50.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.006976/3.194, allocations: 2.258 MB / 1.029 GB, free: 49.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009564/3.195, allocations: 4.27 MB / 1.034 GB, free: 45.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.956e-05/3.195, allocations: 11.22 kB / 1.034 GB, free: 45.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009739/3.205, allocations: 0.9448 MB / 1.035 GB, free: 45.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/3.208, allocations: 344 kB / 1.035 GB, free: 45.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003893/3.212, allocations: 2.903 MB / 1.038 GB, free: 43.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003246/3.215, allocations: 132.9 kB / 1.038 GB, free: 43.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000394/3.216, allocations: 80.19 kB / 1.038 GB, free: 43.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/3.216, allocations: 3.031 kB / 1.038 GB, free: 43.38 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005364/3.221, allocations: 2.071 MB / 1.04 GB, free: 43.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.391e-05/3.221, allocations: 11.59 kB / 1.04 GB, free: 43.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007188/3.228, allocations: 0.6585 MB / 1.041 GB, free: 43.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002927/3.231, allocations: 358.6 kB / 1.041 GB, free: 43.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002715/3.234, allocations: 2.617 MB / 1.044 GB, free: 41.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002257/3.236, allocations: 131.8 kB / 1.044 GB, free: 41.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000269/3.237, allocations: 76.03 kB / 1.044 GB, free: 41.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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.0007308/3.237, allocations: 215.4 kB / 1.044 GB, free: 41.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005629/3.238, allocations: 176.2 kB / 1.044 GB, free: 41.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007352/3.245, allocations: 2.323 MB / 1.046 GB, free: 40.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.61e-05/3.245, allocations: 16.64 kB / 1.046 GB, free: 40.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/3.246, allocations: 5.656 kB / 1.046 GB, free: 40.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.625e-05/3.246, allocations: 7.547 kB / 1.046 GB, free: 40.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/3.257, allocations: 3.991 MB / 1.05 GB, free: 40.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/3.257, allocations: 0 / 1.05 GB, free: 40.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002099/3.259, allocations: 240.7 kB / 1.051 GB, free: 40.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00684/3.266, allocations: 0.8702 MB / 1.051 GB, free: 40.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004298/3.267, allocations: 44.02 kB / 1.051 GB, free: 40.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003311/3.27, allocations: 2.838 MB / 1.054 GB, free: 38.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.862e-06/3.27, allocations: 7.125 kB / 1.054 GB, free: 38.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008142/3.278, allocations: 3.2 MB / 1.057 GB, free: 37.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000867/3.279, allocations: 284.7 kB / 1.058 GB, free: 37.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004772/3.28, allocations: 35.77 kB / 1.058 GB, free: 37.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002032/3.282, allocations: 116.7 kB / 1.058 GB, free: 37.76 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004577/3.282, allocations: 154.7 kB / 1.058 GB, free: 37.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002226/3.282, allocations: 57.25 kB / 1.058 GB, free: 37.75 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001982/3.284, allocations: 0.9586 MB / 1.059 GB, free: 37.64 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.71e-07/3.284, allocations: 0 / 1.059 GB, free: 37.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0061/3.291, allocations: 1.383 MB / 1.06 GB, free: 37.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * 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]) * 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.01178/3.302, allocations: 5.284 MB / 1.065 GB, free: 36.22 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009162/3.312, allocations: 2.968 MB / 1.068 GB, free: 36.17 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/3.312, allocations: 2.812 kB / 1.068 GB, free: 36.17 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003131/3.315, allocations: 1.056 MB / 1.069 GB, free: 36.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006405/3.321, allocations: 0.7442 MB / 1.07 GB, free: 36.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/3.332, allocations: 3.571 MB / 1.074 GB, free: 35.44 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/3.333, allocations: 1.426 MB / 1.075 GB, free: 34.72 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001787/3.335, allocations: 0.6712 MB / 1.076 GB, free: 34.71 MB / 426.7 MB Notification: Performance of SimCode: time 2.695e-06/3.335, allocations: 0 / 1.076 GB, free: 34.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.16/7.495, allocations: 67.57 MB / 1.142 GB, free: 20.95 MB / 426.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