Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.504/2.504, allocations: 390.3 MB / 405.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001934/0.001934, allocations: 175.4 kB / 498.1 MB, free: 5.746 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 223.1 MB / 0.7948 GB, free: 17.86 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 104.2 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003617, allocations: 9.781 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2763, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.05/1.327, allocations: 421.1 MB / 1.634 GB, free: 7.484 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/1.327, allocations: 100.1 kB / 1.634 GB, free: 7.43 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.484/2.811, allocations: 424 MB / 2.048 GB, free: 290.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.884e-06/2.811, allocations: 0 / 2.048 GB, free: 290.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001631/2.811, allocations: 54.44 kB / 2.048 GB, free: 290.2 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.004451/2.815, allocations: 2.244 MB / 2.051 GB, free: 287.9 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/2.816, allocations: 8.031 kB / 2.051 GB, free: 287.9 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002491/2.816, allocations: 210.8 kB / 2.051 GB, free: 287.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006114/2.816, allocations: 233.4 kB / 2.051 GB, free: 287.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003358/2.82, allocations: 2.141 MB / 2.053 GB, free: 285.3 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.894e-05/2.82, allocations: 110.7 kB / 2.053 GB, free: 285.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001994/2.82, allocations: 161 kB / 2.053 GB, free: 285.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00241/2.822, allocations: 1.877 MB / 2.055 GB, free: 283.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.573e-05/2.823, allocations: 11.84 kB / 2.055 GB, free: 283.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/2.823, allocations: 67.84 kB / 2.055 GB, free: 283 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.564e-05/2.823, allocations: 40 kB / 2.055 GB, free: 283 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00198/2.825, allocations: 1.685 MB / 2.057 GB, free: 281.3 MB / 1.167 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008826/2.834, allocations: 7.533 MB / 2.064 GB, free: 273.6 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/2.835, allocations: 1.331 MB / 2.066 GB, free: 272.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005495/2.841, allocations: 3.746 MB / 2.069 GB, free: 268.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/2.841, allocations: 47.5 kB / 2.069 GB, free: 268.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=86): time 2.475e-06/2.841, allocations: 0 / 2.069 GB, free: 268.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=86): time 0.00201/2.843, allocations: 1.455 MB / 2.071 GB, free: 266.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/2.843, allocations: 64.48 kB / 2.071 GB, free: 266.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001781/2.844, allocations: 1.524 MB / 2.072 GB, free: 265.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 8.423e-05/2.845, allocations: 53.69 kB / 2.072 GB, free: 265 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004808/2.845, allocations: 0.7691 MB / 2.073 GB, free: 264.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000198/2.845, allocations: 307.6 kB / 2.073 GB, free: 263.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.325e-05/2.845, allocations: 28 kB / 2.073 GB, free: 263.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001184/2.845, allocations: 365.9 kB / 2.074 GB, free: 263.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008521/2.846, allocations: 0.6714 MB / 2.074 GB, free: 262.9 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009973/2.847, allocations: 1.014 MB / 2.075 GB, free: 261.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009912/2.848, allocations: 0.8572 MB / 2.076 GB, free: 260.9 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/2.848, allocations: 4 kB / 2.076 GB, free: 260.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002391/2.851, allocations: 1.92 MB / 2.078 GB, free: 258.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006292/2.851, allocations: 3.525 MB / 2.082 GB, free: 255.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/2.851, allocations: 11.25 kB / 2.082 GB, free: 255.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.844e-05/2.851, allocations: 19.94 kB / 2.082 GB, free: 255.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/2.853, allocations: 355.5 kB / 2.082 GB, free: 254.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.968e-05/2.853, allocations: 19.94 kB / 2.082 GB, free: 254.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/2.854, allocations: 233.9 kB / 2.082 GB, free: 254.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/2.854, allocations: 59.98 kB / 2.082 GB, free: 254.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/2.854, allocations: 4 kB / 2.082 GB, free: 254.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002003/2.856, allocations: 1.772 MB / 2.084 GB, free: 252.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.465e-06/2.856, allocations: 8.188 kB / 2.084 GB, free: 252.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/2.856, allocations: 24 kB / 2.084 GB, free: 252.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/2.857, allocations: 343.5 kB / 2.084 GB, free: 252.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/2.857, allocations: 23.92 kB / 2.084 GB, free: 252.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/2.858, allocations: 194.4 kB / 2.085 GB, free: 252.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/2.858, allocations: 63.98 kB / 2.085 GB, free: 252.1 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001021/2.859, allocations: 0.7502 MB / 2.085 GB, free: 251.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000242/2.86, allocations: 150.2 kB / 2.086 GB, free: 251.2 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001584/2.861, allocations: 1.216 MB / 2.087 GB, free: 249.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/2.861, allocations: 8 kB / 2.087 GB, free: 249.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/2.861, allocations: 0 / 2.087 GB, free: 249.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001122/2.863, allocations: 1.253 MB / 2.088 GB, free: 248.6 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00361/2.866, allocations: 2.888 MB / 2.091 GB, free: 245.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/2.866, allocations: 4 kB / 2.091 GB, free: 245.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007112/2.867, allocations: 175.8 kB / 2.091 GB, free: 245.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/2.867, allocations: 4 kB / 2.091 GB, free: 245.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.524e-05/2.867, allocations: 23.98 kB / 2.091 GB, free: 245.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/2.867, allocations: 4 kB / 2.091 GB, free: 245.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/2.867, allocations: 0 / 2.091 GB, free: 245.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001896/2.869, allocations: 1.92 MB / 2.093 GB, free: 243.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007535/2.87, allocations: 430.8 kB / 2.093 GB, free: 243 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002014/2.87, allocations: 24 kB / 2.093 GB, free: 243 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008018/2.871, allocations: 75.72 kB / 2.093 GB, free: 242.9 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.34e-05/2.871, allocations: 48.94 kB / 2.093 GB, free: 242.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.376e-05/2.871, allocations: 39.97 kB / 2.093 GB, free: 242.8 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001353/2.872, allocations: 1.257 MB / 2.095 GB, free: 241.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.4e-07/2.872, allocations: 3.938 kB / 2.095 GB, free: 241.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002279/2.874, allocations: 0.9707 MB / 2.096 GB, free: 240.6 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003101/2.878, allocations: 3.041 MB / 2.099 GB, free: 237.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002983/2.881, allocations: 2.301 MB / 2.101 GB, free: 235.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/2.881, allocations: 0 / 2.101 GB, free: 235.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005289/2.881, allocations: 0.5092 MB / 2.101 GB, free: 234.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003312/2.884, allocations: 0.8561 MB / 2.102 GB, free: 233.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00805/2.892, allocations: 11.52 MB / 2.113 GB, free: 222.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/2.894, allocations: 1.709 MB / 2.115 GB, free: 220.3 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002281/2.896, allocations: 0.9185 MB / 2.116 GB, free: 219.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007389/2.897, allocations: 0.6242 MB / 2.117 GB, free: 218.8 MB / 1.167 GB Notification: Performance of SimCode: time 8.81e-07/2.897, allocations: 0 / 2.117 GB, free: 218.8 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0688/2.965, allocations: 50.84 MB / 2.166 GB, free: 168.5 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/2.966, allocations: 245.7 kB / 2.166 GB, free: 168.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.421/6.386, allocations: 4 kB / 2.166 GB, free: 168.2 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat does not exist to compare? outputFormat=mat