Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.673/1.673, allocations: 221.5 MB / 230.3 MB, free: 7.602 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009141/0.0009142, allocations: 85.66 kB / 281.2 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.292e-05/2.295e-05, allocations: 4 kB / 337.1 MB, free: 9.961 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1262, allocations: 50.42 MB / 387.6 MB, free: 7.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8778/1.004, allocations: 321.6 MB / 0.6925 GB, free: 7.113 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/1.004, allocations: 85.77 kB / 0.6926 GB, free: 7.07 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5697/1.574, allocations: 139.5 MB / 0.8288 GB, free: 67.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.543e-06/1.574, allocations: 4 kB / 0.8288 GB, free: 67.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.336e-05/1.574, allocations: 20 kB / 0.8288 GB, free: 67.28 MB / 442.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.002226/1.576, allocations: 1.036 MB / 0.8299 GB, free: 66.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/1.576, allocations: 12.02 kB / 0.8299 GB, free: 66.19 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/1.577, allocations: 83.06 kB / 0.8299 GB, free: 66.11 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009473/1.578, allocations: 0.5807 MB / 0.8305 GB, free: 65.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/1.578, allocations: 16 kB / 0.8305 GB, free: 65.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.548e-05/1.578, allocations: 31.98 kB / 0.8306 GB, free: 65.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008338/1.579, allocations: 0.6039 MB / 0.8311 GB, free: 64.84 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000902/1.58, allocations: 0.666 MB / 0.8318 GB, free: 64.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/1.58, allocations: 3.938 kB / 0.8318 GB, free: 64.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.982e-05/1.58, allocations: 0 / 0.8318 GB, free: 64.14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.706e-05/1.58, allocations: 45.28 kB / 0.8318 GB, free: 64.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003349/1.583, allocations: 2.75 MB / 0.8345 GB, free: 61.21 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005116/1.584, allocations: 443.7 kB / 0.835 GB, free: 60.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002792/1.584, allocations: 246.1 kB / 0.8352 GB, free: 60.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000221/1.584, allocations: 339.7 kB / 0.8355 GB, free: 60.12 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/1.584, allocations: 43 kB / 0.8356 GB, free: 60.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 1.743e-06/1.584, allocations: 0 / 0.8356 GB, free: 60.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.004656/1.589, allocations: 1.814 MB / 0.8373 GB, free: 58.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/1.589, allocations: 85.67 kB / 0.8374 GB, free: 58.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004519/1.589, allocations: 450.1 kB / 0.8378 GB, free: 57.65 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/1.589, allocations: 29.7 kB / 0.8379 GB, free: 57.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/1.59, allocations: 332.2 kB / 0.8382 GB, free: 57.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/1.59, allocations: 197.1 kB / 0.8384 GB, free: 57.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/1.59, allocations: 0 / 0.8384 GB, free: 57.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.467e-05/1.59, allocations: 378.7 kB / 0.8387 GB, free: 56.71 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003294/1.59, allocations: 261.5 kB / 0.839 GB, free: 56.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004233/1.591, allocations: 429.5 kB / 0.8394 GB, free: 55.97 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/1.592, allocations: 0.5196 MB / 0.8399 GB, free: 55.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/1.592, allocations: 4 kB / 0.8399 GB, free: 55.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002148/1.594, allocations: 1.047 MB / 0.8409 GB, free: 54.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003292/1.595, allocations: 1.749 MB / 0.8426 GB, free: 52.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/1.595, allocations: 4 kB / 0.8426 GB, free: 52.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000479/1.595, allocations: 172.6 kB / 0.8428 GB, free: 52.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005661/1.596, allocations: 151.8 kB / 0.8429 GB, free: 52.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/1.597, allocations: 0.9541 MB / 0.8439 GB, free: 51.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005829/1.598, allocations: 35.97 kB / 0.8439 GB, free: 51.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.618e-05/1.598, allocations: 31.98 kB / 0.8439 GB, free: 51.13 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/1.598, allocations: 5.875 kB / 0.8439 GB, free: 51.13 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001999/1.6, allocations: 0.882 MB / 0.8448 GB, free: 50.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.6, allocations: 8.062 kB / 0.8448 GB, free: 50.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003332/1.6, allocations: 104.8 kB / 0.8449 GB, free: 50.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005371/1.601, allocations: 151.8 kB / 0.8451 GB, free: 49.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/1.602, allocations: 0.8058 MB / 0.8458 GB, free: 49.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000503/1.602, allocations: 31.97 kB / 0.8459 GB, free: 49.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.249e-05/1.602, allocations: 31.98 kB / 0.8459 GB, free: 49.09 MB / 442.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.0001817/1.602, allocations: 128.8 kB / 0.846 GB, free: 48.96 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001644/1.604, allocations: 0.7371 MB / 0.8468 GB, free: 48.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.256e-05/1.604, allocations: 67.16 kB / 0.8468 GB, free: 48.14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/1.606, allocations: 0.8163 MB / 0.8476 GB, free: 47.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/1.606, allocations: 12 kB / 0.8476 GB, free: 47.31 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/1.606, allocations: 0 / 0.8476 GB, free: 47.31 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/1.606, allocations: 3.984 kB / 0.8476 GB, free: 47.31 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/1.609, allocations: 1.559 MB / 0.8492 GB, free: 45.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/1.609, allocations: 4.062 kB / 0.8492 GB, free: 45.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004605/1.609, allocations: 107.9 kB / 0.8493 GB, free: 45.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000441/1.609, allocations: 160.7 kB / 0.8494 GB, free: 45.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.074e-05/1.61, allocations: 19.94 kB / 0.8494 GB, free: 45.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009752/1.61, allocations: 0.8746 MB / 0.8503 GB, free: 44.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.611, allocations: 0 / 0.8503 GB, free: 44.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/1.612, allocations: 1.24 MB / 0.8515 GB, free: 43.24 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/1.613, allocations: 144.3 kB / 0.8516 GB, free: 43.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.712e-05/1.613, allocations: 15.94 kB / 0.8516 GB, free: 43.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004283/1.613, allocations: 31.83 kB / 0.8517 GB, free: 43.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.685e-05/1.613, allocations: 48.48 kB / 0.8517 GB, free: 42.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-05/1.613, allocations: 27.98 kB / 0.8518 GB, free: 42.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003472/1.614, allocations: 342.9 kB / 0.8521 GB, free: 42.63 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.614, allocations: 4 kB / 0.8521 GB, free: 42.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001794/1.615, allocations: 0.5499 MB / 0.8526 GB, free: 42.08 MB / 442.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.003837/1.619, allocations: 2.404 MB / 0.855 GB, free: 39.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001932/1.621, allocations: 1.064 MB / 0.856 GB, free: 38.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.621, allocations: 256 / 0.856 GB, free: 38.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005018/1.622, allocations: 353.8 kB / 0.8563 GB, free: 38.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/1.623, allocations: 296.2 kB / 0.8566 GB, free: 37.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/1.626, allocations: 1.454 MB / 0.858 GB, free: 36.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/1.626, allocations: 0.9873 MB / 0.859 GB, free: 35.45 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009418/1.627, allocations: 289.2 kB / 0.8593 GB, free: 35.17 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003053/1.627, allocations: 247.3 kB / 0.8595 GB, free: 34.93 MB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/1.627, allocations: 0 / 0.8595 GB, free: 34.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0459/1.673, allocations: 24.6 MB / 0.8835 GB, free: 10.42 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/1.673, allocations: 144.3 kB / 0.8837 GB, free: 10.23 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.759/4.433, allocations: 3.938 kB / 0.8837 GB, free: 10.22 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat