Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00115/0.00115, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.576/1.576, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.001019/0.001019, allocations: 100.1 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.0002798, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2691, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7828/1.052, allocations: 321.8 MB / 0.6813 GB, free: 107.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/1.052, allocations: 92.14 kB / 0.6814 GB, free: 107.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4964/1.549, allocations: 137.7 MB / 0.8159 GB, free: 98.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.432e-06/1.549, allocations: 3.875 kB / 0.8159 GB, free: 98.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001001/1.549, allocations: 16.59 kB / 0.8159 GB, free: 98.13 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.003635/1.552, allocations: 1.121 MB / 0.817 GB, free: 97.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/1.552, allocations: 9.156 kB / 0.817 GB, free: 97.61 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003529/1.553, allocations: 89.05 kB / 0.8171 GB, free: 97.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005566/1.553, allocations: 88.73 kB / 0.8172 GB, free: 97.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001794/1.555, allocations: 0.5916 MB / 0.8178 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.732e-05/1.555, allocations: 36.47 kB / 0.8178 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/1.555, allocations: 48.77 kB / 0.8179 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/1.557, allocations: 0.7313 MB / 0.8186 GB, free: 97.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/1.557, allocations: 1.438 kB / 0.8186 GB, free: 97.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.257e-05/1.557, allocations: 19.5 kB / 0.8186 GB, free: 97.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-05/1.557, allocations: 44 kB / 0.8187 GB, free: 97.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/1.559, allocations: 0.6818 MB / 0.8193 GB, free: 97.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005004/1.564, allocations: 2.864 MB / 0.8221 GB, free: 95.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008847/1.564, allocations: 469.5 kB / 0.8226 GB, free: 95.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002959/1.565, allocations: 344 kB / 0.8229 GB, free: 95.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/1.565, allocations: 40.5 kB / 0.8229 GB, free: 95.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 4.127e-06/1.565, allocations: 0 / 0.8229 GB, free: 95.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.006441/1.571, allocations: 2.274 MB / 0.8252 GB, free: 94.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/1.571, allocations: 87.3 kB / 0.8252 GB, free: 94.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/1.572, allocations: 0.5487 MB / 0.8258 GB, free: 94.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.049e-05/1.573, allocations: 40.39 kB / 0.8258 GB, free: 94.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002649/1.573, allocations: 324.7 kB / 0.8261 GB, free: 94.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/1.573, allocations: 207.7 kB / 0.8263 GB, free: 94.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.485e-05/1.573, allocations: 13.84 kB / 0.8263 GB, free: 94.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/1.573, allocations: 385.9 kB / 0.8267 GB, free: 94.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004663/1.574, allocations: 288.1 kB / 0.827 GB, free: 94.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005107/1.574, allocations: 451.2 kB / 0.8274 GB, free: 93.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004764/1.575, allocations: 331.1 kB / 0.8277 GB, free: 93.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/1.575, allocations: 3.875 kB / 0.8277 GB, free: 93.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001408/1.576, allocations: 0.923 MB / 0.8286 GB, free: 93.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003815/1.577, allocations: 1.751 MB / 0.8303 GB, free: 92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/1.577, allocations: 2.688 kB / 0.8303 GB, free: 92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/1.579, allocations: 360.5 kB / 0.8307 GB, free: 91.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000581/1.579, allocations: 145 kB / 0.8308 GB, free: 91.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007504/1.58, allocations: 0.823 MB / 0.8316 GB, free: 91.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008151/1.581, allocations: 51.86 kB / 0.8317 GB, free: 91.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.01e-05/1.581, allocations: 32.3 kB / 0.8317 GB, free: 91.47 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/1.581, allocations: 3.438 kB / 0.8317 GB, free: 91.47 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001189/1.582, allocations: 0.7882 MB / 0.8325 GB, free: 91.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/1.582, allocations: 3.125 kB / 0.8325 GB, free: 91.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/1.584, allocations: 227.4 kB / 0.8327 GB, free: 91.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005717/1.584, allocations: 165.6 kB / 0.8329 GB, free: 91.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005116/1.585, allocations: 0.6943 MB / 0.8335 GB, free: 90.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006822/1.585, allocations: 46.19 kB / 0.8336 GB, free: 90.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.631e-05/1.585, allocations: 32.98 kB / 0.8336 GB, free: 90.91 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.0004891/1.586, allocations: 313.4 kB / 0.8339 GB, free: 90.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/1.586, allocations: 77.2 kB / 0.834 GB, free: 90.69 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/1.588, allocations: 0.839 MB / 0.8348 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/1.588, allocations: 3.906 kB / 0.8348 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/1.588, allocations: 7.359 kB / 0.8348 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/1.588, allocations: 5.781 kB / 0.8348 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002759/1.59, allocations: 1.666 MB / 0.8364 GB, free: 90.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/1.59, allocations: 2.906 kB / 0.8364 GB, free: 90.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004816/1.591, allocations: 112.2 kB / 0.8366 GB, free: 90.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001422/1.592, allocations: 337.7 kB / 0.8369 GB, free: 90.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.525e-05/1.592, allocations: 18.77 kB / 0.8369 GB, free: 90.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007206/1.593, allocations: 0.798 MB / 0.8377 GB, free: 89.74 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/1.593, allocations: 0.75 kB / 0.8377 GB, free: 89.74 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/1.595, allocations: 1.258 MB / 0.8389 GB, free: 89.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003252/1.595, allocations: 157.3 kB / 0.839 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/1.595, allocations: 22.81 kB / 0.8391 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005541/1.596, allocations: 38.89 kB / 0.8391 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/1.596, allocations: 54.67 kB / 0.8392 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.918e-05/1.596, allocations: 26.45 kB / 0.8392 GB, free: 89.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005165/1.597, allocations: 441.5 kB / 0.8396 GB, free: 89.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.597, allocations: 0 / 0.8396 GB, free: 89.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001988/1.599, allocations: 0.5947 MB / 0.8402 GB, free: 89.17 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.003339/1.602, allocations: 2.435 MB / 0.8426 GB, free: 88.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001949/1.604, allocations: 1.124 MB / 0.8437 GB, free: 88.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/1.604, allocations: 0 / 0.8437 GB, free: 88.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005495/1.605, allocations: 374.7 kB / 0.844 GB, free: 88.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/1.606, allocations: 328 kB / 0.8443 GB, free: 88.13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004643/1.611, allocations: 5.4 MB / 0.8496 GB, free: 84.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000487/1.611, allocations: 0.9883 MB / 0.8506 GB, free: 83.39 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00115/1.612, allocations: 277.8 kB / 0.8508 GB, free: 83.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004182/1.613, allocations: 255.3 kB / 0.8511 GB, free: 83.37 MB / 426.7 MB Notification: Performance of SimCode: time 2.024e-06/1.613, allocations: 0 / 0.8511 GB, free: 83.37 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04771/1.661, allocations: 26.73 MB / 0.8772 GB, free: 81.81 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/1.661, allocations: 203.6 kB / 0.8774 GB, free: 81.58 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.738/4.399, allocations: 3.938 kB / 0.8774 GB, free: 81.57 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_3.2.3_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_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat