Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_11_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.001667/0.001667, allocations: 108 kB / 15.61 MB, free: 128 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.001756/0.001756, allocations: 196.8 kB / 16.53 MB, free: 6.668 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.285/1.285, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.475/2.475, allocations: 469.8 MB / 0.7424 GB, free: 7.406 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 72.83 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2299, allocations: 159.1 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04974/0.2796, allocations: 53.75 MB / 1.117 GB, free: 8.273 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0215/0.3012, allocations: 17.01 MB / 1.133 GB, free: 7.219 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0014/0.3026, allocations: 95.5 kB / 1.133 GB, free: 7.125 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.006964/0.3096, allocations: 4.349 MB / 1.138 GB, free: 2.77 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004228/0.3138, allocations: 2.4 MB / 1.14 GB, free: 368 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004243/0.3181, allocations: 2.282 MB / 1.142 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.007793/0.3259, allocations: 7.417 MB / 1.149 GB, free: 6.656 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001775/0.3277, allocations: 1.647 MB / 1.151 GB, free: 4.977 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.3305, allocations: 1.866 MB / 1.153 GB, free: 3.109 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001457/0.332, allocations: 1.4 MB / 1.154 GB, free: 1.703 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002526/0.3322, allocations: 175.9 kB / 1.154 GB, free: 1.531 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002996/0.3352, allocations: 2.008 MB / 1.156 GB, free: 15.52 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0005553/0.3358, allocations: 0.6463 MB / 1.157 GB, free: 14.87 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001048/0.3369, allocations: 1.216 MB / 1.158 GB, free: 13.65 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003757/0.3406, allocations: 3.844 MB / 1.162 GB, free: 9.793 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.3406, allocations: 0 / 1.162 GB, free: 9.793 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3407, allocations: 0 / 1.162 GB, free: 9.793 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.809e-05/0.3407, allocations: 4 kB / 1.162 GB, free: 9.789 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: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.003933/0.3446, allocations: 2.913 MB / 1.165 GB, free: 6.797 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.3447, allocations: 8.031 kB / 1.165 GB, free: 6.789 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001899/0.3448, allocations: 181 kB / 1.165 GB, free: 6.602 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002305/0.3472, allocations: 0.5511 MB / 1.165 GB, free: 6.047 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003698/0.3509, allocations: 2.61 MB / 1.168 GB, free: 3.363 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003628/0.3512, allocations: 154.1 kB / 1.168 GB, free: 3.211 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.3514, allocations: 124 kB / 1.168 GB, free: 3.09 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002377/0.3538, allocations: 1.363 MB / 1.17 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.3538, allocations: 0 / 1.17 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.3539, allocations: 52 kB / 1.17 GB, free: 1.578 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.637e-05/0.354, allocations: 42.08 kB / 1.17 GB, free: 1.535 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002583/0.3566, allocations: 1.117 MB / 1.171 GB, free: 420 kB / 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.008482/0.3651, allocations: 7.507 MB / 1.178 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002397/0.3675, allocations: 1.358 MB / 1.179 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009605/0.3685, allocations: 436.8 kB / 1.18 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004653/0.3731, allocations: 3.156 MB / 1.183 GB, free: 2.945 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009929/0.3741, allocations: 446.8 kB / 1.183 GB, free: 2.5 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=59): time 2.064e-06/0.3741, allocations: 4 kB / 1.183 GB, free: 2.496 MB / 0.9356 GB Notification: Performance of matching and sorting (n=59): time 0.002999/0.3771, allocations: 1.26 MB / 1.185 GB, free: 1.203 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.3772, allocations: 59.97 kB / 1.185 GB, free: 1.133 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002368/0.3796, allocations: 2.114 MB / 1.187 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.772e-05/0.3797, allocations: 41.7 kB / 1.187 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008094/0.3805, allocations: 1.018 MB / 1.188 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.3807, allocations: 224.9 kB / 1.188 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003863/0.381, allocations: 306.6 kB / 1.188 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.3812, allocations: 301.1 kB / 1.188 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/0.3823, allocations: 0.561 MB / 1.189 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/0.3838, allocations: 0.9964 MB / 1.19 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002399/0.3862, allocations: 1.467 MB / 1.191 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.3862, allocations: 4 kB / 1.191 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003104/0.3893, allocations: 1.786 MB / 1.193 GB, free: 7.91 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.3893, allocations: 33.7 kB / 1.193 GB, free: 7.871 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.3894, allocations: 12 kB / 1.193 GB, free: 7.859 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.642e-05/0.3894, allocations: 20 kB / 1.193 GB, free: 7.84 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.3904, allocations: 311.8 kB / 1.194 GB, free: 7.535 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.637e-05/0.3905, allocations: 23.88 kB / 1.194 GB, free: 7.512 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.3915, allocations: 187 kB / 1.194 GB, free: 7.328 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-05/0.3916, allocations: 63.98 kB / 1.194 GB, free: 7.266 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00162/0.3932, allocations: 0.9795 MB / 1.195 GB, free: 6.277 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001437/0.3947, allocations: 0.9925 MB / 1.196 GB, free: 5.102 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002364/0.397, allocations: 1.462 MB / 1.197 GB, free: 3.469 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.061e-06/0.397, allocations: 4 kB / 1.197 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003065/0.4001, allocations: 1.785 MB / 1.199 GB, free: 1.664 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.4002, allocations: 37.69 kB / 1.199 GB, free: 1.621 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.4002, allocations: 16.06 kB / 1.199 GB, free: 1.605 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.4002, allocations: 20 kB / 1.199 GB, free: 1.586 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.4012, allocations: 311.6 kB / 1.199 GB, free: 1.281 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.922e-05/0.4013, allocations: 31.8 kB / 1.199 GB, free: 1.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.4023, allocations: 155.6 kB / 1.199 GB, free: 1.098 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.295e-05/0.4024, allocations: 59.97 kB / 1.2 GB, free: 1.039 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.0002253/0.4026, allocations: 267 kB / 1.2 GB, free: 0.7734 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002438/0.4029, allocations: 201.4 kB / 1.2 GB, free: 0.5742 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00251/0.4054, allocations: 1.15 MB / 1.201 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.4054, allocations: 8 kB / 1.201 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4054, allocations: 0 / 1.201 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001945/0.4074, allocations: 0.9698 MB / 1.202 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004352/0.4117, allocations: 2.624 MB / 1.205 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4117, allocations: 0 / 1.205 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007015/0.4124, allocations: 151.8 kB / 1.205 GB, free: 11.54 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001245/0.4126, allocations: 28.84 kB / 1.205 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.767e-05/0.4126, allocations: 23.92 kB / 1.205 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.4137, allocations: 1.421 MB / 1.206 GB, free: 9.918 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.4137, allocations: 7.969 kB / 1.206 GB, free: 9.91 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003142/0.4169, allocations: 1.577 MB / 1.208 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005024/0.4174, allocations: 398 kB / 1.208 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000213/0.4176, allocations: 27.92 kB / 1.208 GB, free: 7.867 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008201/0.4184, allocations: 60.06 kB / 1.208 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.963e-05/0.4185, allocations: 56.48 kB / 1.208 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-05/0.4186, allocations: 35.97 kB / 1.208 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001764/0.4204, allocations: 1.465 MB / 1.21 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4204, allocations: 0 / 1.21 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002039/0.4224, allocations: 1.022 MB / 1.211 GB, free: 5.219 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.005431/0.4279, allocations: 2.913 MB / 1.214 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004035/0.4319, allocations: 2.176 MB / 1.216 GB, free: 220 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4319, allocations: 0 / 1.216 GB, free: 220 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.4331, allocations: 0.5487 MB / 1.216 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003192/0.4363, allocations: 0.9613 MB / 1.217 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02115/0.4574, allocations: 16.26 MB / 1.233 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.4586, allocations: 1.542 MB / 1.235 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001655/0.4602, allocations: 0.528 MB / 1.235 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/0.4613, allocations: 0.8546 MB / 1.236 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of SimCode: time 2.2e-07/0.4613, allocations: 0 / 1.236 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.853/5.315, allocations: 55.71 MB / 1.29 GB, free: 160.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.02/22.33, allocations: 0.5469 kB / 1.29 GB, free: 160.5 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)