Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",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.389/2.389, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001339/0.001339, allocations: 196.4 kB / 487.4 MB, free: 5.051 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.702/1.702, allocations: 221.5 MB / 0.7824 GB, free: 0.9297 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.001083/0.001084, allocations: 101.3 kB / 0.9219 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.285e-05/2.254e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2834, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.255/1.538, allocations: 452.4 MB / 1.648 GB, free: 2.035 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/1.539, allocations: 97.56 kB / 1.648 GB, free: 1.988 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 4.334/5.872, allocations: 1.176 GB / 2.824 GB, free: 218.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.903e-06/5.872, allocations: 3.094 kB / 2.824 GB, free: 218.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002222/5.873, allocations: 57.67 kB / 2.824 GB, free: 218.6 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.00435/5.877, allocations: 2.024 MB / 2.826 GB, free: 217.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/5.877, allocations: 9.375 kB / 2.826 GB, free: 217.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002728/5.88, allocations: 0.5339 MB / 2.827 GB, free: 217.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005472/5.885, allocations: 2.314 MB / 2.829 GB, free: 216.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.095e-05/5.885, allocations: 34.69 kB / 2.829 GB, free: 216.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00017/5.886, allocations: 70.78 kB / 2.829 GB, free: 216.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001411/5.887, allocations: 0.7928 MB / 2.83 GB, free: 216.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/5.889, allocations: 1.066 MB / 2.831 GB, free: 215.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.238e-05/5.889, allocations: 2.875 kB / 2.831 GB, free: 215.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.462e-05/5.889, allocations: 14.33 kB / 2.831 GB, free: 215.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/5.889, allocations: 39.58 kB / 2.831 GB, free: 215.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 preOpt removeSimpleEquations (simulation): time 0.007972/5.897, allocations: 6.772 MB / 2.837 GB, free: 210.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000947/5.898, allocations: 1.154 MB / 2.839 GB, free: 209.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004047/5.898, allocations: 329.4 kB / 2.839 GB, free: 209.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004597/5.903, allocations: 3.028 MB / 2.842 GB, free: 207.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004982/5.903, allocations: 349.8 kB / 2.842 GB, free: 206.9 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005558/5.904, allocations: 81.38 kB / 2.842 GB, free: 206.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=62): time 3.938e-06/5.904, allocations: 0 / 2.842 GB, free: 206.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=62): time 0.004943/5.909, allocations: 1.31 MB / 2.844 GB, free: 206.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/5.909, allocations: 107.3 kB / 2.844 GB, free: 206.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001758/5.911, allocations: 1.231 MB / 2.845 GB, free: 205.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.391e-05/5.911, allocations: 28.39 kB / 2.845 GB, free: 205.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008009/5.911, allocations: 0.857 MB / 2.846 GB, free: 205.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001915/5.912, allocations: 213.7 kB / 2.846 GB, free: 205 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.201e-05/5.912, allocations: 0 / 2.846 GB, free: 205 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001105/5.912, allocations: 344.3 kB / 2.846 GB, free: 204.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004052/5.912, allocations: 256.8 kB / 2.847 GB, free: 204.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006386/5.913, allocations: 0.657 MB / 2.847 GB, free: 204 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004462/5.917, allocations: 0.9804 MB / 2.848 GB, free: 203.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/5.917, allocations: 3.812 kB / 2.848 GB, free: 203.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.006487/5.924, allocations: 1.606 MB / 2.85 GB, free: 203.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001623/5.926, allocations: 4.457 MB / 2.854 GB, free: 198.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-05/5.926, allocations: 12.84 kB / 2.854 GB, free: 198.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.01e-05/5.926, allocations: 15.81 kB / 2.854 GB, free: 198.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/5.927, allocations: 252 kB / 2.854 GB, free: 198.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.545e-05/5.927, allocations: 22.22 kB / 2.854 GB, free: 198.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001999/5.929, allocations: 103.9 kB / 2.854 GB, free: 198.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001838/5.929, allocations: 64.55 kB / 2.854 GB, free: 198.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/5.929, allocations: 4.656 kB / 2.854 GB, free: 198.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005542/5.935, allocations: 1.402 MB / 2.856 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/5.935, allocations: 10.62 kB / 2.856 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/5.935, allocations: 22.33 kB / 2.856 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009455/5.936, allocations: 248.4 kB / 2.856 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.095e-05/5.936, allocations: 28.11 kB / 2.856 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/5.937, allocations: 100.7 kB / 2.856 GB, free: 197.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/5.937, allocations: 53.55 kB / 2.856 GB, free: 197.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (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.0003256/5.938, allocations: 142.5 kB / 2.856 GB, free: 197.5 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005149/5.943, allocations: 1.28 MB / 2.858 GB, free: 197 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005007/5.944, allocations: 164.9 kB / 2.858 GB, free: 196.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005454/5.949, allocations: 1.512 MB / 2.859 GB, free: 196.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/5.949, allocations: 6 kB / 2.859 GB, free: 196.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/5.949, allocations: 0 / 2.859 GB, free: 196.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004417/5.953, allocations: 1.372 MB / 2.861 GB, free: 195.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.008344/5.962, allocations: 2.62 MB / 2.863 GB, free: 194 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/5.962, allocations: 0 / 2.863 GB, free: 194 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007179/5.963, allocations: 153 kB / 2.863 GB, free: 193.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002028/5.963, allocations: 27.31 kB / 2.863 GB, free: 193.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.784e-05/5.963, allocations: 14.77 kB / 2.863 GB, free: 193.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009592/5.964, allocations: 1.264 MB / 2.865 GB, free: 192.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/5.964, allocations: 2.25 kB / 2.865 GB, free: 192.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005527/5.969, allocations: 1.894 MB / 2.866 GB, free: 191.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009275/5.97, allocations: 335.6 kB / 2.867 GB, free: 191.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004477/5.971, allocations: 7.5 kB / 2.867 GB, free: 191.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/5.972, allocations: 85.53 kB / 2.867 GB, free: 191.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/5.972, allocations: 59.94 kB / 2.867 GB, free: 191.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.358e-05/5.972, allocations: 31.19 kB / 2.867 GB, free: 191.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00176/5.974, allocations: 0.9131 MB / 2.868 GB, free: 190.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.61e-07/5.974, allocations: 0 / 2.868 GB, free: 190.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004494/5.979, allocations: 0.9577 MB / 2.869 GB, free: 190.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (71): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.008363/5.987, allocations: 3.68 MB / 2.872 GB, free: 188.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002087/5.989, allocations: 1.288 MB / 2.874 GB, free: 188.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/5.989, allocations: 0 / 2.874 GB, free: 188.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006579/5.99, allocations: 452.1 kB / 2.874 GB, free: 187.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003421/5.993, allocations: 0.6071 MB / 2.875 GB, free: 187.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007415/6.001, allocations: 2.685 MB / 2.877 GB, free: 186.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/6.002, allocations: 1.406 MB / 2.879 GB, free: 185.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002886/6.005, allocations: 0.5961 MB / 2.879 GB, free: 184.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008517/6.006, allocations: 0.6715 MB / 2.88 GB, free: 184.3 MB / 1.151 GB Notification: Performance of SimCode: time 1.042e-06/6.006, allocations: 3.719 kB / 2.88 GB, free: 184.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08468/6.09, allocations: 46.56 MB / 2.925 GB, free: 140.2 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/6.091, allocations: 166.6 kB / 2.926 GB, free: 140.1 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.874/9.965, allocations: 0 / 2.926 GB, free: 140.1 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat does not exist to compare? outputFormat=mat