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.00163/0.00163, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.045/2.045, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001158/0.001158, allocations: 94.09 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004068/0.0004067, allocations: 11.98 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3449, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.028/1.373, allocations: 321.8 MB / 0.6801 GB, free: 107.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/1.373, allocations: 94.67 kB / 0.6802 GB, free: 107.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7604/2.133, allocations: 137.7 MB / 0.8147 GB, free: 97.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/2.133, allocations: 0 / 0.8147 GB, free: 97.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.671e-05/2.133, allocations: 24.14 kB / 0.8147 GB, free: 97.82 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.00364/2.137, allocations: 1.117 MB / 0.8158 GB, free: 97.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/2.137, allocations: 9.75 kB / 0.8158 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003123/2.138, allocations: 97.55 kB / 0.8159 GB, free: 97.26 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004736/2.138, allocations: 81.94 kB / 0.816 GB, free: 97.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001898/2.14, allocations: 0.5878 MB / 0.8165 GB, free: 96.99 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.261e-05/2.14, allocations: 39.02 kB / 0.8166 GB, free: 96.99 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/2.14, allocations: 48.92 kB / 0.8166 GB, free: 96.99 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001973/2.142, allocations: 0.7299 MB / 0.8173 GB, free: 96.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/2.142, allocations: 0 / 0.8173 GB, free: 96.87 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/2.142, allocations: 21.98 kB / 0.8174 GB, free: 96.87 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/2.142, allocations: 45.12 kB / 0.8174 GB, free: 96.87 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001919/2.144, allocations: 0.6839 MB / 0.8181 GB, free: 96.87 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006684/2.151, allocations: 2.859 MB / 0.8209 GB, free: 95.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/2.152, allocations: 476.8 kB / 0.8213 GB, free: 95.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003472/2.153, allocations: 341.8 kB / 0.8216 GB, free: 95.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/2.153, allocations: 42.72 kB / 0.8217 GB, free: 95.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.226e-06/2.153, allocations: 0 / 0.8217 GB, free: 95.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.009464/2.162, allocations: 2.273 MB / 0.8239 GB, free: 94.58 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/2.162, allocations: 83.61 kB / 0.824 GB, free: 94.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/2.164, allocations: 0.547 MB / 0.8245 GB, free: 94.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001651/2.164, allocations: 38.77 kB / 0.8246 GB, free: 94.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/2.164, allocations: 360.6 kB / 0.8249 GB, free: 94.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002262/2.164, allocations: 205.5 kB / 0.8251 GB, free: 94.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.233e-05/2.164, allocations: 13.78 kB / 0.8251 GB, free: 94.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.151e-05/2.164, allocations: 340.9 kB / 0.8254 GB, free: 93.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008481/2.165, allocations: 290.6 kB / 0.8257 GB, free: 93.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008319/2.166, allocations: 450.2 kB / 0.8261 GB, free: 93.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008025/2.167, allocations: 336.9 kB / 0.8265 GB, free: 93.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/2.167, allocations: 3.688 kB / 0.8265 GB, free: 93.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002254/2.169, allocations: 0.8799 MB / 0.8273 GB, free: 93.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003835/2.17, allocations: 1.75 MB / 0.829 GB, free: 91.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/2.17, allocations: 3.906 kB / 0.829 GB, free: 91.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003317/2.173, allocations: 354.4 kB / 0.8294 GB, free: 91.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/2.174, allocations: 151.5 kB / 0.8295 GB, free: 91.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/2.176, allocations: 0.8176 MB / 0.8303 GB, free: 91.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/2.177, allocations: 47.67 kB / 0.8304 GB, free: 91.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.827e-05/2.177, allocations: 36.2 kB / 0.8304 GB, free: 91.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/2.177, allocations: 7.219 kB / 0.8304 GB, free: 91.11 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002059/2.179, allocations: 0.7835 MB / 0.8312 GB, free: 91.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.699e-06/2.179, allocations: 3.875 kB / 0.8312 GB, free: 91.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002391/2.181, allocations: 218.4 kB / 0.8314 GB, free: 91.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/2.183, allocations: 162.3 kB / 0.8315 GB, free: 91.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008017/2.183, allocations: 0.6898 MB / 0.8322 GB, free: 90.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000755/2.184, allocations: 49.66 kB / 0.8323 GB, free: 90.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.624e-05/2.184, allocations: 34.77 kB / 0.8323 GB, free: 90.55 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 () * Number of clocked 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.0006194/2.185, allocations: 314.5 kB / 0.8326 GB, free: 90.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002923/2.185, allocations: 77.64 kB / 0.8327 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002294/2.187, allocations: 0.8445 MB / 0.8335 GB, free: 90.26 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/2.188, allocations: 7.594 kB / 0.8335 GB, free: 90.26 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/2.188, allocations: 0 / 0.8335 GB, free: 90.26 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/2.188, allocations: 6.562 kB / 0.8335 GB, free: 90.26 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004151/2.192, allocations: 1.659 MB / 0.8351 GB, free: 89.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/2.192, allocations: 0 / 0.8351 GB, free: 89.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009182/2.193, allocations: 108.5 kB / 0.8352 GB, free: 89.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002475/2.195, allocations: 343.9 kB / 0.8356 GB, free: 89.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001538/2.195, allocations: 21.08 kB / 0.8356 GB, free: 89.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/2.196, allocations: 0.795 MB / 0.8364 GB, free: 89.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/2.196, allocations: 4.062 kB / 0.8364 GB, free: 89.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002988/2.199, allocations: 1.265 MB / 0.8376 GB, free: 89.13 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003921/2.2, allocations: 153.2 kB / 0.8377 GB, free: 89 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/2.2, allocations: 13.62 kB / 0.8378 GB, free: 89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008565/2.201, allocations: 44.7 kB / 0.8378 GB, free: 89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/2.201, allocations: 57.44 kB / 0.8379 GB, free: 89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.862e-05/2.201, allocations: 33.09 kB / 0.8379 GB, free: 89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007638/2.202, allocations: 440.5 kB / 0.8383 GB, free: 88.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.71e-07/2.202, allocations: 0 / 0.8383 GB, free: 88.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00249/2.205, allocations: 0.589 MB / 0.8389 GB, free: 88.81 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]) * Number of clocked states: 0 () * 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.004832/2.209, allocations: 2.422 MB / 0.8412 GB, free: 87.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003444/2.213, allocations: 1.125 MB / 0.8423 GB, free: 87.78 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/2.213, allocations: 0 / 0.8423 GB, free: 87.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/2.214, allocations: 377.9 kB / 0.8427 GB, free: 87.78 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002792/2.217, allocations: 335.7 kB / 0.843 GB, free: 87.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006154/2.223, allocations: 5.435 MB / 0.8483 GB, free: 83.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005206/2.224, allocations: 0.979 MB / 0.8493 GB, free: 83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006888/2.224, allocations: 259.9 kB / 0.8495 GB, free: 83 MB / 426.7 MB Notification: Performance of SimCode: time 1.393e-06/2.224, allocations: 0 / 0.8495 GB, free: 83 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.1/5.324, allocations: 20.83 MB / 0.8699 GB, free: 81.79 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