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.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",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.002148/0.002152, allocations: 181 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.556/2.556, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001183/0.001184, allocations: 93.91 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.247e-05/3.285e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.09609, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9892/1.085, allocations: 321.7 MB / 0.6747 GB, free: 2.598 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/1.086, allocations: 89.5 kB / 0.6748 GB, free: 2.547 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7657/1.851, allocations: 137.3 MB / 0.8088 GB, free: 57.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.764e-06/1.852, allocations: 0 / 0.8088 GB, free: 57.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.661e-05/1.852, allocations: 27.88 kB / 0.8088 GB, free: 57.3 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003066/1.855, allocations: 1.028 MB / 0.8098 GB, free: 56.22 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/1.855, allocations: 12.03 kB / 0.8098 GB, free: 56.21 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002161/1.855, allocations: 90.5 kB / 0.8099 GB, free: 56.11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004612/1.855, allocations: 91 kB / 0.81 GB, free: 56.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001786/1.857, allocations: 0.5794 MB / 0.8106 GB, free: 55.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.663e-05/1.857, allocations: 36.98 kB / 0.8106 GB, free: 55.37 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/1.858, allocations: 44 kB / 0.8107 GB, free: 55.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/1.859, allocations: 0.7264 MB / 0.8114 GB, free: 54.56 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.986e-05/1.859, allocations: 7.906 kB / 0.8114 GB, free: 54.55 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.937e-05/1.859, allocations: 20 kB / 0.8114 GB, free: 54.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.894e-05/1.859, allocations: 40.97 kB / 0.8114 GB, free: 54.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/1.861, allocations: 0.6754 MB / 0.8121 GB, free: 53.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006283/1.867, allocations: 2.853 MB / 0.8149 GB, free: 50.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/1.869, allocations: 465.8 kB / 0.8153 GB, free: 50.32 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005576/1.869, allocations: 254.1 kB / 0.8156 GB, free: 50.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003309/1.869, allocations: 337.3 kB / 0.8159 GB, free: 49.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/1.87, allocations: 42.98 kB / 0.8159 GB, free: 49.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.846e-06/1.87, allocations: 0 / 0.8159 GB, free: 49.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.00651/1.876, allocations: 1.839 MB / 0.8177 GB, free: 47.72 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/1.876, allocations: 85.67 kB / 0.8178 GB, free: 47.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000971/1.877, allocations: 0.5385 MB / 0.8183 GB, free: 47.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001578/1.877, allocations: 41.7 kB / 0.8184 GB, free: 47.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002312/1.878, allocations: 350.9 kB / 0.8187 GB, free: 46.68 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002201/1.878, allocations: 209 kB / 0.8189 GB, free: 46.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.828e-05/1.878, allocations: 16 kB / 0.8189 GB, free: 46.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.469e-05/1.878, allocations: 338.8 kB / 0.8193 GB, free: 46.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007013/1.879, allocations: 277.5 kB / 0.8195 GB, free: 45.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007681/1.879, allocations: 447 kB / 0.8199 GB, free: 45.35 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007791/1.88, allocations: 326 kB / 0.8203 GB, free: 45.03 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/1.88, allocations: 4 kB / 0.8203 GB, free: 45.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002199/1.882, allocations: 0.8718 MB / 0.8211 GB, free: 44.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000363/1.883, allocations: 1.756 MB / 0.8228 GB, free: 42.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/1.883, allocations: 4 kB / 0.8228 GB, free: 42.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003409/1.886, allocations: 360.3 kB / 0.8232 GB, free: 41.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/1.888, allocations: 151.8 kB / 0.8233 GB, free: 41.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/1.889, allocations: 0.8137 MB / 0.8241 GB, free: 40.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/1.89, allocations: 52.03 kB / 0.8242 GB, free: 40.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/1.89, allocations: 28 kB / 0.8242 GB, free: 40.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/1.89, allocations: 4 kB / 0.8242 GB, free: 40.83 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002015/1.892, allocations: 0.7761 MB / 0.8249 GB, free: 40.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/1.892, allocations: 4 kB / 0.825 GB, free: 40.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002438/1.895, allocations: 225.2 kB / 0.8252 GB, free: 39.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/1.896, allocations: 155.8 kB / 0.8253 GB, free: 39.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000834/1.897, allocations: 0.685 MB / 0.826 GB, free: 38.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008407/1.898, allocations: 52.03 kB / 0.826 GB, free: 38.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.046e-05/1.898, allocations: 27.98 kB / 0.8261 GB, free: 38.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002953/1.898, allocations: 156.7 kB / 0.8262 GB, free: 38.72 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000242/1.898, allocations: 71.16 kB / 0.8263 GB, free: 38.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002304/1.901, allocations: 0.823 MB / 0.8271 GB, free: 37.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/1.901, allocations: 12.08 kB / 0.8271 GB, free: 37.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/1.901, allocations: 7.922 kB / 0.8271 GB, free: 37.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/1.901, allocations: 0 / 0.8271 GB, free: 37.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003997/1.905, allocations: 1.645 MB / 0.8287 GB, free: 36.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/1.905, allocations: 7.938 kB / 0.8287 GB, free: 36.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009661/1.906, allocations: 107.9 kB / 0.8288 GB, free: 35.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002445/1.908, allocations: 332.5 kB / 0.8291 GB, free: 35.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001611/1.909, allocations: 12 kB / 0.8291 GB, free: 35.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00104/1.91, allocations: 0.7982 MB / 0.8299 GB, free: 34.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/1.91, allocations: 4.031 kB / 0.8299 GB, free: 34.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/1.912, allocations: 1.232 MB / 0.8311 GB, free: 33.53 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003687/1.913, allocations: 156.2 kB / 0.8313 GB, free: 33.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001924/1.913, allocations: 20.06 kB / 0.8313 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009303/1.914, allocations: 35.97 kB / 0.8313 GB, free: 33.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/1.914, allocations: 64.31 kB / 0.8314 GB, free: 33.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-05/1.914, allocations: 27.98 kB / 0.8314 GB, free: 33.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008368/1.915, allocations: 439.1 kB / 0.8318 GB, free: 32.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.915, allocations: 0 / 0.8318 GB, free: 32.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002574/1.918, allocations: 0.5854 MB / 0.8324 GB, free: 32.21 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004924/1.923, allocations: 2.405 MB / 0.8348 GB, free: 29.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003388/1.926, allocations: 1.108 MB / 0.8358 GB, free: 28.65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/1.926, allocations: 4 kB / 0.8358 GB, free: 28.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/1.927, allocations: 371 kB / 0.8362 GB, free: 28.28 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/1.93, allocations: 334.8 kB / 0.8365 GB, free: 27.95 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004796/1.935, allocations: 1.548 MB / 0.838 GB, free: 26.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/1.936, allocations: 0.9791 MB / 0.839 GB, free: 25.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007136/1.936, allocations: 259.3 kB / 0.8392 GB, free: 25.09 MB / 426.7 MB Notification: Performance of SimCode: time 1.283e-06/1.936, allocations: 0 / 0.8392 GB, free: 25.09 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.14/5.076, allocations: 21.04 MB / 0.8598 GB, free: 4.008 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks_res.mat does not exist to compare? outputFormat=mat