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.285/2.285, allocations: 387.1 MB / 399.7 MB, free: 9.457 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.00132/0.00132, allocations: 184 kB / 492.3 MB, free: 0.6016 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.777/1.777, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.001197/0.001197, allocations: 94.58 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.932e-05/3.934e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3474, allocations: 142.3 MB / 1.212 GB, free: 38.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.375/1.723, allocations: 446.3 MB / 1.648 GB, free: 400 kB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/1.723, allocations: 91.95 kB / 1.648 GB, free: 356 kB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 4.816/6.539, allocations: 1.148 GB / 2.797 GB, free: 219.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.142e-06/6.539, allocations: 3.969 kB / 2.797 GB, free: 219.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003923/6.539, allocations: 52.98 kB / 2.797 GB, free: 219.2 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.006348/6.545, allocations: 2.132 MB / 2.799 GB, free: 218.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/6.546, allocations: 15.31 kB / 2.799 GB, free: 218.1 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006269/6.546, allocations: 174 kB / 2.799 GB, free: 218.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002702/6.549, allocations: 468.4 kB / 2.8 GB, free: 218 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006645/6.556, allocations: 2.475 MB / 2.802 GB, free: 217.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/6.556, allocations: 98.17 kB / 2.802 GB, free: 217.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002831/6.556, allocations: 143.4 kB / 2.802 GB, free: 217.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002719/6.559, allocations: 1.332 MB / 2.803 GB, free: 217.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.898e-05/6.559, allocations: 10.14 kB / 2.803 GB, free: 217.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/6.559, allocations: 59.28 kB / 2.804 GB, free: 217.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.114e-05/6.559, allocations: 46.75 kB / 2.804 GB, free: 217.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/6.561, allocations: 0.9277 MB / 2.804 GB, free: 217.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 preOpt removeSimpleEquations (simulation): time 0.01064/6.571, allocations: 7.244 MB / 2.812 GB, free: 213.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/6.573, allocations: 1.18 MB / 2.813 GB, free: 212.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005757/6.573, allocations: 384.6 kB / 2.813 GB, free: 212.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00482/6.578, allocations: 2.651 MB / 2.816 GB, free: 210.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005906/6.579, allocations: 430.7 kB / 2.816 GB, free: 210.5 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006932/6.579, allocations: 91.05 kB / 2.816 GB, free: 210.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=66): time 2.554e-06/6.579, allocations: 0 / 2.816 GB, free: 210.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=66): time 0.001227/6.581, allocations: 0.7238 MB / 2.817 GB, free: 210.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/6.581, allocations: 162.4 kB / 2.817 GB, free: 210 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001715/6.582, allocations: 1.286 MB / 2.818 GB, free: 209.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.086e-05/6.583, allocations: 44.58 kB / 2.818 GB, free: 209.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006756/6.583, allocations: 0.8953 MB / 2.819 GB, free: 208.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/6.583, allocations: 235.6 kB / 2.819 GB, free: 208.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/6.583, allocations: 22.84 kB / 2.819 GB, free: 208.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.752e-05/6.584, allocations: 339.8 kB / 2.82 GB, free: 208.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004109/6.584, allocations: 269 kB / 2.82 GB, free: 208.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006309/6.585, allocations: 0.6552 MB / 2.821 GB, free: 207.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005381/6.585, allocations: 396.7 kB / 2.821 GB, free: 207.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.371e-06/6.585, allocations: 0 / 2.821 GB, free: 207.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001612/6.587, allocations: 1.084 MB / 2.822 GB, free: 207 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008961/6.588, allocations: 4.002 MB / 2.826 GB, free: 202.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/6.588, allocations: 7.906 kB / 2.826 GB, free: 202.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.316e-05/6.588, allocations: 14.72 kB / 2.826 GB, free: 202.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009226/6.589, allocations: 245.8 kB / 2.826 GB, free: 202.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.433e-05/6.589, allocations: 22.03 kB / 2.826 GB, free: 202.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/6.59, allocations: 117.3 kB / 2.826 GB, free: 202.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.562e-05/6.59, allocations: 64.31 kB / 2.826 GB, free: 202.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/6.59, allocations: 3.719 kB / 2.826 GB, free: 202.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001323/6.592, allocations: 0.9031 MB / 2.827 GB, free: 202.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/6.592, allocations: 10.72 kB / 2.827 GB, free: 202.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/6.592, allocations: 19.25 kB / 2.827 GB, free: 202.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008597/6.593, allocations: 238.3 kB / 2.828 GB, free: 202.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/6.593, allocations: 30.25 kB / 2.828 GB, free: 202.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/6.594, allocations: 119.8 kB / 2.828 GB, free: 202.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.729e-05/6.594, allocations: 54.5 kB / 2.828 GB, free: 202.3 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.0002657/6.594, allocations: 172 kB / 2.828 GB, free: 202.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/6.594, allocations: 164.3 kB / 2.828 GB, free: 202.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/6.596, allocations: 0.9593 MB / 2.829 GB, free: 201.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/6.596, allocations: 9.375 kB / 2.829 GB, free: 201.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/6.596, allocations: 0 / 2.829 GB, free: 201.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008952/6.597, allocations: 0.6638 MB / 2.83 GB, free: 201.5 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.00398/6.601, allocations: 2.546 MB / 2.832 GB, free: 200.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/6.601, allocations: 3.156 kB / 2.832 GB, free: 200.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007301/6.602, allocations: 159.1 kB / 2.832 GB, free: 200.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001911/6.602, allocations: 30.52 kB / 2.832 GB, free: 200.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.939e-05/6.602, allocations: 30.11 kB / 2.832 GB, free: 200.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007853/6.603, allocations: 1.319 MB / 2.834 GB, free: 198.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/6.603, allocations: 3.75 kB / 2.834 GB, free: 198.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001923/6.605, allocations: 1.511 MB / 2.835 GB, free: 198 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007784/6.606, allocations: 365.6 kB / 2.836 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/6.606, allocations: 26.12 kB / 2.836 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/6.607, allocations: 110 kB / 2.836 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/6.607, allocations: 64.28 kB / 2.836 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.928e-05/6.607, allocations: 40.7 kB / 2.836 GB, free: 197.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001476/6.609, allocations: 1.058 MB / 2.837 GB, free: 197.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.51e-07/6.609, allocations: 0 / 2.837 GB, free: 197.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003245/6.612, allocations: 1.058 MB / 2.838 GB, free: 196.9 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.003997/6.616, allocations: 3.539 MB / 2.841 GB, free: 194.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002108/6.618, allocations: 1.38 MB / 2.843 GB, free: 194.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/6.618, allocations: 3.938 kB / 2.843 GB, free: 194.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007103/6.619, allocations: 499.8 kB / 2.843 GB, free: 194.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003827/6.623, allocations: 0.8438 MB / 2.844 GB, free: 194 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005751/6.629, allocations: 2.876 MB / 2.847 GB, free: 192.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008577/6.629, allocations: 1.44 MB / 2.848 GB, free: 192 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002554/6.632, allocations: 0.5751 MB / 2.849 GB, free: 192 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008006/6.633, allocations: 0.7175 MB / 2.849 GB, free: 191.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.674e-06/6.633, allocations: 0 / 2.849 GB, free: 191.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09811/6.731, allocations: 60.11 MB / 2.908 GB, free: 147.6 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/6.731, allocations: 218.5 kB / 2.908 GB, free: 147.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.288/11.02, allocations: 0 / 2.908 GB, free: 147.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