Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_10_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.005082/0.005082, allocations: 98.47 kB / 15.73 MB, free: 5.949 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.001478/0.001478, allocations: 196.4 kB / 16.68 MB, free: 5.871 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.207/1.207, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.174/2.174, allocations: 437.1 MB / 0.7105 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 79.8 kB / 1.018 GB, free: 9.828 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5861/0.5878, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06117/0.649, allocations: 67.47 MB / 1.232 GB, free: 84 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02325/0.6723, allocations: 18.6 MB / 1.25 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001704/0.674, allocations: 99.44 kB / 1.25 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.003893/0.6779, allocations: 1.969 MB / 1.252 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.004914/0.6829, allocations: 2.825 MB / 1.255 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.004437/0.6873, allocations: 2.436 MB / 1.257 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.00901/0.6963, allocations: 8.267 MB / 1.265 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002113/0.6984, allocations: 1.946 MB / 1.267 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003297/0.7017, allocations: 2.094 MB / 1.269 GB, free: 9.734 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001704/0.7035, allocations: 1.568 MB / 1.271 GB, free: 8.16 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002773/0.7037, allocations: 200 kB / 1.271 GB, free: 7.965 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003378/0.7071, allocations: 2.149 MB / 1.273 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005979/0.7077, allocations: 0.693 MB / 1.274 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.7089, allocations: 1.329 MB / 1.275 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004654/0.7135, allocations: 4.258 MB / 1.279 GB, free: 15.51 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.7136, allocations: 0 / 1.279 GB, free: 15.51 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.232e-06/0.7136, allocations: 0 / 1.279 GB, free: 15.51 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.914e-05/0.7136, allocations: 4 kB / 1.279 GB, free: 15.5 MB / 1.014 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.004339/0.7179, allocations: 3.197 MB / 1.283 GB, free: 12.22 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.718, allocations: 12.92 kB / 1.283 GB, free: 12.21 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002007/0.7182, allocations: 189.8 kB / 1.283 GB, free: 12.01 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001688/0.7199, allocations: 493.9 kB / 1.283 GB, free: 11.53 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004124/0.724, allocations: 2.897 MB / 1.286 GB, free: 8.559 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.253e-05/0.7241, allocations: 106.3 kB / 1.286 GB, free: 8.453 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.7243, allocations: 132 kB / 1.286 GB, free: 8.324 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002331/0.7266, allocations: 1.448 MB / 1.288 GB, free: 6.785 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.071e-05/0.7267, allocations: 4 kB / 1.288 GB, free: 6.781 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.7268, allocations: 52 kB / 1.288 GB, free: 6.73 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.918e-05/0.7268, allocations: 54.23 kB / 1.288 GB, free: 6.676 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002325/0.7292, allocations: 1.121 MB / 1.289 GB, free: 5.547 MB / 1.014 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.008279/0.7374, allocations: 7.748 MB / 1.296 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.7394, allocations: 1.282 MB / 1.298 GB, free: 11.82 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008926/0.7403, allocations: 446.3 kB / 1.298 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003968/0.7443, allocations: 2.724 MB / 1.301 GB, free: 8.43 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009468/0.7452, allocations: 482.5 kB / 1.301 GB, free: 7.941 MB / 1.029 GB Notification: Performance of pre-optimization done (n=62): time 1.613e-06/0.7452, allocations: 0 / 1.301 GB, free: 7.941 MB / 1.029 GB Notification: Performance of matching and sorting (n=62): time 0.002714/0.748, allocations: 1.249 MB / 1.302 GB, free: 6.664 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/0.748, allocations: 119.4 kB / 1.303 GB, free: 6.523 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002355/0.7504, allocations: 2.068 MB / 1.305 GB, free: 4.43 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.759e-05/0.7505, allocations: 45.7 kB / 1.305 GB, free: 4.379 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008287/0.7513, allocations: 1.047 MB / 1.306 GB, free: 3.324 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001953/0.7515, allocations: 238 kB / 1.306 GB, free: 3.09 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003767/0.7519, allocations: 318.6 kB / 1.306 GB, free: 2.773 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.752, allocations: 301.1 kB / 1.306 GB, free: 2.477 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.753, allocations: 0.5493 MB / 1.307 GB, free: 1.926 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.7544, allocations: 0.958 MB / 1.308 GB, free: 0.7852 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/0.7566, allocations: 1.43 MB / 1.309 GB, free: 15.2 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/0.7566, allocations: 0 / 1.309 GB, free: 15.2 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.002866/0.7595, allocations: 1.758 MB / 1.311 GB, free: 13.43 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.18e-05/0.7595, allocations: 41.7 kB / 1.311 GB, free: 13.38 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.7595, allocations: 12.66 kB / 1.311 GB, free: 13.37 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.726e-05/0.7596, allocations: 16 kB / 1.311 GB, free: 13.36 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009558/0.7605, allocations: 307.5 kB / 1.311 GB, free: 13.05 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.3e-05/0.7606, allocations: 23.92 kB / 1.311 GB, free: 13.03 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009753/0.7616, allocations: 179 kB / 1.312 GB, free: 12.86 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.152e-05/0.7617, allocations: 59.98 kB / 1.312 GB, free: 12.8 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001524/0.7632, allocations: 0.9717 MB / 1.313 GB, free: 11.82 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001336/0.7645, allocations: 0.9735 MB / 1.314 GB, free: 10.68 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002156/0.7667, allocations: 1.425 MB / 1.315 GB, free: 9.09 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.626e-06/0.7667, allocations: 4 kB / 1.315 GB, free: 9.086 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.002837/0.7696, allocations: 1.753 MB / 1.317 GB, free: 7.316 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.7696, allocations: 41.83 kB / 1.317 GB, free: 7.27 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.7696, allocations: 12 kB / 1.317 GB, free: 7.258 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.7696, allocations: 23.92 kB / 1.317 GB, free: 7.234 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009523/0.7706, allocations: 304.1 kB / 1.317 GB, free: 6.938 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.285e-05/0.7706, allocations: 27.86 kB / 1.317 GB, free: 6.91 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009894/0.7716, allocations: 151.9 kB / 1.317 GB, free: 6.762 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.682e-05/0.7717, allocations: 59.98 kB / 1.317 GB, free: 6.703 MB / 1.045 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.0002158/0.7719, allocations: 255.8 kB / 1.317 GB, free: 6.445 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002606/0.7722, allocations: 214.5 kB / 1.318 GB, free: 6.234 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002223/0.7744, allocations: 1.08 MB / 1.319 GB, free: 5.145 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.7745, allocations: 15.98 kB / 1.319 GB, free: 5.129 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.7745, allocations: 0 / 1.319 GB, free: 5.129 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001651/0.7761, allocations: 0.7686 MB / 1.32 GB, free: 4.344 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004289/0.7804, allocations: 2.912 MB / 1.322 GB, free: 1.34 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.7804, allocations: 4 kB / 1.322 GB, free: 1.336 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000664/0.7811, allocations: 151.8 kB / 1.323 GB, free: 1.188 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001226/0.7812, allocations: 33.03 kB / 1.323 GB, free: 1.152 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.243e-05/0.7813, allocations: 23.98 kB / 1.323 GB, free: 1.129 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.7823, allocations: 1.422 MB / 1.324 GB, free: 15.57 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.7824, allocations: 7.922 kB / 1.324 GB, free: 15.56 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002891/0.7853, allocations: 1.609 MB / 1.326 GB, free: 13.91 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005124/0.7858, allocations: 423.2 kB / 1.326 GB, free: 13.48 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.786, allocations: 19.94 kB / 1.326 GB, free: 13.46 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008356/0.7868, allocations: 71.92 kB / 1.326 GB, free: 13.39 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.7869, allocations: 64.36 kB / 1.326 GB, free: 13.33 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.351e-05/0.787, allocations: 27.98 kB / 1.326 GB, free: 13.3 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.00182/0.7888, allocations: 1.462 MB / 1.328 GB, free: 11.83 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7889, allocations: 0 / 1.328 GB, free: 11.83 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002082/0.7909, allocations: 1.111 MB / 1.329 GB, free: 10.71 MB / 1.061 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.004275/0.7952, allocations: 2.738 MB / 1.331 GB, free: 7.93 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.003421/0.7987, allocations: 2.084 MB / 1.333 GB, free: 5.832 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.7987, allocations: 12.12 kB / 1.333 GB, free: 5.82 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.7997, allocations: 0.5411 MB / 1.334 GB, free: 5.266 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003604/0.8034, allocations: 1.095 MB / 1.335 GB, free: 4.199 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/0.8229, allocations: 14.89 MB / 1.349 GB, free: 4.777 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/0.824, allocations: 1.57 MB / 1.351 GB, free: 3.176 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001392/0.8254, allocations: 0.5284 MB / 1.352 GB, free: 2.645 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/0.8265, allocations: 0.8936 MB / 1.352 GB, free: 1.75 MB / 1.076 GB Notification: Performance of SimCode: time 2.11e-07/0.8265, allocations: 0 / 1.352 GB, free: 1.75 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 8.535/9.362, allocations: 59.54 MB / 1.411 GB, free: 6.844 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.29/28.65, allocations: 16.97 kB / 1.411 GB, free: 6.832 MB / 1.139 GB (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)