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.001916/0.001916, allocations: 175.3 kB / 8.349 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.639/1.639, allocations: 221.5 MB / 230.3 MB, free: 7.59 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.001174/0.001174, allocations: 94.69 kB / 281.2 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.505e-05/1.508e-05, allocations: 0 / 337.1 MB, free: 9.957 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1302, allocations: 50.41 MB / 387.6 MB, free: 7.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.999/1.129, allocations: 326.1 MB / 0.697 GB, free: 4.355 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/1.13, allocations: 90.39 kB / 0.697 GB, free: 4.309 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6048/1.734, allocations: 145.2 MB / 0.8388 GB, free: 58.92 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.853e-06/1.735, allocations: 0 / 0.8388 GB, free: 58.92 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.151e-05/1.735, allocations: 19.94 kB / 0.8388 GB, free: 58.9 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.002418/1.737, allocations: 1.08 MB / 0.8399 GB, free: 57.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/1.737, allocations: 8.031 kB / 0.8399 GB, free: 57.77 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003832/1.737, allocations: 94.97 kB / 0.84 GB, free: 57.67 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/1.739, allocations: 0.6157 MB / 0.8406 GB, free: 57.02 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.231e-05/1.739, allocations: 76.72 kB / 0.8406 GB, free: 56.94 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.938e-05/1.739, allocations: 31.95 kB / 0.8407 GB, free: 56.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000819/1.74, allocations: 0.596 MB / 0.8413 GB, free: 56.31 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009553/1.741, allocations: 0.7499 MB / 0.842 GB, free: 55.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/1.741, allocations: 4 kB / 0.842 GB, free: 55.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.764e-05/1.741, allocations: 0 / 0.842 GB, free: 55.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-05/1.741, allocations: 45.28 kB / 0.842 GB, free: 55.46 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003792/1.744, allocations: 3.287 MB / 0.8452 GB, free: 52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005154/1.745, allocations: 411.2 kB / 0.8456 GB, free: 51.59 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002689/1.745, allocations: 249.1 kB / 0.8459 GB, free: 51.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001448/1.747, allocations: 1.378 MB / 0.8472 GB, free: 49.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004096/1.747, allocations: 353.1 kB / 0.8476 GB, free: 49.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 1.793e-06/1.747, allocations: 0 / 0.8476 GB, free: 49.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.002896/1.75, allocations: 1.438 MB / 0.849 GB, free: 47.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.677e-05/1.75, allocations: 261 kB / 0.8492 GB, free: 47.63 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005842/1.751, allocations: 0.5462 MB / 0.8497 GB, free: 47.08 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.853e-05/1.751, allocations: 33.7 kB / 0.8498 GB, free: 47.04 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000215/1.751, allocations: 411.2 kB / 0.8502 GB, free: 46.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.477e-05/1.751, allocations: 126.2 kB / 0.8503 GB, free: 46.51 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/1.751, allocations: 7.938 kB / 0.8503 GB, free: 46.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.13e-05/1.751, allocations: 374.8 kB / 0.8507 GB, free: 46.13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003082/1.752, allocations: 249.5 kB / 0.8509 GB, free: 45.89 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000396/1.752, allocations: 496.4 kB / 0.8514 GB, free: 45.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009236/1.753, allocations: 447.2 kB / 0.8518 GB, free: 44.86 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/1.753, allocations: 3.938 kB / 0.8518 GB, free: 44.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001814/1.755, allocations: 1.014 MB / 0.8528 GB, free: 43.83 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004276/1.755, allocations: 2.476 MB / 0.8552 GB, free: 41.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/1.755, allocations: 7.953 kB / 0.8552 GB, free: 41.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000345/1.756, allocations: 116.8 kB / 0.8553 GB, free: 41.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/1.756, allocations: 131.8 kB / 0.8554 GB, free: 40.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005779/1.757, allocations: 0.7162 MB / 0.8561 GB, free: 40.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006368/1.757, allocations: 39.84 kB / 0.8562 GB, free: 40.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.046e-05/1.757, allocations: 40 kB / 0.8562 GB, free: 40.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/1.757, allocations: 4 kB / 0.8562 GB, free: 40.08 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001817/1.759, allocations: 0.911 MB / 0.8571 GB, free: 39.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/1.759, allocations: 8 kB / 0.8571 GB, free: 39.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002925/1.76, allocations: 109.3 kB / 0.8572 GB, free: 39.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/1.76, allocations: 135.8 kB / 0.8574 GB, free: 38.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003955/1.76, allocations: 0.6616 MB / 0.858 GB, free: 38.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000571/1.761, allocations: 39.94 kB / 0.858 GB, free: 38.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/1.761, allocations: 43.98 kB / 0.8581 GB, free: 38.14 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.0002811/1.761, allocations: 188.9 kB / 0.8583 GB, free: 37.95 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001106/1.762, allocations: 0.6218 MB / 0.8589 GB, free: 37.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.189e-05/1.763, allocations: 71.16 kB / 0.8589 GB, free: 37.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001294/1.764, allocations: 0.6799 MB / 0.8596 GB, free: 36.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/1.764, allocations: 4 kB / 0.8596 GB, free: 36.55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/1.764, allocations: 3.953 kB / 0.8596 GB, free: 36.55 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/1.764, allocations: 3.938 kB / 0.8596 GB, free: 36.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001929/1.766, allocations: 1.353 MB / 0.8609 GB, free: 35.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/1.766, allocations: 0 / 0.8609 GB, free: 35.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002671/1.766, allocations: 59.97 kB / 0.861 GB, free: 35.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003018/1.766, allocations: 108.7 kB / 0.8611 GB, free: 34.97 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/1.766, allocations: 15.98 kB / 0.8611 GB, free: 34.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00048/1.767, allocations: 0.6772 MB / 0.8618 GB, free: 34.25 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.767, allocations: 4.031 kB / 0.8618 GB, free: 34.25 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/1.768, allocations: 1.028 MB / 0.8628 GB, free: 33.19 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/1.768, allocations: 164.1 kB / 0.8629 GB, free: 33.01 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/1.769, allocations: 4 kB / 0.8629 GB, free: 33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004434/1.769, allocations: 27.97 kB / 0.863 GB, free: 32.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.347e-05/1.769, allocations: 35.94 kB / 0.863 GB, free: 32.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.57e-05/1.769, allocations: 28.05 kB / 0.863 GB, free: 32.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004635/1.77, allocations: 423.1 kB / 0.8634 GB, free: 32.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.77, allocations: 0 / 0.8634 GB, free: 32.51 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001706/1.771, allocations: 0.5464 MB / 0.864 GB, free: 31.96 MB / 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.002659/1.774, allocations: 2.066 MB / 0.866 GB, free: 29.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001536/1.776, allocations: 1.074 MB / 0.867 GB, free: 28.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.776, allocations: 0 / 0.867 GB, free: 28.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003679/1.776, allocations: 314.9 kB / 0.8673 GB, free: 28.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/1.777, allocations: 241.8 kB / 0.8676 GB, free: 28.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002517/1.78, allocations: 1.31 MB / 0.8688 GB, free: 26.87 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/1.78, allocations: 0.9858 MB / 0.8698 GB, free: 25.85 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008879/1.781, allocations: 258.6 kB / 0.8701 GB, free: 25.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/1.781, allocations: 247.3 kB / 0.8703 GB, free: 25.36 MB / 442.7 MB Notification: Performance of SimCode: time 5.91e-07/1.781, allocations: 0 / 0.8703 GB, free: 25.36 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04542/1.827, allocations: 22.98 MB / 0.8927 GB, free: 2.465 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/1.827, allocations: 174.2 kB / 0.8929 GB, free: 2.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.861/4.688, allocations: 0 / 0.8929 GB, free: 2.27 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