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.179/2.179, 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.001492/0.001492, allocations: 177.1 kB / 498.1 MB, free: 5.738 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.506/1.506, allocations: 223.2 MB / 0.7948 GB, free: 17.96 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.001016/0.001016, allocations: 92.64 kB / 0.9346 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003811/0.0003812, allocations: 10.44 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3092, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.224/1.533, allocations: 453.2 MB / 1.665 GB, free: 8.152 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003482/1.534, allocations: 98.89 kB / 1.666 GB, free: 8.102 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 4.981/6.514, allocations: 1.185 GB / 2.851 GB, free: 210.7 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.515e-06/6.514, allocations: 0 / 2.851 GB, free: 210.7 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0005659/6.515, allocations: 55.08 kB / 2.851 GB, free: 210.7 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.01053/6.526, allocations: 2.521 MB / 2.853 GB, free: 209.8 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 6.233e-05/6.526, allocations: 6.938 kB / 2.853 GB, free: 209.8 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007668/6.526, allocations: 165.1 kB / 2.854 GB, free: 209.8 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003554/6.53, allocations: 0.5322 MB / 2.854 GB, free: 209.6 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008903/6.539, allocations: 2.323 MB / 2.856 GB, free: 209.3 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000178/6.539, allocations: 96.84 kB / 2.857 GB, free: 209.3 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005561/6.54, allocations: 122.2 kB / 2.857 GB, free: 209.3 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00402/6.544, allocations: 1.319 MB / 2.858 GB, free: 209 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.7e-05/6.544, allocations: 3.906 kB / 2.858 GB, free: 209 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002477/6.544, allocations: 44.69 kB / 2.858 GB, free: 209 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.574e-05/6.544, allocations: 45.14 kB / 2.858 GB, free: 209 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002815/6.547, allocations: 1.008 MB / 2.859 GB, free: 209 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.01288/6.56, allocations: 6.972 MB / 2.866 GB, free: 204.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002228/6.562, allocations: 1.31 MB / 2.867 GB, free: 204.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006546/6.569, allocations: 3.037 MB / 2.87 GB, free: 202.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001068/6.57, allocations: 434.1 kB / 2.87 GB, free: 202.4 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001079/6.571, allocations: 84.16 kB / 2.871 GB, free: 202.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=63): time 8.175e-06/6.571, allocations: 3.438 kB / 2.871 GB, free: 202.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=63): time 0.003361/6.574, allocations: 1.191 MB / 2.872 GB, free: 202.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/6.574, allocations: 113.2 kB / 2.872 GB, free: 202 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003691/6.578, allocations: 1.345 MB / 2.873 GB, free: 201.8 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.000121/6.578, allocations: 45.7 kB / 2.873 GB, free: 201.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001151/6.579, allocations: 0.876 MB / 2.874 GB, free: 201.5 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/6.58, allocations: 219.6 kB / 2.874 GB, free: 201.4 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.392e-05/6.58, allocations: 23.22 kB / 2.874 GB, free: 201.4 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001348/6.58, allocations: 343.5 kB / 2.875 GB, free: 201.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008801/6.581, allocations: 341.6 kB / 2.875 GB, free: 201.1 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/6.582, allocations: 0.7456 MB / 2.876 GB, free: 200.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/6.583, allocations: 466.3 kB / 2.876 GB, free: 200.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.766e-05/6.583, allocations: 3.844 kB / 2.876 GB, free: 200.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003104/6.586, allocations: 1.226 MB / 2.877 GB, free: 200.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001463/6.588, allocations: 4.448 MB / 2.882 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.675e-05/6.588, allocations: 13.28 kB / 2.882 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.936e-05/6.588, allocations: 18.62 kB / 2.882 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/6.589, allocations: 254.9 kB / 2.882 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.846e-05/6.589, allocations: 27.7 kB / 2.882 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001869/6.591, allocations: 127.1 kB / 2.882 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/6.591, allocations: 58.06 kB / 2.882 GB, free: 195.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/6.591, allocations: 5.594 kB / 2.882 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002443/6.594, allocations: 1.058 MB / 2.883 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.362e-05/6.594, allocations: 11.59 kB / 2.883 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/6.594, allocations: 14.78 kB / 2.883 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/6.595, allocations: 260.7 kB / 2.883 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.211e-05/6.595, allocations: 24.78 kB / 2.883 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001715/6.597, allocations: 123.7 kB / 2.884 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/6.597, allocations: 52.39 kB / 2.884 GB, free: 195.7 MB / 1.167 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 119 * 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.001266/6.598, allocations: 479.7 kB / 2.884 GB, free: 195.5 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005118/6.598, allocations: 167.5 kB / 2.884 GB, free: 195.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003024/6.601, allocations: 1.11 MB / 2.885 GB, free: 195.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/6.602, allocations: 13.39 kB / 2.885 GB, free: 195.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/6.602, allocations: 0 / 2.885 GB, free: 195.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001789/6.603, allocations: 0.946 MB / 2.886 GB, free: 195 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.006353/6.61, allocations: 2.363 MB / 2.889 GB, free: 194.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/6.61, allocations: 3.75 kB / 2.889 GB, free: 194.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000782/6.611, allocations: 149 kB / 2.889 GB, free: 194.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002291/6.611, allocations: 29.23 kB / 2.889 GB, free: 194.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-05/6.611, allocations: 21.95 kB / 2.889 GB, free: 194.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/6.612, allocations: 1.313 MB / 2.89 GB, free: 193.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/6.612, allocations: 1.125 kB / 2.89 GB, free: 193.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003291/6.615, allocations: 1.55 MB / 2.892 GB, free: 193 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/6.616, allocations: 351.6 kB / 2.892 GB, free: 192.8 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005995/6.617, allocations: 20.91 kB / 2.892 GB, free: 192.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/6.619, allocations: 116.4 kB / 2.892 GB, free: 192.8 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/6.619, allocations: 50.39 kB / 2.892 GB, free: 192.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.215e-05/6.619, allocations: 36.59 kB / 2.892 GB, free: 192.8 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.002593/6.621, allocations: 1.09 MB / 2.893 GB, free: 192.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 3.7e-07/6.621, allocations: 0 / 2.893 GB, free: 192.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.005137/6.627, allocations: 0.9785 MB / 2.894 GB, free: 192.5 MB / 1.167 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 63 * 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.007472/6.634, allocations: 3.428 MB / 2.897 GB, free: 191.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003608/6.638, allocations: 1.527 MB / 2.899 GB, free: 191.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/6.638, allocations: 6.625 kB / 2.899 GB, free: 191.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001179/6.639, allocations: 0.5265 MB / 2.899 GB, free: 191.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004196/6.643, allocations: 0.7171 MB / 2.9 GB, free: 191.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01368/6.657, allocations: 12.44 MB / 2.912 GB, free: 181.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001698/6.659, allocations: 1.393 MB / 2.914 GB, free: 180.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002705/6.661, allocations: 445 kB / 2.914 GB, free: 180.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001342/6.663, allocations: 0.7066 MB / 2.915 GB, free: 180.4 MB / 1.167 GB Notification: Performance of SimCode: time 2.344e-06/6.663, allocations: 3.875 kB / 2.915 GB, free: 180.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1147/6.777, allocations: 51.96 MB / 2.966 GB, free: 178.2 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002467/6.778, allocations: 248.1 kB / 2.966 GB, free: 178 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.268/11.05, allocations: 0 / 2.966 GB, free: 178 MB / 1.167 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