Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_8_0_x_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 8.0.1-maint.8.0.x/package.mo): time 1.619/1.619, allocations: 288.4 MB / 303.3 MB, free: 8.148 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001272/0.001273, allocations: 180.5 kB / 372 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.4 MB / 0.6307 GB, free: 9.969 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007144/0.0007144, allocations: 86.38 kB / 0.744 GB, free: 5.898 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004299/0.00043, allocations: 12.47 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2166, allocations: 115.3 MB / 0.9796 GB, free: 27.57 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.03998/0.2567, allocations: 49.16 MB / 1.028 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02513/0.2818, allocations: 16.64 MB / 1.044 GB, free: 9.609 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003589/0.2855, allocations: 71.5 kB / 1.044 GB, free: 9.539 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.003308/0.2888, allocations: 0.7911 MB / 1.045 GB, free: 8.746 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.006409/0.2952, allocations: 1.873 MB / 1.047 GB, free: 6.867 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.008725/0.304, allocations: 2.735 MB / 1.049 GB, free: 4.152 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.008577/0.3126, allocations: 5.165 MB / 1.054 GB, free: 14.97 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002651/0.3152, allocations: 1.226 MB / 1.055 GB, free: 13.71 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003554/0.3188, allocations: 1.548 MB / 1.057 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00181/0.3207, allocations: 1.26 MB / 1.058 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0001866/0.3209, allocations: 68 kB / 1.058 GB, free: 10.83 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003482/0.3243, allocations: 1.517 MB / 1.06 GB, free: 9.309 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0005261/0.3249, allocations: 418.3 kB / 1.06 GB, free: 8.898 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0006215/0.3255, allocations: 408.6 kB / 1.061 GB, free: 8.492 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.003282/0.3288, allocations: 2.494 MB / 1.063 GB, free: 5.992 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3288, allocations: 7.938 kB / 1.063 GB, free: 5.984 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.357e-06/0.3288, allocations: 0 / 1.063 GB, free: 5.984 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.399e-05/0.3289, allocations: 3.938 kB / 1.063 GB, free: 5.98 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003994/0.3329, allocations: 2.245 MB / 1.065 GB, free: 3.668 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3329, allocations: 8.031 kB / 1.065 GB, free: 3.66 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002136/0.3331, allocations: 169 kB / 1.065 GB, free: 3.484 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002351/0.3355, allocations: 488.9 kB / 1.066 GB, free: 3.004 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003159/0.3387, allocations: 1.584 MB / 1.067 GB, free: 1.371 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003915/0.3391, allocations: 158.2 kB / 1.068 GB, free: 1.215 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001748/0.3393, allocations: 120 kB / 1.068 GB, free: 1.098 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4729/0.8122, allocations: 1.391 MB / 1.069 GB, free: 88.76 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.507e-05/0.8123, allocations: 1.312 kB / 1.069 GB, free: 88.76 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.8125, allocations: 47.06 kB / 1.069 GB, free: 88.76 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.668e-05/0.8126, allocations: 32.47 kB / 1.069 GB, free: 88.76 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003425/0.816, allocations: 1.129 MB / 1.07 GB, free: 88.71 MB / 0.6823 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.009581/0.8256, allocations: 7.006 MB / 1.077 GB, free: 83.69 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002908/0.8285, allocations: 1.435 MB / 1.078 GB, free: 82.79 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.8296, allocations: 435.8 kB / 1.079 GB, free: 82.66 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005469/0.8351, allocations: 3.088 MB / 1.082 GB, free: 80.22 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001392/0.8365, allocations: 473.1 kB / 1.082 GB, free: 80.05 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006138/0.8372, allocations: 82.66 kB / 1.082 GB, free: 80.03 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=60): time 3.086e-06/0.8372, allocations: 1.875 kB / 1.082 GB, free: 80.03 MB / 0.6823 GB Notification: Performance of matching and sorting (n=60): time 0.004108/0.8413, allocations: 1.295 MB / 1.084 GB, free: 79.53 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.487e-05/0.8414, allocations: 137.9 kB / 1.084 GB, free: 79.37 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00257/0.8439, allocations: 1.569 MB / 1.085 GB, free: 78.79 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.086e-05/0.844, allocations: 44.05 kB / 1.085 GB, free: 78.75 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007105/0.8448, allocations: 0.8873 MB / 1.086 GB, free: 78.05 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.8449, allocations: 220.6 kB / 1.086 GB, free: 77.89 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.845, allocations: 17.19 kB / 1.086 GB, free: 77.88 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.726e-05/0.8451, allocations: 350.4 kB / 1.087 GB, free: 77.55 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.8462, allocations: 394.4 kB / 1.087 GB, free: 77.45 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.8475, allocations: 0.7994 MB / 1.088 GB, free: 76.82 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.8486, allocations: 0.5039 MB / 1.088 GB, free: 76.59 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.949e-06/0.8486, allocations: 3.312 kB / 1.088 GB, free: 76.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002975/0.8516, allocations: 1.335 MB / 1.09 GB, free: 76.07 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001972/0.8518, allocations: 447 kB / 1.09 GB, free: 75.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-05/0.8519, allocations: 12.77 kB / 1.09 GB, free: 75.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.302e-05/0.8519, allocations: 17.95 kB / 1.09 GB, free: 75.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.8531, allocations: 266.4 kB / 1.09 GB, free: 75.48 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.645e-05/0.8531, allocations: 24.81 kB / 1.09 GB, free: 75.47 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001445/0.8546, allocations: 135.5 kB / 1.091 GB, free: 75.44 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.8547, allocations: 55.33 kB / 1.091 GB, free: 75.43 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/0.8547, allocations: 3.625 kB / 1.091 GB, free: 75.43 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002663/0.8574, allocations: 1.17 MB / 1.092 GB, free: 75 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.536e-05/0.8574, allocations: 11.75 kB / 1.092 GB, free: 75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/0.8575, allocations: 18.95 kB / 1.092 GB, free: 75 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.8585, allocations: 264.6 kB / 1.092 GB, free: 74.97 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.8e-05/0.8586, allocations: 27.06 kB / 1.092 GB, free: 74.96 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.8601, allocations: 130.7 kB / 1.092 GB, free: 74.93 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.777e-05/0.8602, allocations: 53.19 kB / 1.092 GB, free: 74.93 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (122): * Single equations (assignments): 118 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0009441/0.8611, allocations: 480.7 kB / 1.093 GB, free: 74.59 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002296/0.8614, allocations: 166.7 kB / 1.093 GB, free: 74.5 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/0.8642, allocations: 1.175 MB / 1.094 GB, free: 74.07 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/0.8642, allocations: 12.84 kB / 1.094 GB, free: 74.06 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.8642, allocations: 1.5 kB / 1.094 GB, free: 74.06 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001992/0.8662, allocations: 1.002 MB / 1.095 GB, free: 73.56 MB / 0.6823 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.005307/0.8715, allocations: 2.448 MB / 1.097 GB, free: 72.46 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.8715, allocations: 0 / 1.097 GB, free: 72.46 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008016/0.8724, allocations: 159.9 kB / 1.098 GB, free: 72.45 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002364/0.8726, allocations: 31.55 kB / 1.098 GB, free: 72.43 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.975e-05/0.8727, allocations: 23.41 kB / 1.098 GB, free: 72.42 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.8738, allocations: 1.365 MB / 1.099 GB, free: 71.07 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.8738, allocations: 5.469 kB / 1.099 GB, free: 71.06 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003921/0.8777, allocations: 1.62 MB / 1.101 GB, free: 70.36 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007438/0.8785, allocations: 358.8 kB / 1.101 GB, free: 70.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002231/0.8787, allocations: 18.23 kB / 1.101 GB, free: 70.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.8798, allocations: 119.9 kB / 1.101 GB, free: 70.07 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.8799, allocations: 54.86 kB / 1.101 GB, free: 70.06 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.662e-05/0.88, allocations: 28.67 kB / 1.101 GB, free: 70.05 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001713/0.8817, allocations: 1.116 MB / 1.102 GB, free: 69.61 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8818, allocations: 4 kB / 1.102 GB, free: 69.6 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003131/0.8849, allocations: 0.918 MB / 1.103 GB, free: 69.45 MB / 0.6823 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.x[1],mov.filter.x[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 (69): * Single equations (assignments): 60 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005087/0.89, allocations: 2.812 MB / 1.106 GB, free: 68.09 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003853/0.8939, allocations: 1.727 MB / 1.108 GB, free: 67.43 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.8939, allocations: 1.25 kB / 1.108 GB, free: 67.43 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.8951, allocations: 0.5704 MB / 1.108 GB, free: 67.13 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003902/0.8991, allocations: 0.7471 MB / 1.109 GB, free: 66.75 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02203/0.9211, allocations: 11.02 MB / 1.12 GB, free: 59.4 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008744/0.922, allocations: 1.379 MB / 1.121 GB, free: 58.38 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002147/0.9242, allocations: 417.9 kB / 1.121 GB, free: 58.18 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000825/0.925, allocations: 0.7231 MB / 1.122 GB, free: 57.57 MB / 0.6823 GB Notification: Performance of SimCode: time 1.062e-06/0.925, allocations: 0 / 1.122 GB, free: 57.57 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07425/0.9993, allocations: 47.67 MB / 1.169 GB, free: 14.01 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/0.9995, allocations: 256.7 kB / 1.169 GB, free: 13.66 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.725/4.724, allocations: 0 / 1.169 GB, free: 13.66 MB / 0.6823 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)