Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",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.001105/0.001105, allocations: 108 kB / 15.6 MB, free: 132 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.001067/0.001067, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.231/1.231, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.407/2.407, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 70.48 kB / 0.8992 GB, free: 37.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.222, allocations: 157.4 MB / 1.053 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.053/0.2751, allocations: 67.47 MB / 1.119 GB, free: 4.594 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0215/0.2966, allocations: 18.58 MB / 1.137 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001845/0.2985, allocations: 99.44 kB / 1.137 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.006745/0.3052, allocations: 4.413 MB / 1.141 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.004929/0.3102, allocations: 2.713 MB / 1.144 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00432/0.3145, allocations: 2.36 MB / 1.146 GB, free: 8.383 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00799/0.3225, allocations: 8.153 MB / 1.154 GB, free: 212 kB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002021/0.3245, allocations: 1.915 MB / 1.156 GB, free: 14.24 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003104/0.3276, allocations: 2.057 MB / 1.158 GB, free: 12.18 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001453/0.3291, allocations: 1.536 MB / 1.16 GB, free: 10.64 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0002717/0.3294, allocations: 192 kB / 1.16 GB, free: 10.45 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003246/0.3326, allocations: 2.141 MB / 1.162 GB, free: 8.309 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0005171/0.3332, allocations: 0.6891 MB / 1.163 GB, free: 7.617 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.3342, allocations: 1.314 MB / 1.164 GB, free: 6.297 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003918/0.3381, allocations: 4.156 MB / 1.168 GB, free: 2.129 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.3382, allocations: 4 kB / 1.168 GB, free: 2.125 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3382, allocations: 4 kB / 1.168 GB, free: 2.121 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.747e-05/0.3382, allocations: 0 / 1.168 GB, free: 2.121 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.003961/0.3422, allocations: 3.079 MB / 1.171 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.3422, allocations: 12.62 kB / 1.171 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001829/0.3424, allocations: 193.8 kB / 1.171 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001752/0.3442, allocations: 476.4 kB / 1.172 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003579/0.3477, allocations: 2.751 MB / 1.174 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003748/0.3481, allocations: 170.5 kB / 1.174 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/0.3483, allocations: 132 kB / 1.175 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002256/0.3506, allocations: 1.452 MB / 1.176 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/0.3506, allocations: 3.906 kB / 1.176 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.3507, allocations: 56 kB / 1.176 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.839e-05/0.3508, allocations: 42.31 kB / 1.176 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002357/0.3531, allocations: 1.137 MB / 1.177 GB, free: 8.371 MB / 0.9356 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.00771/0.3609, allocations: 7.786 MB / 1.185 GB, free: 8 kB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00199/0.3629, allocations: 1.307 MB / 1.186 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009088/0.3638, allocations: 455.2 kB / 1.186 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003776/0.3676, allocations: 2.712 MB / 1.189 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009453/0.3685, allocations: 486.6 kB / 1.19 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=62): time 1.963e-06/0.3685, allocations: 0 / 1.19 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of matching and sorting (n=62): time 0.002787/0.3713, allocations: 1.268 MB / 1.191 GB, free: 9.406 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.3714, allocations: 111.4 kB / 1.191 GB, free: 9.27 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002073/0.3735, allocations: 2.056 MB / 1.193 GB, free: 7.188 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.28e-05/0.3735, allocations: 45.69 kB / 1.193 GB, free: 7.137 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006935/0.3742, allocations: 1.03 MB / 1.194 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.3744, allocations: 228.8 kB / 1.194 GB, free: 5.871 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003446/0.3748, allocations: 310.6 kB / 1.195 GB, free: 5.562 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 7.377e-05/0.3748, allocations: 309.1 kB / 1.195 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.3759, allocations: 0.5531 MB / 1.195 GB, free: 4.699 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.3771, allocations: 0.9697 MB / 1.196 GB, free: 3.551 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002146/0.3793, allocations: 1.434 MB / 1.198 GB, free: 1.961 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.3793, allocations: 8 kB / 1.198 GB, free: 1.953 MB / 0.9512 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.002882/0.3822, allocations: 1.765 MB / 1.199 GB, free: 176 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.3822, allocations: 35.77 kB / 1.199 GB, free: 136 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.3823, allocations: 12 kB / 1.199 GB, free: 124 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.3823, allocations: 20 kB / 1.199 GB, free: 104 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.3833, allocations: 307.5 kB / 1.2 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.008e-05/0.3833, allocations: 23.92 kB / 1.2 GB, free: 15.78 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/0.3844, allocations: 179 kB / 1.2 GB, free: 15.6 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.799e-05/0.3845, allocations: 64.08 kB / 1.2 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001481/0.386, allocations: 0.9872 MB / 1.201 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001256/0.3873, allocations: 0.9735 MB / 1.202 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002102/0.3894, allocations: 1.445 MB / 1.203 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.997e-06/0.3894, allocations: 0 / 1.203 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.002833/0.3922, allocations: 1.76 MB / 1.205 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.3923, allocations: 33.7 kB / 1.205 GB, free: 9.988 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.3923, allocations: 15.94 kB / 1.205 GB, free: 9.973 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.3923, allocations: 16 kB / 1.205 GB, free: 9.957 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009811/0.3933, allocations: 308.2 kB / 1.205 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.093e-05/0.3933, allocations: 27.86 kB / 1.205 GB, free: 9.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.3944, allocations: 163.4 kB / 1.206 GB, free: 9.469 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.222e-05/0.3945, allocations: 55.98 kB / 1.206 GB, free: 9.414 MB / 0.9669 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 (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.00019/0.3947, allocations: 252 kB / 1.206 GB, free: 9.16 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002312/0.3949, allocations: 209.3 kB / 1.206 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002234/0.3971, allocations: 1.088 MB / 1.207 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/0.3972, allocations: 19.98 kB / 1.207 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3972, allocations: 0 / 1.207 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001684/0.3989, allocations: 0.7842 MB / 1.208 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004185/0.4031, allocations: 2.904 MB / 1.211 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-06/0.4031, allocations: 0 / 1.211 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006853/0.4038, allocations: 160 kB / 1.211 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001246/0.4039, allocations: 28.84 kB / 1.211 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.143e-05/0.404, allocations: 23.98 kB / 1.211 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008634/0.4048, allocations: 1.426 MB / 1.212 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4049, allocations: 7.938 kB / 1.212 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002909/0.4078, allocations: 1.618 MB / 1.214 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004856/0.4083, allocations: 402.1 kB / 1.214 GB, free: 188 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002223/0.4085, allocations: 23.92 kB / 1.214 GB, free: 164 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009038/0.4094, allocations: 67.94 kB / 1.214 GB, free: 96 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.4095, allocations: 56.48 kB / 1.215 GB, free: 40 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.336e-05/0.4096, allocations: 43.95 kB / 1.215 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001649/0.4113, allocations: 1.442 MB / 1.216 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4113, allocations: 0 / 1.216 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002118/0.4134, allocations: 1.111 MB / 1.217 GB, free: 13.43 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * 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 (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.004345/0.4177, allocations: 2.74 MB / 1.22 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.004041/0.4218, allocations: 2.181 MB / 1.222 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4218, allocations: 0 / 1.222 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.4229, allocations: 0.5457 MB / 1.222 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003969/0.4269, allocations: 1.095 MB / 1.223 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02094/0.4479, allocations: 16.47 MB / 1.24 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.4489, allocations: 1.574 MB / 1.241 GB, free: 3.43 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001816/0.4508, allocations: 0.5245 MB / 1.242 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/0.4518, allocations: 0.8898 MB / 1.242 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of SimCode: time 3.21e-07/0.4518, allocations: 4 kB / 1.242 GB, free: 2.008 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.342/2.794, allocations: 59.12 MB / 1.3 GB, free: 158.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/16.39, allocations: 10.27 kB / 1.3 GB, free: 158.2 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)