Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.746/2.746, allocations: 287.3 MB / 302.3 MB, free: 8.254 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.001533/0.001533, allocations: 192.1 kB / 370.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.159/2.159, allocations: 205.4 MB / 0.6295 GB, free: 10.54 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.00116/0.00116, allocations: 96.72 kB / 0.7428 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004911/0.0004913, allocations: 15.78 kB / 0.8657 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2146, allocations: 115.3 MB / 0.9783 GB, free: 28.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.06697/0.2816, allocations: 44.86 MB / 1.022 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.03804/0.3197, allocations: 15.62 MB / 1.037 GB, free: 15.63 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003235/0.323, allocations: 67.5 kB / 1.037 GB, free: 15.57 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.005289/0.3284, allocations: 0.9616 MB / 1.038 GB, free: 14.6 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.01087/0.3393, allocations: 2.33 MB / 1.041 GB, free: 12.27 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.01332/0.3526, allocations: 3.004 MB / 1.044 GB, free: 9.293 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.007769/0.3604, allocations: 2.765 MB / 1.046 GB, free: 6.52 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003291/0.3637, allocations: 1.242 MB / 1.047 GB, free: 5.254 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004623/0.3684, allocations: 1.366 MB / 1.049 GB, free: 3.883 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002697/0.3712, allocations: 0.9215 MB / 1.05 GB, free: 2.957 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.0006284/0.3718, allocations: 68 kB / 1.05 GB, free: 2.891 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005459/0.3773, allocations: 1.365 MB / 1.051 GB, free: 1.523 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.3786, allocations: 402.4 kB / 1.051 GB, free: 1.129 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.0009684/0.3796, allocations: 408.6 kB / 1.052 GB, free: 0.7227 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.006012/0.3856, allocations: 2.436 MB / 1.054 GB, free: 14.28 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3857, allocations: 4 kB / 1.054 GB, free: 14.27 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.845e-06/0.3857, allocations: 0 / 1.054 GB, free: 14.27 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.725e-05/0.3858, allocations: 0 / 1.054 GB, free: 14.27 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.006834/0.3926, allocations: 2.225 MB / 1.056 GB, free: 11.98 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.3927, allocations: 12.03 kB / 1.056 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005511/0.3932, allocations: 169 kB / 1.057 GB, free: 11.8 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003781/0.397, allocations: 489 kB / 1.057 GB, free: 11.32 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004966/0.4021, allocations: 1.54 MB / 1.059 GB, free: 9.727 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007363/0.4028, allocations: 158.1 kB / 1.059 GB, free: 9.57 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003933/0.4033, allocations: 120 kB / 1.059 GB, free: 9.453 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004631/0.4079, allocations: 1.376 MB / 1.06 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.951e-05/0.408, allocations: 0 / 1.06 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002002/0.4082, allocations: 48 kB / 1.06 GB, free: 7.93 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.515e-05/0.4083, allocations: 28 kB / 1.06 GB, free: 7.902 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005172/0.4135, allocations: 1.12 MB / 1.061 GB, free: 6.773 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.7253/1.139, allocations: 7.156 MB / 1.068 GB, free: 86.12 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004673/1.144, allocations: 1.415 MB / 1.07 GB, free: 85.53 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0078/1.151, allocations: 3.077 MB / 1.073 GB, free: 83.38 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001939/1.153, allocations: 455.5 kB / 1.073 GB, free: 83.23 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008903/1.154, allocations: 98.62 kB / 1.073 GB, free: 83.21 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=61): time 4.379e-06/1.154, allocations: 0 / 1.073 GB, free: 83.21 MB / 0.6823 GB Notification: Performance of matching and sorting (n=61): time 0.006099/1.16, allocations: 1.282 MB / 1.075 GB, free: 82.81 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/1.161, allocations: 138.2 kB / 1.075 GB, free: 82.66 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003949/1.165, allocations: 1.605 MB / 1.076 GB, free: 82.06 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002377/1.165, allocations: 47.28 kB / 1.076 GB, free: 82.02 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001023/1.166, allocations: 0.8861 MB / 1.077 GB, free: 81.38 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003539/1.166, allocations: 218 kB / 1.077 GB, free: 81.21 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/1.166, allocations: 21.03 kB / 1.077 GB, free: 81.2 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001129/1.167, allocations: 345.9 kB / 1.078 GB, free: 80.88 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001805/1.168, allocations: 390.1 kB / 1.078 GB, free: 80.77 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002215/1.171, allocations: 0.7867 MB / 1.079 GB, free: 80.15 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/1.173, allocations: 0.4958 MB / 1.079 GB, free: 79.96 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.885e-05/1.173, allocations: 3.531 kB / 1.079 GB, free: 79.96 MB / 0.6823 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.00538/1.178, allocations: 1.333 MB / 1.081 GB, free: 79.46 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000995/1.179, allocations: 4.372 MB / 1.085 GB, free: 74.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.29e-05/1.179, allocations: 12.52 kB / 1.085 GB, free: 74.82 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.893e-05/1.179, allocations: 21.8 kB / 1.085 GB, free: 74.82 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002159/1.182, allocations: 267.1 kB / 1.085 GB, free: 74.79 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.15e-05/1.182, allocations: 22.38 kB / 1.085 GB, free: 74.79 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002496/1.184, allocations: 139.2 kB / 1.085 GB, free: 74.76 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002531/1.184, allocations: 59.02 kB / 1.085 GB, free: 74.75 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/1.184, allocations: 3.719 kB / 1.085 GB, free: 74.75 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004673/1.189, allocations: 1.161 MB / 1.087 GB, free: 74.35 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.354e-05/1.189, allocations: 16.64 kB / 1.087 GB, free: 74.35 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.724e-05/1.189, allocations: 21.14 kB / 1.087 GB, free: 74.34 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002055/1.191, allocations: 268.9 kB / 1.087 GB, free: 74.32 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.738e-05/1.191, allocations: 26.19 kB / 1.087 GB, free: 74.31 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/1.194, allocations: 126.5 kB / 1.087 GB, free: 74.29 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003087/1.194, allocations: 56.3 kB / 1.087 GB, free: 74.29 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 (123): * Single equations (assignments): 119 * 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.001423/1.196, allocations: 483.8 kB / 1.087 GB, free: 73.94 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005495/1.196, allocations: 172 kB / 1.088 GB, free: 73.85 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004767/1.201, allocations: 1.158 MB / 1.089 GB, free: 73.44 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.503e-05/1.201, allocations: 9.453 kB / 1.089 GB, free: 73.44 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/1.201, allocations: 3.938 kB / 1.089 GB, free: 73.44 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003441/1.204, allocations: 0.9978 MB / 1.09 GB, free: 72.93 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.007861/1.212, allocations: 2.478 MB / 1.092 GB, free: 71.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/1.212, allocations: 2.25 kB / 1.092 GB, free: 71.78 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001452/1.214, allocations: 160.3 kB / 1.092 GB, free: 71.76 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003195/1.214, allocations: 34 kB / 1.092 GB, free: 71.75 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001642/1.214, allocations: 24.58 kB / 1.092 GB, free: 71.74 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001435/1.216, allocations: 1.376 MB / 1.094 GB, free: 70.38 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/1.216, allocations: 4.328 kB / 1.094 GB, free: 70.38 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00607/1.222, allocations: 1.638 MB / 1.095 GB, free: 69.62 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/1.223, allocations: 361.5 kB / 1.096 GB, free: 69.37 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004736/1.224, allocations: 22.61 kB / 1.096 GB, free: 69.36 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002026/1.226, allocations: 119.4 kB / 1.096 GB, free: 69.33 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002283/1.226, allocations: 63.22 kB / 1.096 GB, free: 69.32 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001382/1.226, allocations: 30.02 kB / 1.096 GB, free: 69.31 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002881/1.229, allocations: 1.137 MB / 1.097 GB, free: 68.85 MB / 0.6823 GB Notification: Performance of sort global known variables: time 7.31e-07/1.229, allocations: 5.219 kB / 1.097 GB, free: 68.85 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.004887/1.234, allocations: 0.9385 MB / 1.098 GB, free: 68.69 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.008686/1.243, allocations: 2.966 MB / 1.101 GB, free: 67.18 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.006216/1.249, allocations: 1.716 MB / 1.102 GB, free: 66.52 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/1.249, allocations: 1.406 kB / 1.102 GB, free: 66.52 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.002191/1.251, allocations: 0.5633 MB / 1.103 GB, free: 66.28 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006041/1.257, allocations: 0.7406 MB / 1.104 GB, free: 66.08 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/1.271, allocations: 12.32 MB / 1.116 GB, free: 55.55 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/1.273, allocations: 1.407 MB / 1.117 GB, free: 54.78 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.003294/1.276, allocations: 426.4 kB / 1.118 GB, free: 54.66 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001889/1.278, allocations: 0.7252 MB / 1.118 GB, free: 54.11 MB / 0.6823 GB Notification: Performance of SimCode: time 1.403e-06/1.278, allocations: 0 / 1.118 GB, free: 54.11 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1182/1.396, allocations: 47.19 MB / 1.164 GB, free: 16.81 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000284/1.397, allocations: 247.6 kB / 1.165 GB, free: 16.5 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.636/6.032, allocations: 0 / 1.165 GB, free: 16.5 MB / 0.6823 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)