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.00215/0.00215, allocations: 180.1 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.022/2.022, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001128/0.001127, allocations: 79.53 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.704e-05/2.714e-05, allocations: 4 kB / 314.9 MB, free: 9.074 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.341, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.048/1.389, allocations: 321 MB / 0.6674 GB, free: 118.4 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/1.389, allocations: 91.41 kB / 0.6675 GB, free: 118.4 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4593/1.848, allocations: 136.5 MB / 0.8009 GB, free: 27.33 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.134e-06/1.848, allocations: 0 / 0.8009 GB, free: 27.33 MB / 427.1 MB Notification: Performance of Transformations before backend: time 9.709e-05/1.848, allocations: 19.94 kB / 0.8009 GB, free: 27.31 MB / 427.1 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.002699/1.851, allocations: 1.025 MB / 0.8019 GB, free: 26.23 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/1.851, allocations: 8.031 kB / 0.8019 GB, free: 26.23 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003706/1.851, allocations: 87.02 kB / 0.802 GB, free: 26.14 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/1.853, allocations: 0.5779 MB / 0.8025 GB, free: 25.52 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/1.853, allocations: 27.98 kB / 0.8026 GB, free: 25.49 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/1.853, allocations: 31.91 kB / 0.8026 GB, free: 25.46 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001378/1.855, allocations: 0.6077 MB / 0.8032 GB, free: 24.85 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/1.856, allocations: 0.6543 MB / 0.8038 GB, free: 24.17 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/1.856, allocations: 7.984 kB / 0.8038 GB, free: 24.16 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.558e-05/1.856, allocations: 0 / 0.8038 GB, free: 24.16 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-05/1.856, allocations: 45.28 kB / 0.8039 GB, free: 24.11 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005527/1.862, allocations: 2.743 MB / 0.8066 GB, free: 21.2 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008641/1.863, allocations: 435.7 kB / 0.807 GB, free: 20.76 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004671/1.863, allocations: 242.1 kB / 0.8072 GB, free: 20.52 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002824/1.863, allocations: 349.3 kB / 0.8075 GB, free: 20.11 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/1.863, allocations: 42.98 kB / 0.8076 GB, free: 20.06 MB / 427.1 MB Notification: Performance of pre-optimization done (n=48): time 3.416e-06/1.863, allocations: 7.922 kB / 0.8076 GB, free: 20.05 MB / 427.1 MB Notification: Performance of matching and sorting (n=58): time 0.007469/1.871, allocations: 1.8 MB / 0.8093 GB, free: 18.2 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/1.871, allocations: 89.62 kB / 0.8094 GB, free: 18.09 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006989/1.872, allocations: 446.1 kB / 0.8098 GB, free: 17.65 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 8.011e-05/1.872, allocations: 33.64 kB / 0.8099 GB, free: 17.61 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/1.872, allocations: 358.6 kB / 0.8102 GB, free: 17.26 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001915/1.872, allocations: 213 kB / 0.8104 GB, free: 17.05 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.276e-05/1.872, allocations: 0 / 0.8104 GB, free: 17.05 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 8.217e-05/1.872, allocations: 342.8 kB / 0.8108 GB, free: 16.7 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006124/1.873, allocations: 265.5 kB / 0.811 GB, free: 16.44 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006921/1.874, allocations: 433.4 kB / 0.8114 GB, free: 15.96 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006544/1.88, allocations: 0.8356 MB / 0.8122 GB, free: 15.12 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/1.88, allocations: 4 kB / 0.8122 GB, free: 15.12 MB / 427.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.007736/1.888, allocations: 1.336 MB / 0.8135 GB, free: 13.77 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003638/1.889, allocations: 1.75 MB / 0.8153 GB, free: 11.89 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/1.889, allocations: 4 kB / 0.8153 GB, free: 11.88 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007798/1.889, allocations: 164.7 kB / 0.8154 GB, free: 11.72 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/1.89, allocations: 155.7 kB / 0.8156 GB, free: 11.57 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002263/1.893, allocations: 0.9348 MB / 0.8165 GB, free: 10.61 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009491/1.894, allocations: 35.94 kB / 0.8165 GB, free: 10.57 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.135e-05/1.894, allocations: 35.98 kB / 0.8165 GB, free: 10.54 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/1.894, allocations: 4 kB / 0.8165 GB, free: 10.53 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007035/1.901, allocations: 1.209 MB / 0.8177 GB, free: 9.316 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/1.901, allocations: 8 kB / 0.8177 GB, free: 9.309 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005334/1.901, allocations: 105.4 kB / 0.8178 GB, free: 9.203 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/1.903, allocations: 155.7 kB / 0.818 GB, free: 9.051 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/1.904, allocations: 0.7788 MB / 0.8187 GB, free: 8.246 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007298/1.905, allocations: 39.89 kB / 0.8188 GB, free: 8.207 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.591e-05/1.905, allocations: 31.98 kB / 0.8188 GB, free: 8.176 MB / 427.1 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.0002656/1.905, allocations: 128.7 kB / 0.8189 GB, free: 8.043 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002759/1.908, allocations: 0.741 MB / 0.8197 GB, free: 7.293 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/1.908, allocations: 63.25 kB / 0.8197 GB, free: 7.23 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/1.911, allocations: 0.8109 MB / 0.8205 GB, free: 6.402 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/1.911, allocations: 12 kB / 0.8205 GB, free: 6.391 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/1.911, allocations: 3.953 kB / 0.8205 GB, free: 6.387 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/1.911, allocations: 3.984 kB / 0.8205 GB, free: 6.383 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004241/1.915, allocations: 1.575 MB / 0.8221 GB, free: 4.754 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/1.915, allocations: 0 / 0.8221 GB, free: 4.754 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009155/1.916, allocations: 107.8 kB / 0.8222 GB, free: 4.648 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007553/1.917, allocations: 168.8 kB / 0.8223 GB, free: 4.48 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.356e-05/1.917, allocations: 7.984 kB / 0.8223 GB, free: 4.473 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001538/1.919, allocations: 0.8724 MB / 0.8232 GB, free: 3.574 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/1.919, allocations: 0 / 0.8232 GB, free: 3.574 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003201/1.922, allocations: 1.244 MB / 0.8244 GB, free: 2.289 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002213/1.922, allocations: 144.3 kB / 0.8245 GB, free: 2.129 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/1.922, allocations: 7.984 kB / 0.8246 GB, free: 2.121 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007784/1.923, allocations: 31.83 kB / 0.8246 GB, free: 2.09 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/1.923, allocations: 52.47 kB / 0.8246 GB, free: 2.039 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.878e-05/1.923, allocations: 27.98 kB / 0.8247 GB, free: 2.012 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0005148/1.924, allocations: 342.9 kB / 0.825 GB, free: 1.68 MB / 427.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.924, allocations: 0 / 0.825 GB, free: 1.68 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.002097/1.926, allocations: 0.5424 MB / 0.8255 GB, free: 1.137 MB / 427.1 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.2794/2.205, allocations: 2.405 MB / 0.8279 GB, free: 92.12 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.002747/2.208, allocations: 1.052 MB / 0.8289 GB, free: 92.12 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/2.208, allocations: 0 / 0.8289 GB, free: 92.12 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008506/2.209, allocations: 360.9 kB / 0.8292 GB, free: 92.12 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/2.211, allocations: 294.4 kB / 0.8295 GB, free: 92.12 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003982/2.215, allocations: 1.48 MB / 0.831 GB, free: 91.76 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/2.216, allocations: 0.9815 MB / 0.8319 GB, free: 91.06 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000574/2.217, allocations: 260.5 kB / 0.8322 GB, free: 91.05 MB / 427.1 MB Notification: Performance of SimCode: time 9.32e-07/2.217, allocations: 0 / 0.8322 GB, free: 91.05 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.092/5.309, allocations: 20.55 MB / 0.8522 GB, free: 90.33 MB / 427.1 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