Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.OneTank,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",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.001038/0.001038, allocations: 173.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 221.3 MB / 235.5 MB, free: 2.949 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.0009125/0.0009126, allocations: 88.09 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.718e-05/2.721e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 50.41 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.832/0.946, allocations: 326.8 MB / 0.7042 GB, free: 5.125 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.9463, allocations: 87.08 kB / 0.7043 GB, free: 5.082 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6135/1.56, allocations: 146.1 MB / 0.847 GB, free: 27.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.743e-06/1.56, allocations: 0 / 0.847 GB, free: 27.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001017/1.56, allocations: 23.94 kB / 0.8471 GB, free: 27.89 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00327/1.563, allocations: 1.076 MB / 0.8481 GB, free: 26.76 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.514e-05/1.563, allocations: 12.03 kB / 0.8481 GB, free: 26.75 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002967/1.564, allocations: 90.5 kB / 0.8482 GB, free: 26.65 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006662/1.564, allocations: 98.95 kB / 0.8483 GB, free: 26.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001612/1.566, allocations: 0.6164 MB / 0.8489 GB, free: 25.9 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.909e-05/1.566, allocations: 96.34 kB / 0.849 GB, free: 25.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/1.566, allocations: 44 kB / 0.849 GB, free: 25.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/1.568, allocations: 0.8065 MB / 0.8498 GB, free: 24.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/1.568, allocations: 7.938 kB / 0.8498 GB, free: 24.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-05/1.568, allocations: 27.98 kB / 0.8499 GB, free: 24.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.864e-05/1.568, allocations: 40.98 kB / 0.8499 GB, free: 24.81 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/1.569, allocations: 0.6714 MB / 0.8506 GB, free: 24.14 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00469/1.574, allocations: 3.411 MB / 0.8539 GB, free: 20.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006542/1.574, allocations: 422.1 kB / 0.8543 GB, free: 20.1 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003465/1.575, allocations: 265 kB / 0.8545 GB, free: 19.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00195/1.577, allocations: 1.409 MB / 0.8559 GB, free: 18.29 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004894/1.577, allocations: 365.1 kB / 0.8563 GB, free: 17.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 2.735e-06/1.577, allocations: 0 / 0.8563 GB, free: 17.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.003316/1.58, allocations: 1.582 MB / 0.8578 GB, free: 16.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/1.581, allocations: 265 kB / 0.8581 GB, free: 15.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000949/1.581, allocations: 0.6796 MB / 0.8587 GB, free: 15.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.342e-05/1.582, allocations: 37.7 kB / 0.8588 GB, free: 15.19 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002881/1.582, allocations: 399.1 kB / 0.8591 GB, free: 14.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/1.582, allocations: 146 kB / 0.8593 GB, free: 14.65 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.813e-05/1.582, allocations: 16 kB / 0.8593 GB, free: 14.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/1.582, allocations: 386.8 kB / 0.8597 GB, free: 14.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003722/1.583, allocations: 253.5 kB / 0.8599 GB, free: 14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000491/1.583, allocations: 0.5028 MB / 0.8604 GB, free: 13.39 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004903/1.584, allocations: 349.5 kB / 0.8607 GB, free: 13.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/1.584, allocations: 0 / 0.8607 GB, free: 13.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001616/1.585, allocations: 0.972 MB / 0.8617 GB, free: 12.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005972/1.586, allocations: 2.476 MB / 0.8641 GB, free: 9.379 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/1.586, allocations: 4 kB / 0.8641 GB, free: 9.375 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005775/1.586, allocations: 136.7 kB / 0.8642 GB, free: 9.238 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/1.587, allocations: 131.8 kB / 0.8644 GB, free: 9.109 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004989/1.587, allocations: 0.6772 MB / 0.865 GB, free: 8.406 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007199/1.588, allocations: 59.88 kB / 0.8651 GB, free: 8.348 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.044e-05/1.588, allocations: 32 kB / 0.8651 GB, free: 8.316 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/1.588, allocations: 4 kB / 0.8651 GB, free: 8.312 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00152/1.59, allocations: 0.9085 MB / 0.866 GB, free: 7.395 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/1.59, allocations: 8.688 kB / 0.866 GB, free: 7.387 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003739/1.59, allocations: 120.8 kB / 0.8661 GB, free: 7.266 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004258/1.591, allocations: 131.8 kB / 0.8663 GB, free: 7.137 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004152/1.591, allocations: 0.6655 MB / 0.8669 GB, free: 6.445 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006276/1.592, allocations: 43.98 kB / 0.8669 GB, free: 6.402 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.717e-05/1.592, allocations: 43.94 kB / 0.867 GB, free: 6.359 MB / 442.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002991/1.592, allocations: 201.5 kB / 0.8672 GB, free: 6.152 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/1.592, allocations: 79.06 kB / 0.8673 GB, free: 6.074 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/1.594, allocations: 0.7387 MB / 0.868 GB, free: 5.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/1.594, allocations: 8 kB / 0.868 GB, free: 5.312 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/1.594, allocations: 4 kB / 0.868 GB, free: 5.309 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/1.594, allocations: 7.938 kB / 0.868 GB, free: 5.301 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002229/1.596, allocations: 1.447 MB / 0.8694 GB, free: 3.785 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/1.596, allocations: 7.984 kB / 0.8694 GB, free: 3.777 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/1.596, allocations: 63.94 kB / 0.8695 GB, free: 3.715 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004981/1.597, allocations: 120.8 kB / 0.8696 GB, free: 3.594 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.805e-05/1.597, allocations: 19.94 kB / 0.8696 GB, free: 3.574 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004634/1.597, allocations: 0.6655 MB / 0.8703 GB, free: 2.883 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/1.597, allocations: 0 / 0.8703 GB, free: 2.883 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/1.599, allocations: 1.091 MB / 0.8713 GB, free: 1.754 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002625/1.599, allocations: 168.1 kB / 0.8715 GB, free: 1.57 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/1.599, allocations: 20.12 kB / 0.8715 GB, free: 1.551 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005396/1.6, allocations: 35.88 kB / 0.8715 GB, free: 1.516 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/1.6, allocations: 35.95 kB / 0.8716 GB, free: 1.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.403e-05/1.6, allocations: 23.98 kB / 0.8716 GB, free: 1.457 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006956/1.601, allocations: 0.5265 MB / 0.8721 GB, free: 0.9336 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.293e-06/1.601, allocations: 4 kB / 0.8721 GB, free: 0.9297 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002247/1.603, allocations: 0.5893 MB / 0.8727 GB, free: 348 kB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.292/1.895, allocations: 2.101 MB / 0.8747 GB, free: 90 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002663/1.897, allocations: 1.183 MB / 0.8759 GB, free: 89.87 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/1.898, allocations: 1.031 kB / 0.8759 GB, free: 89.87 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006442/1.898, allocations: 345.1 kB / 0.8762 GB, free: 89.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/1.9, allocations: 304.7 kB / 0.8765 GB, free: 89.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/1.903, allocations: 1.376 MB / 0.8779 GB, free: 89.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006537/1.904, allocations: 0.9836 MB / 0.8788 GB, free: 88.79 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001231/1.905, allocations: 306 kB / 0.8791 GB, free: 88.79 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003307/1.906, allocations: 251.6 kB / 0.8794 GB, free: 88.79 MB / 442.7 MB Notification: Performance of SimCode: time 1.312e-06/1.906, allocations: 0 / 0.8794 GB, free: 88.79 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06364/1.969, allocations: 27.45 MB / 0.9062 GB, free: 88.03 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/1.969, allocations: 232.5 kB / 0.9064 GB, free: 87.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.837/4.807, allocations: 3.812 kB / 0.9064 GB, free: 87.8 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat