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.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.001499/0.001499, allocations: 181.6 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.01/2.01, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001115/0.001114, allocations: 94.62 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.059e-05/3.063e-05, allocations: 7.984 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09321/0.09326, allocations: 47.56 MB / 369.2 MB, free: 2.125 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.023/1.116, allocations: 324.1 MB / 0.6771 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/1.117, allocations: 90.31 kB / 0.6772 GB, free: 0.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.659/2.776, allocations: 282.1 MB / 0.9527 GB, free: 69.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.164e-06/2.776, allocations: 3.531 kB / 0.9527 GB, free: 69.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000186/2.776, allocations: 39.39 kB / 0.9527 GB, free: 69.14 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.00699/2.783, allocations: 1.796 MB / 0.9545 GB, free: 68.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/2.783, allocations: 9.188 kB / 0.9545 GB, free: 68.04 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006147/2.784, allocations: 154.5 kB / 0.9546 GB, free: 67.95 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/2.785, allocations: 169.8 kB / 0.9548 GB, free: 67.87 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003782/2.788, allocations: 1.033 MB / 0.9558 GB, free: 67.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/2.789, allocations: 77.91 kB / 0.9559 GB, free: 67.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003986/2.789, allocations: 100.1 kB / 0.956 GB, free: 67.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004176/2.793, allocations: 1.604 MB / 0.9575 GB, free: 66.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.621e-05/2.793, allocations: 7.891 kB / 0.9575 GB, free: 66.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002475/2.794, allocations: 49.44 kB / 0.9576 GB, free: 66.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002088/2.794, allocations: 93.31 kB / 0.9577 GB, free: 66.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004394/2.798, allocations: 1.585 MB / 0.9592 GB, free: 65.44 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01676/2.815, allocations: 6.542 MB / 0.9656 GB, free: 59.35 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002423/2.817, allocations: 0.9064 MB / 0.9665 GB, free: 58.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/2.819, allocations: 0.5419 MB / 0.967 GB, free: 57.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006064/2.825, allocations: 2.917 MB / 0.9699 GB, free: 54.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/2.825, allocations: 53.97 kB / 0.9699 GB, free: 54.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 3.326e-06/2.825, allocations: 0 / 0.9699 GB, free: 54.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.01029/2.835, allocations: 2.818 MB / 0.9727 GB, free: 51.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.093e-05/2.835, allocations: 192.7 kB / 0.9729 GB, free: 51.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00233/2.838, allocations: 1.13 MB / 0.974 GB, free: 50.47 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003634/2.838, allocations: 52.77 kB / 0.974 GB, free: 50.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005438/2.839, allocations: 0.6295 MB / 0.9746 GB, free: 49.79 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005067/2.839, allocations: 311.5 kB / 0.9749 GB, free: 49.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/2.839, allocations: 24 kB / 0.975 GB, free: 49.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/2.84, allocations: 366.8 kB / 0.9753 GB, free: 49.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/2.841, allocations: 0.5466 MB / 0.9758 GB, free: 48.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001788/2.843, allocations: 0.947 MB / 0.9768 GB, free: 47.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/2.845, allocations: 0.6588 MB / 0.9774 GB, free: 46.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.358e-05/2.845, allocations: 4 kB / 0.9774 GB, free: 46.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005162/2.85, allocations: 1.731 MB / 0.9791 GB, free: 45.06 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009262/2.851, allocations: 4.355 MB / 0.9834 GB, free: 40.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.215e-05/2.851, allocations: 12 kB / 0.9834 GB, free: 40.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006656/2.858, allocations: 0.6551 MB / 0.984 GB, free: 39.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002243/2.86, allocations: 279.5 kB / 0.9843 GB, free: 39.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002573/2.863, allocations: 2.167 MB / 0.9864 GB, free: 37.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002489/2.865, allocations: 107.6 kB / 0.9865 GB, free: 37.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002579/2.865, allocations: 63.98 kB / 0.9866 GB, free: 37.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/2.865, allocations: 4 kB / 0.9866 GB, free: 37.07 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004139/2.87, allocations: 1.6 MB / 0.9881 GB, free: 35.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.967e-05/2.87, allocations: 8 kB / 0.9881 GB, free: 35.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005309/2.875, allocations: 497.2 kB / 0.9886 GB, free: 34.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002234/2.877, allocations: 291.5 kB / 0.9889 GB, free: 34.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/2.879, allocations: 1.984 MB / 0.9908 GB, free: 32.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/2.881, allocations: 102.6 kB / 0.9909 GB, free: 32.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/2.881, allocations: 67.92 kB / 0.991 GB, free: 32.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 160 * 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.0004897/2.882, allocations: 200.5 kB / 0.9912 GB, free: 32.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000437/2.882, allocations: 146.1 kB / 0.9913 GB, free: 32.13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004564/2.887, allocations: 1.503 MB / 0.9928 GB, free: 30.63 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/2.887, allocations: 12 kB / 0.9928 GB, free: 30.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/2.887, allocations: 0 / 0.9928 GB, free: 30.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.241e-05/2.887, allocations: 3.984 kB / 0.9928 GB, free: 30.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007355/2.894, allocations: 2.791 MB / 0.9955 GB, free: 27.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/2.895, allocations: 8.062 kB / 0.9955 GB, free: 27.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/2.896, allocations: 163.7 kB / 0.9957 GB, free: 27.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004787/2.901, allocations: 0.5904 MB / 0.9963 GB, free: 27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002737/2.901, allocations: 27.98 kB / 0.9963 GB, free: 26.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002261/2.903, allocations: 2.121 MB / 0.9984 GB, free: 24.78 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/2.903, allocations: 7.891 kB / 0.9984 GB, free: 24.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004864/2.908, allocations: 2.108 MB / 1 GB, free: 22.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007478/2.909, allocations: 251.1 kB / 1.001 GB, free: 22.33 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004818/2.91, allocations: 31.94 kB / 1.001 GB, free: 22.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/2.911, allocations: 75.94 kB / 1.001 GB, free: 22.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000319/2.912, allocations: 92.81 kB / 1.001 GB, free: 22.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001621/2.912, allocations: 47.97 kB / 1.001 GB, free: 22.09 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001803/2.914, allocations: 0.8792 MB / 1.002 GB, free: 21.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.914, allocations: 0 / 1.002 GB, free: 21.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005296/2.919, allocations: 1.222 MB / 1.003 GB, free: 19.98 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * 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]) * 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.008672/2.928, allocations: 3.941 MB / 1.007 GB, free: 16.08 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006509/2.934, allocations: 2.158 MB / 1.009 GB, free: 13.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/2.934, allocations: 0.625 kB / 1.009 GB, free: 13.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002374/2.937, allocations: 0.6966 MB / 1.01 GB, free: 13.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004835/2.942, allocations: 0.5813 MB / 1.01 GB, free: 12.67 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008448/2.95, allocations: 2.786 MB / 1.013 GB, free: 9.848 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008552/2.951, allocations: 1.279 MB / 1.014 GB, free: 8.539 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001246/2.952, allocations: 0.5422 MB / 1.015 GB, free: 7.996 MB / 426.7 MB Notification: Performance of SimCode: time 1.173e-06/2.952, allocations: 0 / 1.015 GB, free: 7.996 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.158/7.11, allocations: 50.95 MB / 1.064 GB, free: 60.53 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat