Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.OneTank,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001454/0.001454, allocations: 177 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.545/1.545, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008085/0.0008086, allocations: 78.7 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.069e-05/2.06e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08728/0.08732, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8057/0.8931, allocations: 325.8 MB / 0.6728 GB, free: 3.723 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.8934, allocations: 94.88 kB / 0.6729 GB, free: 3.672 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5725/1.466, allocations: 142.1 MB / 0.8117 GB, free: 58.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.993e-06/1.466, allocations: 0 / 0.8117 GB, free: 58.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.001e-05/1.466, allocations: 20 kB / 0.8117 GB, free: 58.6 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002282/1.468, allocations: 1.073 MB / 0.8127 GB, free: 57.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/1.468, allocations: 8.031 kB / 0.8128 GB, free: 57.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003493/1.469, allocations: 103 kB / 0.8128 GB, free: 57.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/1.47, allocations: 0.6089 MB / 0.8134 GB, free: 56.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.898e-05/1.47, allocations: 76.72 kB / 0.8135 GB, free: 56.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.599e-05/1.47, allocations: 28 kB / 0.8135 GB, free: 56.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008583/1.471, allocations: 0.6039 MB / 0.8141 GB, free: 55.99 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/1.472, allocations: 0.7421 MB / 0.8149 GB, free: 55.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/1.472, allocations: 4 kB / 0.8149 GB, free: 55.19 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-05/1.472, allocations: 4 kB / 0.8149 GB, free: 55.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.369e-05/1.472, allocations: 37.3 kB / 0.8149 GB, free: 55.15 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004196/1.476, allocations: 3.294 MB / 0.8181 GB, free: 51.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005361/1.477, allocations: 411.2 kB / 0.8185 GB, free: 51.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/1.477, allocations: 245.1 kB / 0.8187 GB, free: 51.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001546/1.479, allocations: 1.386 MB / 0.8201 GB, free: 49.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004596/1.479, allocations: 360.9 kB / 0.8204 GB, free: 49.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 2.204e-06/1.479, allocations: 4 kB / 0.8204 GB, free: 49.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.003068/1.482, allocations: 1.428 MB / 0.8218 GB, free: 47.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.424e-05/1.482, allocations: 268.9 kB / 0.8221 GB, free: 47.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000574/1.483, allocations: 0.5463 MB / 0.8226 GB, free: 46.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.056e-05/1.483, allocations: 29.7 kB / 0.8227 GB, free: 46.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/1.483, allocations: 407.2 kB / 0.823 GB, free: 46.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.472e-05/1.483, allocations: 138.1 kB / 0.8232 GB, free: 46.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.36e-05/1.483, allocations: 4 kB / 0.8232 GB, free: 46.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/1.484, allocations: 374.8 kB / 0.8235 GB, free: 45.78 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003232/1.484, allocations: 245.5 kB / 0.8238 GB, free: 45.54 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000467/1.484, allocations: 494.3 kB / 0.8242 GB, free: 44.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002863/1.487, allocations: 0.7521 MB / 0.825 GB, free: 44.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/1.487, allocations: 0 / 0.825 GB, free: 44.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003997/1.491, allocations: 1.349 MB / 0.8263 GB, free: 42.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006495/1.492, allocations: 2.471 MB / 0.8287 GB, free: 40.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/1.492, allocations: 4 kB / 0.8287 GB, free: 40.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003967/1.492, allocations: 112.8 kB / 0.8288 GB, free: 40.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004841/1.493, allocations: 139.8 kB / 0.829 GB, free: 39.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000631/1.493, allocations: 0.7123 MB / 0.8296 GB, free: 39.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007212/1.494, allocations: 31.97 kB / 0.8297 GB, free: 39.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.32e-05/1.494, allocations: 39.94 kB / 0.8297 GB, free: 39.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/1.494, allocations: 11.94 kB / 0.8297 GB, free: 39.1 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003609/1.498, allocations: 1.239 MB / 0.8309 GB, free: 37.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/1.498, allocations: 8 kB / 0.8309 GB, free: 37.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002945/1.498, allocations: 109.1 kB / 0.8311 GB, free: 37.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004173/1.499, allocations: 135.8 kB / 0.8312 GB, free: 37.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000413/1.499, allocations: 0.6655 MB / 0.8318 GB, free: 36.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006293/1.5, allocations: 39.83 kB / 0.8319 GB, free: 36.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.129e-05/1.5, allocations: 40.06 kB / 0.8319 GB, free: 36.84 MB / 426.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.0003042/1.5, allocations: 183.1 kB / 0.8321 GB, free: 36.64 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001126/1.501, allocations: 0.6239 MB / 0.8327 GB, free: 36.01 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.136e-05/1.501, allocations: 67.25 kB / 0.8328 GB, free: 35.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001339/1.503, allocations: 0.678 MB / 0.8334 GB, free: 35.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.086e-06/1.503, allocations: 7.984 kB / 0.8334 GB, free: 35.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.503, allocations: 0 / 0.8334 GB, free: 35.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/1.503, allocations: 0 / 0.8334 GB, free: 35.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001993/1.505, allocations: 1.36 MB / 0.8348 GB, free: 33.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/1.505, allocations: 0 / 0.8348 GB, free: 33.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/1.505, allocations: 67.84 kB / 0.8348 GB, free: 33.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003121/1.505, allocations: 104.8 kB / 0.8349 GB, free: 33.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.76e-05/1.505, allocations: 11.98 kB / 0.8349 GB, free: 33.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005057/1.506, allocations: 0.685 MB / 0.8356 GB, free: 32.94 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/1.506, allocations: 64 / 0.8356 GB, free: 32.94 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/1.507, allocations: 1.031 MB / 0.8366 GB, free: 31.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/1.507, allocations: 148.3 kB / 0.8367 GB, free: 31.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/1.508, allocations: 12 kB / 0.8368 GB, free: 31.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004417/1.508, allocations: 35.92 kB / 0.8368 GB, free: 31.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/1.508, allocations: 35.91 kB / 0.8368 GB, free: 31.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.71e-05/1.508, allocations: 23.98 kB / 0.8368 GB, free: 31.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004281/1.509, allocations: 423.1 kB / 0.8373 GB, free: 31.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.543e-06/1.509, allocations: 0 / 0.8373 GB, free: 31.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001869/1.511, allocations: 0.5541 MB / 0.8378 GB, free: 30.64 MB / 426.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.002541/1.513, allocations: 2.035 MB / 0.8398 GB, free: 28.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00155/1.515, allocations: 1.069 MB / 0.8408 GB, free: 27.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.515, allocations: 13.06 kB / 0.8408 GB, free: 27.47 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003869/1.515, allocations: 303.9 kB / 0.8411 GB, free: 27.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/1.516, allocations: 235.8 kB / 0.8414 GB, free: 26.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/1.518, allocations: 1.32 MB / 0.8426 GB, free: 25.56 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/1.519, allocations: 0.9858 MB / 0.8436 GB, free: 24.55 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008859/1.52, allocations: 269.7 kB / 0.8439 GB, free: 24.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002949/1.52, allocations: 243.3 kB / 0.8441 GB, free: 24.04 MB / 426.7 MB Notification: Performance of SimCode: time 1.152e-06/1.52, allocations: 0 / 0.8441 GB, free: 24.04 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05314/1.573, allocations: 22.97 MB / 0.8665 GB, free: 1.027 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/1.573, allocations: 171.9 kB / 0.8667 GB, free: 0.832 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.933/4.507, allocations: 0 / 0.8667 GB, free: 0.832 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat