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.366/2.366, allocations: 387.1 MB / 399.7 MB, free: 9.52 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.001488/0.001488, allocations: 180.2 kB / 492.3 MB, free: 0.6328 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.661/1.661, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.001102/0.001102, allocations: 93.27 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.621e-05/3.623e-05, allocations: 6.875 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3448, allocations: 142.3 MB / 1.212 GB, free: 38.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.365/1.71, allocations: 453.1 MB / 1.655 GB, free: 9.66 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/1.71, allocations: 101.9 kB / 1.655 GB, free: 9.609 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 4.893/6.603, allocations: 1.182 GB / 2.837 GB, free: 206.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.735e-06/6.603, allocations: 0 / 2.837 GB, free: 206.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003951/6.604, allocations: 54.39 kB / 2.837 GB, free: 206.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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.006107/6.61, allocations: 2.033 MB / 2.839 GB, free: 205.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/6.61, allocations: 13.06 kB / 2.839 GB, free: 205.5 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004938/6.61, allocations: 167.2 kB / 2.839 GB, free: 205.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003407/6.614, allocations: 0.5279 MB / 2.84 GB, free: 205.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008906/6.623, allocations: 2.3 MB / 2.842 GB, free: 203.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/6.623, allocations: 95.77 kB / 2.842 GB, free: 203.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006034/6.624, allocations: 119.3 kB / 2.842 GB, free: 203.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003619/6.627, allocations: 1.219 MB / 2.843 GB, free: 202.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.338e-05/6.627, allocations: 2.344 kB / 2.843 GB, free: 202.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001992/6.628, allocations: 55.67 kB / 2.843 GB, free: 202.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.827e-05/6.628, allocations: 41.39 kB / 2.843 GB, free: 202.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002341/6.63, allocations: 0.8511 MB / 2.844 GB, free: 202.4 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.01386/6.644, allocations: 6.971 MB / 2.851 GB, free: 196.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/6.645, allocations: 1.147 MB / 2.852 GB, free: 195.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005718/6.646, allocations: 326.4 kB / 2.852 GB, free: 195.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005518/6.651, allocations: 3.072 MB / 2.855 GB, free: 192.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005916/6.652, allocations: 360.5 kB / 2.856 GB, free: 192.2 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007954/6.653, allocations: 88.66 kB / 2.856 GB, free: 192.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=62): time 5.59e-06/6.653, allocations: 0 / 2.856 GB, free: 192.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=62): time 0.001511/6.654, allocations: 0.6833 MB / 2.856 GB, free: 191.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/6.654, allocations: 113.9 kB / 2.857 GB, free: 191.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002946/6.657, allocations: 1.319 MB / 2.858 GB, free: 191 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001165/6.657, allocations: 46.77 kB / 2.858 GB, free: 191 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.00113/6.659, allocations: 0.8851 MB / 2.859 GB, free: 190.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002677/6.659, allocations: 214.1 kB / 2.859 GB, free: 190 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/6.659, allocations: 20.38 kB / 2.859 GB, free: 190 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001303/6.659, allocations: 345.7 kB / 2.859 GB, free: 189.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004821/6.66, allocations: 259.5 kB / 2.86 GB, free: 189.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007377/6.66, allocations: 0.6758 MB / 2.86 GB, free: 188.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006861/6.661, allocations: 392.1 kB / 2.861 GB, free: 188.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/6.661, allocations: 3.969 kB / 2.861 GB, free: 188.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002112/6.663, allocations: 1.078 MB / 2.862 GB, free: 188.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001777/6.665, allocations: 4.447 MB / 2.866 GB, free: 183.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.581e-05/6.665, allocations: 14.86 kB / 2.866 GB, free: 183.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.786e-05/6.665, allocations: 18.19 kB / 2.866 GB, free: 183.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/6.666, allocations: 256.6 kB / 2.866 GB, free: 183.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.204e-05/6.666, allocations: 22.7 kB / 2.866 GB, free: 183.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001715/6.668, allocations: 136.9 kB / 2.866 GB, free: 183.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/6.668, allocations: 54.48 kB / 2.866 GB, free: 183.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/6.668, allocations: 3.781 kB / 2.866 GB, free: 183.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00162/6.67, allocations: 0.9102 MB / 2.867 GB, free: 182.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.056e-05/6.67, allocations: 10.94 kB / 2.867 GB, free: 182.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.658e-05/6.67, allocations: 23.48 kB / 2.867 GB, free: 182.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009416/6.671, allocations: 249.5 kB / 2.868 GB, free: 182.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.209e-05/6.671, allocations: 28.64 kB / 2.868 GB, free: 182.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/6.672, allocations: 121.8 kB / 2.868 GB, free: 182.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/6.672, allocations: 56.7 kB / 2.868 GB, free: 182.8 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.0003158/6.673, allocations: 176.3 kB / 2.868 GB, free: 182.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004345/6.673, allocations: 167.7 kB / 2.868 GB, free: 182.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002241/6.675, allocations: 0.9522 MB / 2.869 GB, free: 182 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/6.675, allocations: 13.52 kB / 2.869 GB, free: 182 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/6.675, allocations: 3.875 kB / 2.869 GB, free: 182 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001035/6.677, allocations: 0.8018 MB / 2.87 GB, free: 181.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.004911/6.681, allocations: 2.22 MB / 2.872 GB, free: 180 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/6.681, allocations: 0 / 2.872 GB, free: 180 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006932/6.682, allocations: 151.3 kB / 2.872 GB, free: 180 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001909/6.682, allocations: 34.59 kB / 2.872 GB, free: 180 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.515e-05/6.682, allocations: 19.8 kB / 2.872 GB, free: 179.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009175/6.683, allocations: 1.308 MB / 2.874 GB, free: 178.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/6.683, allocations: 0 / 2.874 GB, free: 178.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/6.685, allocations: 1.338 MB / 2.875 GB, free: 177.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008519/6.686, allocations: 340.9 kB / 2.875 GB, free: 177.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00044/6.687, allocations: 15.22 kB / 2.875 GB, free: 177.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/6.688, allocations: 127.6 kB / 2.875 GB, free: 177.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/6.688, allocations: 50.73 kB / 2.875 GB, free: 177.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.86e-05/6.688, allocations: 34.41 kB / 2.875 GB, free: 177.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001874/6.69, allocations: 1.064 MB / 2.876 GB, free: 176.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.61e-07/6.69, allocations: 2.219 kB / 2.876 GB, free: 176.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004203/6.694, allocations: 0.9734 MB / 2.877 GB, free: 176.3 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.005154/6.699, allocations: 3.177 MB / 2.88 GB, free: 173.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002387/6.702, allocations: 1.373 MB / 2.882 GB, free: 172.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/6.702, allocations: 2.156 kB / 2.882 GB, free: 172.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007257/6.702, allocations: 462 kB / 2.882 GB, free: 171.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003808/6.706, allocations: 0.7123 MB / 2.883 GB, free: 170.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00785/6.714, allocations: 2.776 MB / 2.886 GB, free: 168.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/6.715, allocations: 1.397 MB / 2.887 GB, free: 166.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003078/6.718, allocations: 0.6086 MB / 2.888 GB, free: 166.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009199/6.719, allocations: 0.6828 MB / 2.888 GB, free: 165.7 MB / 1.151 GB Notification: Performance of SimCode: time 9.92e-07/6.719, allocations: 0 / 2.888 GB, free: 165.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0916/6.811, allocations: 56.25 MB / 2.943 GB, free: 111.2 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/6.811, allocations: 212.1 kB / 2.943 GB, free: 110.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.336/11.15, allocations: 0 / 2.943 GB, free: 110.9 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