Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_9_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.00487/0.00487, allocations: 100.9 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 198.8 kB / 16.67 MB, free: 5.977 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.283/2.283, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 67.39 kB / 0.9504 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2341, allocations: 140.4 MB / 1.088 GB, free: 2.086 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.047/0.2811, allocations: 53.32 MB / 1.14 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01996/0.3011, allocations: 15.2 MB / 1.154 GB, free: 13.33 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002237/0.3034, allocations: 87.5 kB / 1.155 GB, free: 13.25 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.002605/0.306, allocations: 1.11 MB / 1.156 GB, free: 12.13 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.005145/0.3112, allocations: 2.35 MB / 1.158 GB, free: 9.777 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.004789/0.316, allocations: 2.267 MB / 1.16 GB, free: 7.523 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.005089/0.3211, allocations: 4.629 MB / 1.165 GB, free: 2.883 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001988/0.3231, allocations: 1.628 MB / 1.166 GB, free: 1.227 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00364/0.3267, allocations: 1.911 MB / 1.168 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.3284, allocations: 1.353 MB / 1.169 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002309/0.3287, allocations: 172 kB / 1.17 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00308/0.3317, allocations: 1.841 MB / 1.171 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004644/0.3322, allocations: 0.5177 MB / 1.172 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.3332, allocations: 1.034 MB / 1.173 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.004701/0.3379, allocations: 3.33 MB / 1.176 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.338, allocations: 0 / 1.176 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.824e-06/0.338, allocations: 0 / 1.176 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.069e-05/0.338, allocations: 0 / 1.176 GB, free: 7.043 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.004045/0.3421, allocations: 2.521 MB / 1.179 GB, free: 4.453 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.3421, allocations: 12.03 kB / 1.179 GB, free: 4.441 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001788/0.3423, allocations: 169.2 kB / 1.179 GB, free: 4.266 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002603/0.3449, allocations: 0.5322 MB / 1.179 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003116/0.348, allocations: 1.706 MB / 1.181 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.335e-05/0.3481, allocations: 86.2 kB / 1.181 GB, free: 1.887 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001871/0.3483, allocations: 127.9 kB / 1.181 GB, free: 1.762 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002457/0.3508, allocations: 1.37 MB / 1.182 GB, free: 304 kB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.078e-05/0.3508, allocations: 11.86 kB / 1.183 GB, free: 292 kB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.3509, allocations: 47.94 kB / 1.183 GB, free: 244 kB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.39e-05/0.351, allocations: 46.06 kB / 1.183 GB, free: 196 kB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002686/0.3537, allocations: 1.12 MB / 1.184 GB, free: 15.06 MB / 0.9512 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.00836/0.362, allocations: 7.114 MB / 1.191 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002501/0.3645, allocations: 1.39 MB / 1.192 GB, free: 5.891 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009999/0.3656, allocations: 444.9 kB / 1.192 GB, free: 5.457 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004906/0.3705, allocations: 3.145 MB / 1.195 GB, free: 1.969 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00108/0.3716, allocations: 466.8 kB / 1.196 GB, free: 1.5 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 2.765e-06/0.3716, allocations: 4 kB / 1.196 GB, free: 1.496 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.003319/0.3749, allocations: 1.256 MB / 1.197 GB, free: 216 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.375, allocations: 67.95 kB / 1.197 GB, free: 136 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001825/0.3768, allocations: 1.541 MB / 1.199 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 7.404e-05/0.3769, allocations: 41.7 kB / 1.199 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.000655/0.3775, allocations: 0.8761 MB / 1.2 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.3777, allocations: 212.9 kB / 1.2 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002925/0.378, allocations: 210.4 kB / 1.2 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.3782, allocations: 341.9 kB / 1.2 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009841/0.3792, allocations: 400.6 kB / 1.201 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.3804, allocations: 0.7749 MB / 1.201 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/0.3825, allocations: 1.156 MB / 1.203 GB, free: 10.24 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.116e-06/0.3826, allocations: 7.938 kB / 1.203 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002742/0.3853, allocations: 1.337 MB / 1.204 GB, free: 8.879 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.3854, allocations: 33.7 kB / 1.204 GB, free: 8.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.3854, allocations: 12 kB / 1.204 GB, free: 8.828 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.3854, allocations: 16 kB / 1.204 GB, free: 8.812 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.3864, allocations: 267.9 kB / 1.204 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/0.3865, allocations: 19.94 kB / 1.204 GB, free: 8.531 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.3875, allocations: 147.6 kB / 1.204 GB, free: 8.387 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-05/0.3876, allocations: 59.95 kB / 1.204 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001407/0.389, allocations: 0.6892 MB / 1.205 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001194/0.3902, allocations: 0.7593 MB / 1.206 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002081/0.3923, allocations: 1.128 MB / 1.207 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.947e-06/0.3923, allocations: 4.188 kB / 1.207 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002674/0.395, allocations: 1.301 MB / 1.208 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/0.395, allocations: 42.27 kB / 1.208 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.395, allocations: 8 kB / 1.208 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.3951, allocations: 20 kB / 1.208 GB, free: 4.02 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009935/0.3961, allocations: 263.6 kB / 1.209 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/0.3961, allocations: 19.94 kB / 1.209 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009914/0.3971, allocations: 128 kB / 1.209 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.367e-05/0.3972, allocations: 51.98 kB / 1.209 GB, free: 3.566 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 (120): * Single equations (assignments): 118 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.0002471/0.3974, allocations: 255.8 kB / 1.209 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.3977, allocations: 161.9 kB / 1.209 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002676/0.4003, allocations: 1.151 MB / 1.21 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.4004, allocations: 12 kB / 1.21 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4004, allocations: 3.938 kB / 1.21 GB, free: 1.969 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002062/0.4025, allocations: 0.9939 MB / 1.211 GB, free: 0.9219 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004508/0.407, allocations: 2.494 MB / 1.214 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.407, allocations: 4 kB / 1.214 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007582/0.4078, allocations: 143.8 kB / 1.214 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001442/0.4079, allocations: 40.83 kB / 1.214 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-05/0.408, allocations: 19.98 kB / 1.214 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009597/0.4089, allocations: 1.41 MB / 1.215 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.409, allocations: 11.91 kB / 1.215 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003292/0.4123, allocations: 1.598 MB / 1.217 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005434/0.4128, allocations: 350.5 kB / 1.217 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/0.413, allocations: 19.92 kB / 1.217 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000839/0.4138, allocations: 59.94 kB / 1.217 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.414, allocations: 60.42 kB / 1.217 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.689e-05/0.414, allocations: 23.98 kB / 1.217 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001337/0.4154, allocations: 1.105 MB / 1.218 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4154, allocations: 0 / 1.218 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002041/0.4174, allocations: 0.8614 MB / 1.219 GB, free: 8.445 MB / 0.9825 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 (70): * Single equations (assignments): 61 * 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.005007/0.4224, allocations: 2.772 MB / 1.222 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.003597/0.4261, allocations: 1.647 MB / 1.224 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4261, allocations: 1.75 kB / 1.224 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.4273, allocations: 0.5642 MB / 1.224 GB, free: 3.531 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002968/0.4303, allocations: 0.7702 MB / 1.225 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01752/0.4478, allocations: 11.84 MB / 1.236 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000828/0.4487, allocations: 1.36 MB / 1.238 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001424/0.4501, allocations: 414 kB / 1.238 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008444/0.4509, allocations: 0.714 MB / 1.239 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of SimCode: time 5.01e-07/0.451, allocations: 3.938 kB / 1.239 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.29/1.741, allocations: 45.43 MB / 1.283 GB, free: 156.5 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/14.87, allocations: 16.7 kB / 1.283 GB, free: 156.5 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)