Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",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.18/2.18, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001282/0.001282, allocations: 192.7 kB / 487.4 MB, free: 5.055 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.626/1.626, allocations: 221.5 MB / 0.7824 GB, free: 1.016 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 102.1 kB / 0.9219 GB, free: 2.242 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.889e-05/2.891e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3161, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.301/1.617, allocations: 445.6 MB / 1.641 GB, free: 8.781 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003384/1.618, allocations: 90.58 kB / 1.641 GB, free: 8.738 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 4.38/5.998, allocations: 1.143 GB / 2.784 GB, free: 220.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.685e-06/5.998, allocations: 0 / 2.784 GB, free: 220.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002029/5.998, allocations: 56.58 kB / 2.784 GB, free: 220.8 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.004007/6.002, allocations: 2.142 MB / 2.786 GB, free: 219.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/6.002, allocations: 11.91 kB / 2.786 GB, free: 219.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001959/6.004, allocations: 461.3 kB / 2.787 GB, free: 219.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005216/6.009, allocations: 2.475 MB / 2.789 GB, free: 219.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.372e-05/6.009, allocations: 40.19 kB / 2.789 GB, free: 219.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001739/6.009, allocations: 88.83 kB / 2.789 GB, free: 219.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001553/6.011, allocations: 0.8631 MB / 2.79 GB, free: 219.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001773/6.013, allocations: 1.168 MB / 2.791 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.286e-05/6.013, allocations: 0 / 2.791 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/6.013, allocations: 3.938 kB / 2.791 GB, free: 218.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-05/6.013, allocations: 53.22 kB / 2.791 GB, free: 218.9 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.008641/6.022, allocations: 7.026 MB / 2.798 GB, free: 214.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/6.023, allocations: 1.179 MB / 2.799 GB, free: 214.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005152/6.023, allocations: 375.9 kB / 2.8 GB, free: 214.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005075/6.028, allocations: 2.618 MB / 2.802 GB, free: 213 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006267/6.029, allocations: 403.3 kB / 2.803 GB, free: 212.9 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008608/6.03, allocations: 71 kB / 2.803 GB, free: 212.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=66): time 3.456e-06/6.03, allocations: 0 / 2.803 GB, free: 212.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=66): time 0.002082/6.032, allocations: 0.8042 MB / 2.804 GB, free: 212.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.444e-05/6.032, allocations: 162.5 kB / 2.804 GB, free: 212.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001996/6.034, allocations: 1.182 MB / 2.805 GB, free: 212.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.414e-05/6.034, allocations: 29.61 kB / 2.805 GB, free: 212.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008476/6.035, allocations: 0.8941 MB / 2.806 GB, free: 212 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000226/6.035, allocations: 227.4 kB / 2.806 GB, free: 211.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.404e-05/6.035, allocations: 0 / 2.806 GB, free: 211.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001128/6.035, allocations: 343.9 kB / 2.806 GB, free: 211.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000418/6.036, allocations: 261.6 kB / 2.807 GB, free: 211.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007037/6.037, allocations: 0.6359 MB / 2.807 GB, free: 211.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/6.038, allocations: 451.1 kB / 2.808 GB, free: 211.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/6.038, allocations: 7.922 kB / 2.808 GB, free: 211.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002133/6.04, allocations: 1.068 MB / 2.809 GB, free: 210.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008518/6.041, allocations: 3.992 MB / 2.813 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/6.041, allocations: 11.64 kB / 2.813 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.147e-05/6.041, allocations: 18.31 kB / 2.813 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009181/6.042, allocations: 248.3 kB / 2.813 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.128e-05/6.042, allocations: 25.17 kB / 2.813 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/6.043, allocations: 107.7 kB / 2.813 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.81e-05/6.043, allocations: 49.39 kB / 2.813 GB, free: 206.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.848e-06/6.043, allocations: 5.906 kB / 2.813 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001714/6.045, allocations: 0.8541 MB / 2.814 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/6.045, allocations: 7.844 kB / 2.814 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/6.045, allocations: 15.81 kB / 2.814 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008466/6.046, allocations: 246.2 kB / 2.814 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/6.046, allocations: 24.36 kB / 2.814 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/6.047, allocations: 101.5 kB / 2.814 GB, free: 206.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.331e-05/6.048, allocations: 56.72 kB / 2.814 GB, free: 206.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 116 * Array equations: 1 * Algorithm blocks: 1 * 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.0002512/6.048, allocations: 139.7 kB / 2.814 GB, free: 206.6 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00161/6.049, allocations: 0.77 MB / 2.815 GB, free: 206.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/6.05, allocations: 164.8 kB / 2.815 GB, free: 206.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002006/6.052, allocations: 0.9602 MB / 2.816 GB, free: 206.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/6.052, allocations: 11.44 kB / 2.816 GB, free: 206.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/6.052, allocations: 0 / 2.816 GB, free: 206.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001119/6.053, allocations: 0.6776 MB / 2.817 GB, free: 206.2 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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 postOpt removeSimpleEquations (simulation): time 0.003795/6.057, allocations: 2.347 MB / 2.819 GB, free: 205.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/6.057, allocations: 3.125 kB / 2.819 GB, free: 205.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007013/6.057, allocations: 163.5 kB / 2.819 GB, free: 205.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001699/6.058, allocations: 33.42 kB / 2.819 GB, free: 205.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.137e-05/6.058, allocations: 14.8 kB / 2.819 GB, free: 205.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007144/6.058, allocations: 1.268 MB / 2.821 GB, free: 204.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/6.058, allocations: 9.359 kB / 2.821 GB, free: 204.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/6.06, allocations: 1.483 MB / 2.822 GB, free: 204 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006303/6.061, allocations: 354.7 kB / 2.822 GB, free: 203.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001769/6.061, allocations: 3.938 kB / 2.822 GB, free: 203.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009068/6.062, allocations: 91.56 kB / 2.823 GB, free: 203.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/6.062, allocations: 67.45 kB / 2.823 GB, free: 203.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.907e-05/6.062, allocations: 34.36 kB / 2.823 GB, free: 203.8 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001125/6.063, allocations: 0.889 MB / 2.823 GB, free: 203.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/6.063, allocations: 0 / 2.823 GB, free: 203.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0036/6.067, allocations: 1.046 MB / 2.824 GB, free: 203.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003973/6.071, allocations: 3.485 MB / 2.828 GB, free: 201.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001826/6.073, allocations: 1.305 MB / 2.829 GB, free: 201.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/6.073, allocations: 0 / 2.829 GB, free: 201.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006167/6.073, allocations: 480 kB / 2.83 GB, free: 201.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003146/6.077, allocations: 0.7302 MB / 2.83 GB, free: 201.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004989/6.082, allocations: 2.79 MB / 2.833 GB, free: 200.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007444/6.082, allocations: 1.432 MB / 2.834 GB, free: 200.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002257/6.085, allocations: 0.551 MB / 2.835 GB, free: 200 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007572/6.085, allocations: 0.7196 MB / 2.836 GB, free: 199.8 MB / 1.151 GB Notification: Performance of SimCode: time 6.91e-07/6.085, allocations: 0 / 2.836 GB, free: 199.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08051/6.166, allocations: 49.65 MB / 2.884 GB, free: 182.6 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/6.166, allocations: 173 kB / 2.884 GB, free: 182.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.053/10.22, allocations: 0 / 2.884 GB, free: 182.4 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat does not exist to compare? outputFormat=mat