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.154/2.154, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001132/0.001132, allocations: 182.1 kB / 498.1 MB, free: 5.715 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.58/1.58, allocations: 223.2 MB / 0.7948 GB, free: 17.98 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.001035/0.001035, allocations: 96.16 kB / 0.9346 GB, free: 6.254 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003487, allocations: 10.59 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3175, allocations: 142.4 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.22/1.537, allocations: 446.3 MB / 1.659 GB, free: 14.93 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003488/1.538, allocations: 98.59 kB / 1.659 GB, free: 14.88 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 4.924/6.462, allocations: 1.152 GB / 2.811 GB, free: 206.8 MB / 1.167 GB Notification: Performance of FrontEnd: time 5.44e-06/6.462, allocations: 0 / 2.811 GB, free: 206.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0004599/6.462, allocations: 59.03 kB / 2.811 GB, free: 206.8 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: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.009829/6.472, allocations: 2.63 MB / 2.813 GB, free: 205.9 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 6.098e-05/6.472, allocations: 11.22 kB / 2.813 GB, free: 205.9 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008495/6.473, allocations: 188.2 kB / 2.814 GB, free: 205.9 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003068/6.476, allocations: 458.5 kB / 2.814 GB, free: 205.8 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009031/6.485, allocations: 2.504 MB / 2.816 GB, free: 205.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/6.485, allocations: 103.1 kB / 2.817 GB, free: 205.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003716/6.486, allocations: 135.1 kB / 2.817 GB, free: 205.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002689/6.488, allocations: 1.411 MB / 2.818 GB, free: 205.2 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.852e-05/6.489, allocations: 6.781 kB / 2.818 GB, free: 205.2 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/6.489, allocations: 67.53 kB / 2.818 GB, free: 205.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.857e-05/6.489, allocations: 45.64 kB / 2.818 GB, free: 205.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002153/6.491, allocations: 1.078 MB / 2.819 GB, free: 205.1 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.009913/6.501, allocations: 7.245 MB / 2.826 GB, free: 201.2 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/6.503, allocations: 1.321 MB / 2.828 GB, free: 200.6 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004732/6.507, allocations: 2.621 MB / 2.83 GB, free: 199.3 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008745/6.508, allocations: 462.4 kB / 2.831 GB, free: 199.2 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000834/6.509, allocations: 87.25 kB / 2.831 GB, free: 199.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=68): time 4.068e-06/6.509, allocations: 0 / 2.831 GB, free: 199.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=68): time 0.002619/6.512, allocations: 1.25 MB / 2.832 GB, free: 198.9 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/6.512, allocations: 115.5 kB / 2.832 GB, free: 198.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001859/6.514, allocations: 1.3 MB / 2.833 GB, free: 198.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 7.806e-05/6.514, allocations: 41.89 kB / 2.833 GB, free: 198.6 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007381/6.515, allocations: 0.8863 MB / 2.834 GB, free: 198.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/6.515, allocations: 250.8 kB / 2.834 GB, free: 198.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.741e-05/6.515, allocations: 20.09 kB / 2.834 GB, free: 198.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001022/6.515, allocations: 343.8 kB / 2.835 GB, free: 198 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007224/6.516, allocations: 342 kB / 2.835 GB, free: 198 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009331/6.517, allocations: 0.7155 MB / 2.836 GB, free: 197.5 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/6.517, allocations: 470.8 kB / 2.836 GB, free: 197.5 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/6.517, allocations: 9.219 kB / 2.836 GB, free: 197.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002122/6.52, allocations: 1.218 MB / 2.837 GB, free: 197.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008476/6.52, allocations: 3.822 MB / 2.841 GB, free: 193.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/6.52, allocations: 11.28 kB / 2.841 GB, free: 193.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.052e-05/6.52, allocations: 17.31 kB / 2.841 GB, free: 193.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009625/6.521, allocations: 250.2 kB / 2.841 GB, free: 193.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.295e-05/6.522, allocations: 22.95 kB / 2.841 GB, free: 193.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/6.523, allocations: 144.5 kB / 2.842 GB, free: 193.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/6.523, allocations: 48.55 kB / 2.842 GB, free: 193.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/6.523, allocations: 4.969 kB / 2.842 GB, free: 193.3 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0019/6.525, allocations: 1.052 MB / 2.843 GB, free: 193.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/6.525, allocations: 13.78 kB / 2.843 GB, free: 193.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/6.525, allocations: 13.88 kB / 2.843 GB, free: 193.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008737/6.526, allocations: 244.6 kB / 2.843 GB, free: 193.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/6.526, allocations: 25.64 kB / 2.843 GB, free: 193.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/6.527, allocations: 140.6 kB / 2.843 GB, free: 193.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.629e-05/6.527, allocations: 49.94 kB / 2.843 GB, free: 193.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 118 * 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.00114/6.529, allocations: 497.7 kB / 2.844 GB, free: 193.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000224/6.529, allocations: 170 kB / 2.844 GB, free: 193 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00225/6.531, allocations: 1.106 MB / 2.845 GB, free: 192.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/6.531, allocations: 14.14 kB / 2.845 GB, free: 192.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/6.531, allocations: 0 / 2.845 GB, free: 192.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001479/6.533, allocations: 0.8105 MB / 2.846 GB, free: 192.8 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 postOpt removeSimpleEquations (simulation): time 0.004935/6.538, allocations: 2.567 MB / 2.848 GB, free: 192.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.886e-06/6.538, allocations: 7.172 kB / 2.848 GB, free: 192.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007592/6.538, allocations: 163 kB / 2.848 GB, free: 192.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001989/6.539, allocations: 28.28 kB / 2.848 GB, free: 192.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.598e-05/6.539, allocations: 25.8 kB / 2.848 GB, free: 192.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009299/6.54, allocations: 1.319 MB / 2.85 GB, free: 191.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/6.54, allocations: 7.469 kB / 2.85 GB, free: 191.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003106/6.543, allocations: 1.753 MB / 2.851 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/6.544, allocations: 367.7 kB / 2.852 GB, free: 190.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000202/6.544, allocations: 18.41 kB / 2.852 GB, free: 190.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/6.545, allocations: 119.6 kB / 2.852 GB, free: 190.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/6.545, allocations: 62.2 kB / 2.852 GB, free: 190.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.93e-05/6.545, allocations: 42.09 kB / 2.852 GB, free: 190.4 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001646/6.547, allocations: 1.076 MB / 2.853 GB, free: 190.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.303e-06/6.547, allocations: 0 / 2.853 GB, free: 190.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00373/6.551, allocations: 1.076 MB / 2.854 GB, free: 190.1 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 71 * 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.005305/6.556, allocations: 3.846 MB / 2.858 GB, free: 188.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003975/6.56, allocations: 1.548 MB / 2.859 GB, free: 188.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/6.56, allocations: 3.281 kB / 2.859 GB, free: 188.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001086/6.561, allocations: 0.5668 MB / 2.86 GB, free: 188.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004103/6.565, allocations: 0.858 MB / 2.861 GB, free: 188.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009696/6.575, allocations: 11.5 MB / 2.872 GB, free: 179.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008844/6.576, allocations: 1.429 MB / 2.873 GB, free: 178.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002196/6.578, allocations: 439.6 kB / 2.874 GB, free: 178.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009065/6.579, allocations: 0.7576 MB / 2.875 GB, free: 178.3 MB / 1.167 GB Notification: Performance of SimCode: time 1.092e-06/6.579, allocations: 0 / 2.875 GB, free: 178.3 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09923/6.678, allocations: 55.88 MB / 2.929 GB, free: 176.4 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/6.678, allocations: 265.8 kB / 2.929 GB, free: 176.1 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.251/10.93, allocations: 0 / 2.929 GB, free: 176.1 MB / 1.167 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