Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_9_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.007181/0.007181, allocations: 102 kB / 15.73 MB, free: 6.035 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.00172/0.00172, allocations: 187.9 kB / 16.67 MB, free: 5.969 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.256/2.256, allocations: 390.3 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 63.52 kB / 0.9504 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2385, allocations: 140.4 MB / 1.088 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05926/0.2978, allocations: 67.03 MB / 1.153 GB, free: 14.8 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02183/0.3197, allocations: 16.75 MB / 1.169 GB, free: 14 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003229/0.3229, allocations: 99.38 kB / 1.169 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.003348/0.3263, allocations: 1.169 MB / 1.171 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.006768/0.3331, allocations: 2.669 MB / 1.173 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.005249/0.3384, allocations: 2.347 MB / 1.175 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.005839/0.3443, allocations: 5.367 MB / 1.181 GB, free: 2.332 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002125/0.3464, allocations: 1.892 MB / 1.183 GB, free: 396 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003405/0.3498, allocations: 2.091 MB / 1.185 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001543/0.3514, allocations: 1.503 MB / 1.186 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0002534/0.3516, allocations: 192 kB / 1.186 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003255/0.3549, allocations: 1.973 MB / 1.188 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0005601/0.3555, allocations: 0.5489 MB / 1.189 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.001008/0.3565, allocations: 1.135 MB / 1.19 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.003991/0.3605, allocations: 3.638 MB / 1.193 GB, free: 5.285 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3605, allocations: 0 / 1.193 GB, free: 5.285 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3605, allocations: 0 / 1.193 GB, free: 5.285 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.234e-05/0.3605, allocations: 4 kB / 1.193 GB, free: 5.281 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.004067/0.3646, allocations: 2.675 MB / 1.196 GB, free: 2.531 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.3646, allocations: 12.03 kB / 1.196 GB, free: 2.52 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002069/0.3649, allocations: 181.9 kB / 1.196 GB, free: 2.332 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002004/0.3669, allocations: 469.4 kB / 1.197 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003229/0.3701, allocations: 1.854 MB / 1.198 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.33e-05/0.3702, allocations: 94.44 kB / 1.199 GB, free: 15.87 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001906/0.3704, allocations: 132 kB / 1.199 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002433/0.3728, allocations: 1.455 MB / 1.2 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.219e-05/0.3729, allocations: 7.938 kB / 1.2 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.373, allocations: 52 kB / 1.2 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.583e-05/0.3731, allocations: 50.19 kB / 1.2 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002477/0.3755, allocations: 1.137 MB / 1.201 GB, free: 12.95 MB / 0.9669 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.008209/0.3838, allocations: 7.408 MB / 1.209 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002146/0.3859, allocations: 1.346 MB / 1.21 GB, free: 3.512 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.387, allocations: 474.3 kB / 1.21 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004287/0.3913, allocations: 2.697 MB / 1.213 GB, free: 116 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001083/0.3924, allocations: 0.4985 MB / 1.213 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=63): time 2.194e-06/0.3924, allocations: 0 / 1.213 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=63): time 0.003116/0.3955, allocations: 1.268 MB / 1.215 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.3956, allocations: 111.4 kB / 1.215 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/0.3972, allocations: 1.484 MB / 1.216 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.336e-05/0.3973, allocations: 41.7 kB / 1.216 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006823/0.398, allocations: 0.8918 MB / 1.217 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001865/0.3982, allocations: 228.8 kB / 1.217 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002817/0.3985, allocations: 206.4 kB / 1.218 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3986, allocations: 349.9 kB / 1.218 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009409/0.3995, allocations: 400.6 kB / 1.218 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.4008, allocations: 0.7476 MB / 1.219 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002043/0.4029, allocations: 1.125 MB / 1.22 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.4029, allocations: 4 kB / 1.22 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002597/0.4055, allocations: 1.309 MB / 1.221 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.4056, allocations: 41.62 kB / 1.221 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.4056, allocations: 12 kB / 1.221 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.191e-05/0.4056, allocations: 12.62 kB / 1.221 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.4066, allocations: 259.6 kB / 1.222 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.958e-05/0.4067, allocations: 19.94 kB / 1.222 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009972/0.4077, allocations: 139.6 kB / 1.222 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.82e-05/0.4078, allocations: 51.98 kB / 1.222 GB, free: 6.508 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001365/0.4091, allocations: 0.6971 MB / 1.223 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001182/0.4103, allocations: 0.732 MB / 1.223 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002005/0.4123, allocations: 1.098 MB / 1.224 GB, free: 3.676 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.1e-06/0.4124, allocations: 4 kB / 1.224 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002615/0.415, allocations: 1.282 MB / 1.226 GB, free: 2.375 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.415, allocations: 37.64 kB / 1.226 GB, free: 2.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.415, allocations: 12 kB / 1.226 GB, free: 2.32 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.4151, allocations: 16 kB / 1.226 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009564/0.416, allocations: 252 kB / 1.226 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.155e-05/0.4161, allocations: 27.86 kB / 1.226 GB, free: 2.031 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009726/0.417, allocations: 127.8 kB / 1.226 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.381e-05/0.4171, allocations: 47.98 kB / 1.226 GB, free: 1.859 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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.0002225/0.4174, allocations: 247.9 kB / 1.226 GB, free: 1.609 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.4176, allocations: 165.9 kB / 1.226 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002502/0.4201, allocations: 1.096 MB / 1.228 GB, free: 344 kB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.4201, allocations: 15.92 kB / 1.228 GB, free: 328 kB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4202, allocations: 8 kB / 1.228 GB, free: 320 kB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001906/0.4221, allocations: 0.8121 MB / 1.228 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004632/0.4267, allocations: 2.763 MB / 1.231 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4267, allocations: 0 / 1.231 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00078/0.4275, allocations: 168 kB / 1.231 GB, free: 12.47 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001482/0.4277, allocations: 28.84 kB / 1.231 GB, free: 12.44 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.017e-05/0.4277, allocations: 23.98 kB / 1.231 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.4288, allocations: 1.425 MB / 1.233 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4288, allocations: 160 / 1.233 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003308/0.4321, allocations: 1.64 MB / 1.234 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005509/0.4326, allocations: 354.6 kB / 1.235 GB, free: 8.797 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/0.4329, allocations: 20 kB / 1.235 GB, free: 8.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009456/0.4338, allocations: 59.94 kB / 1.235 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.4339, allocations: 64.42 kB / 1.235 GB, free: 8.656 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-05/0.434, allocations: 35.97 kB / 1.235 GB, free: 8.621 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001374/0.4354, allocations: 1.07 MB / 1.236 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4354, allocations: 0 / 1.236 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002241/0.4377, allocations: 0.9547 MB / 1.237 GB, free: 6.57 MB / 0.9981 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 (75): * Single equations (assignments): 67 * 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.004564/0.4422, allocations: 2.607 MB / 1.239 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003447/0.4457, allocations: 1.627 MB / 1.241 GB, free: 2.273 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4457, allocations: 4 kB / 1.241 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.4469, allocations: 0.5737 MB / 1.241 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003596/0.4505, allocations: 0.8986 MB / 1.242 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01863/0.4692, allocations: 11.97 MB / 1.254 GB, free: 4.32 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.4702, allocations: 1.397 MB / 1.255 GB, free: 2.891 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001499/0.4717, allocations: 430.4 kB / 1.256 GB, free: 2.465 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009169/0.4727, allocations: 0.7375 MB / 1.257 GB, free: 1.727 MB / 1.014 GB Notification: Performance of SimCode: time 6.11e-07/0.4727, allocations: 0 / 1.257 GB, free: 1.727 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5274/1, allocations: 48.82 MB / 1.304 GB, free: 150 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/14.3, allocations: 18.2 kB / 1.304 GB, free: 150 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)