Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001798/0.001798, allocations: 196.7 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.48/2.48, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 68.78 kB / 0.8992 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2344, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04658/0.281, allocations: 53.77 MB / 1.105 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0211/0.3021, allocations: 17 MB / 1.122 GB, free: 1.297 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002103/0.3042, allocations: 95.44 kB / 1.122 GB, free: 1.203 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.00716/0.3114, allocations: 4.349 MB / 1.126 GB, free: 12.84 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005003/0.3164, allocations: 2.406 MB / 1.129 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004574/0.321, allocations: 2.278 MB / 1.131 GB, free: 8.168 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.007932/0.3289, allocations: 7.413 MB / 1.138 GB, free: 0.7383 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002075/0.331, allocations: 1.643 MB / 1.14 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003277/0.3343, allocations: 1.877 MB / 1.142 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001814/0.3361, allocations: 1.4 MB / 1.143 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0003983/0.3365, allocations: 172 kB / 1.143 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003314/0.3398, allocations: 2.008 MB / 1.145 GB, free: 9.602 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006784/0.3405, allocations: 0.654 MB / 1.146 GB, free: 8.945 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001417/0.342, allocations: 1.212 MB / 1.147 GB, free: 7.727 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004676/0.3466, allocations: 3.844 MB / 1.151 GB, free: 3.871 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3467, allocations: 0 / 1.151 GB, free: 3.871 MB / 0.9044 GB Notification: Performance of FrontEnd: time 8.52e-07/0.3467, allocations: 0 / 1.151 GB, free: 3.871 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.526e-05/0.3467, allocations: 0 / 1.151 GB, free: 3.871 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.004554/0.3513, allocations: 2.924 MB / 1.154 GB, free: 0.8672 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 2.823e-05/0.3513, allocations: 8.625 kB / 1.154 GB, free: 0.8594 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001654/0.3515, allocations: 173 kB / 1.154 GB, free: 0.6797 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002379/0.3539, allocations: 0.555 MB / 1.154 GB, free: 124 kB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003602/0.3575, allocations: 2.61 MB / 1.157 GB, free: 13.44 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003593/0.3579, allocations: 150.2 kB / 1.157 GB, free: 13.29 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001661/0.3581, allocations: 124 kB / 1.157 GB, free: 13.17 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002292/0.3604, allocations: 1.373 MB / 1.158 GB, free: 11.7 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.3604, allocations: 4 kB / 1.158 GB, free: 11.7 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.3605, allocations: 51.98 kB / 1.158 GB, free: 11.64 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-05/0.3605, allocations: 38.08 kB / 1.158 GB, free: 11.61 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00259/0.3631, allocations: 1.12 MB / 1.16 GB, free: 10.48 MB / 0.92 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.008063/0.3712, allocations: 7.511 MB / 1.167 GB, free: 2.402 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/0.3735, allocations: 1.354 MB / 1.168 GB, free: 0.9375 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008973/0.3744, allocations: 433 kB / 1.169 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00442/0.3788, allocations: 3.152 MB / 1.172 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009379/0.3798, allocations: 434.9 kB / 1.172 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=59): time 3.837e-06/0.3798, allocations: 3.984 kB / 1.172 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of matching and sorting (n=59): time 0.002893/0.3827, allocations: 1.271 MB / 1.173 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.3827, allocations: 59.95 kB / 1.173 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002324/0.3851, allocations: 2.106 MB / 1.175 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.486e-05/0.3851, allocations: 45.7 kB / 1.176 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006862/0.3858, allocations: 1.018 MB / 1.177 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.386, allocations: 220.9 kB / 1.177 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003616/0.3864, allocations: 314.6 kB / 1.177 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 6.767e-05/0.3864, allocations: 309 kB / 1.177 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001082/0.3875, allocations: 0.5571 MB / 1.178 GB, free: 6.598 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.3889, allocations: 0.9925 MB / 1.179 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002224/0.3911, allocations: 1.471 MB / 1.18 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.3911, allocations: 4 kB / 1.18 GB, free: 3.773 MB / 0.9356 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.002993/0.3941, allocations: 1.778 MB / 1.182 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.3942, allocations: 33.7 kB / 1.182 GB, free: 1.941 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.3942, allocations: 12 kB / 1.182 GB, free: 1.93 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.3942, allocations: 20.69 kB / 1.182 GB, free: 1.91 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.3952, allocations: 315.5 kB / 1.182 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.611e-05/0.3953, allocations: 27.86 kB / 1.182 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.3964, allocations: 191.3 kB / 1.183 GB, free: 1.387 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-05/0.3965, allocations: 63.98 kB / 1.183 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001534/0.398, allocations: 0.9717 MB / 1.184 GB, free: 352 kB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001306/0.3993, allocations: 0.9964 MB / 1.185 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002214/0.4016, allocations: 1.462 MB / 1.186 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.224e-06/0.4016, allocations: 4 kB / 1.186 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.002967/0.4046, allocations: 1.785 MB / 1.188 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.4046, allocations: 33.7 kB / 1.188 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.4046, allocations: 12 kB / 1.188 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.4046, allocations: 20 kB / 1.188 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.4057, allocations: 319.9 kB / 1.188 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.139e-05/0.4057, allocations: 27.81 kB / 1.188 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.4068, allocations: 159.5 kB / 1.188 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.811e-05/0.4069, allocations: 59.98 kB / 1.188 GB, free: 11.11 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 151 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002121/0.4071, allocations: 267.8 kB / 1.189 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/0.4073, allocations: 197.4 kB / 1.189 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002427/0.4098, allocations: 1.139 MB / 1.19 GB, free: 9.492 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.4098, allocations: 8 kB / 1.19 GB, free: 9.484 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4098, allocations: 0 / 1.19 GB, free: 9.484 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001859/0.4117, allocations: 0.9699 MB / 1.191 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004142/0.4158, allocations: 2.624 MB / 1.193 GB, free: 5.766 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.4158, allocations: 0 / 1.193 GB, free: 5.766 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006985/0.4165, allocations: 155.8 kB / 1.194 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001157/0.4167, allocations: 28.83 kB / 1.194 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.758e-05/0.4167, allocations: 19.98 kB / 1.194 GB, free: 5.562 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008605/0.4176, allocations: 1.425 MB / 1.195 GB, free: 3.996 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4176, allocations: 7.969 kB / 1.195 GB, free: 3.988 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003007/0.4206, allocations: 1.581 MB / 1.197 GB, free: 2.375 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004806/0.4211, allocations: 398 kB / 1.197 GB, free: 1.965 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.4213, allocations: 19.94 kB / 1.197 GB, free: 1.945 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008606/0.4222, allocations: 71.83 kB / 1.197 GB, free: 1.875 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.678e-05/0.4223, allocations: 52.48 kB / 1.197 GB, free: 1.824 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.655e-05/0.4224, allocations: 31.98 kB / 1.197 GB, free: 1.793 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00167/0.4241, allocations: 1.465 MB / 1.199 GB, free: 324 kB / 0.9512 GB Notification: Performance of sort global known variables: time 2e-07/0.4241, allocations: 0 / 1.199 GB, free: 324 kB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002088/0.4262, allocations: 1.029 MB / 1.2 GB, free: 15.28 MB / 0.9669 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 (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004899/0.4311, allocations: 2.911 MB / 1.202 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004023/0.4351, allocations: 2.182 MB / 1.205 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4351, allocations: 1.812 kB / 1.205 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.4362, allocations: 0.5409 MB / 1.205 GB, free: 9.727 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003501/0.4397, allocations: 0.9627 MB / 1.206 GB, free: 8.789 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02118/0.4609, allocations: 16.27 MB / 1.222 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009743/0.4619, allocations: 1.542 MB / 1.223 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001784/0.4637, allocations: 0.5202 MB / 1.224 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009811/0.4647, allocations: 0.8546 MB / 1.225 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of SimCode: time 3.4e-07/0.4647, allocations: 0 / 1.225 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.598/3.063, allocations: 55.71 MB / 1.279 GB, free: 172.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.94/17, allocations: 8.453 kB / 1.279 GB, free: 172.8 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)