Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_T,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_10_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.003979/0.003979, allocations: 98.89 kB / 15.73 MB, free: 6.031 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.001181/0.001181, allocations: 194.1 kB / 16.67 MB, free: 5.953 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.242/1.242, allocations: 222.9 MB / 240.4 MB, free: 15.07 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.201/2.201, allocations: 437.1 MB / 0.7105 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 63.91 kB / 1.018 GB, free: 9.836 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6037/0.6054, allocations: 151.6 MB / 1.166 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05823/0.6636, allocations: 53.77 MB / 1.219 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02495/0.6886, allocations: 17.01 MB / 1.235 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00201/0.6907, allocations: 91.5 kB / 1.235 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.004606/0.6953, allocations: 1.923 MB / 1.237 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.005372/0.7007, allocations: 2.502 MB / 1.24 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004948/0.7056, allocations: 2.353 MB / 1.242 GB, free: 5.859 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.009774/0.7154, allocations: 7.532 MB / 1.249 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002295/0.7177, allocations: 1.663 MB / 1.251 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003437/0.7212, allocations: 1.915 MB / 1.253 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001833/0.723, allocations: 1.439 MB / 1.254 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002879/0.7233, allocations: 180 kB / 1.254 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003702/0.727, allocations: 2.016 MB / 1.256 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0006365/0.7277, allocations: 0.6618 MB / 1.257 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.7289, allocations: 1.228 MB / 1.258 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.004849/0.7337, allocations: 3.939 MB / 1.262 GB, free: 1.207 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.7338, allocations: 0 / 1.262 GB, free: 1.207 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.172e-06/0.7338, allocations: 0 / 1.262 GB, free: 1.207 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.162e-05/0.7338, allocations: 0 / 1.262 GB, free: 1.207 MB / 0.9825 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.004685/0.7385, allocations: 3.042 MB / 1.265 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.7385, allocations: 8.625 kB / 1.265 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002067/0.7387, allocations: 169.1 kB / 1.265 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002531/0.7413, allocations: 0.572 MB / 1.266 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004489/0.7458, allocations: 2.752 MB / 1.269 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.875e-05/0.7459, allocations: 94.23 kB / 1.269 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001828/0.7461, allocations: 124 kB / 1.269 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002663/0.7488, allocations: 1.363 MB / 1.27 GB, free: 8.824 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.7488, allocations: 3.938 kB / 1.27 GB, free: 8.82 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.7489, allocations: 51.98 kB / 1.27 GB, free: 8.77 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.667e-05/0.749, allocations: 42.08 kB / 1.27 GB, free: 8.727 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002818/0.7518, allocations: 1.101 MB / 1.271 GB, free: 7.617 MB / 0.9981 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.009382/0.7612, allocations: 7.462 MB / 1.279 GB, free: 15.6 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002494/0.7637, allocations: 1.337 MB / 1.28 GB, free: 14.15 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009824/0.7647, allocations: 419.4 kB / 1.28 GB, free: 13.74 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005045/0.7698, allocations: 3.168 MB / 1.283 GB, free: 10.23 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001041/0.7708, allocations: 422.9 kB / 1.284 GB, free: 9.805 MB / 1.014 GB Notification: Performance of pre-optimization done (n=59): time 2.094e-06/0.7708, allocations: 0 / 1.284 GB, free: 9.805 MB / 1.014 GB Notification: Performance of matching and sorting (n=59): time 0.00311/0.7739, allocations: 1.257 MB / 1.285 GB, free: 8.52 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.774, allocations: 63.97 kB / 1.285 GB, free: 8.445 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002686/0.7767, allocations: 2.133 MB / 1.287 GB, free: 6.285 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.146e-05/0.7768, allocations: 45.69 kB / 1.287 GB, free: 6.234 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009076/0.7777, allocations: 1.032 MB / 1.288 GB, free: 5.195 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002068/0.7779, allocations: 226.2 kB / 1.288 GB, free: 4.973 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004287/0.7783, allocations: 310.7 kB / 1.289 GB, free: 4.66 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.7785, allocations: 305.1 kB / 1.289 GB, free: 4.359 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.7796, allocations: 0.5532 MB / 1.289 GB, free: 3.801 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/0.7812, allocations: 0.9846 MB / 1.29 GB, free: 2.633 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002517/0.7837, allocations: 1.452 MB / 1.292 GB, free: 1.012 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.7837, allocations: 4 kB / 1.292 GB, free: 1.008 MB / 1.014 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003252/0.787, allocations: 1.783 MB / 1.294 GB, free: 15.21 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.271e-05/0.7871, allocations: 43.88 kB / 1.294 GB, free: 15.17 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.7871, allocations: 12 kB / 1.294 GB, free: 15.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.886e-05/0.7871, allocations: 16 kB / 1.294 GB, free: 15.14 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.7882, allocations: 312.2 kB / 1.294 GB, free: 14.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.714e-05/0.7882, allocations: 23.92 kB / 1.294 GB, free: 14.81 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.7893, allocations: 187.2 kB / 1.294 GB, free: 14.63 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.7895, allocations: 63.98 kB / 1.294 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001754/0.7912, allocations: 0.9678 MB / 1.295 GB, free: 13.59 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001552/0.7928, allocations: 0.996 MB / 1.296 GB, free: 12.41 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002525/0.7953, allocations: 1.45 MB / 1.298 GB, free: 10.79 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.241e-06/0.7953, allocations: 4 kB / 1.298 GB, free: 10.79 MB / 1.029 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003301/0.7986, allocations: 1.782 MB / 1.299 GB, free: 8.992 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/0.7987, allocations: 41.69 kB / 1.299 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.7987, allocations: 16 kB / 1.299 GB, free: 8.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.7987, allocations: 16.19 kB / 1.299 GB, free: 8.914 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.7998, allocations: 307.9 kB / 1.3 GB, free: 8.613 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.949e-05/0.7999, allocations: 31.86 kB / 1.3 GB, free: 8.582 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001097/0.801, allocations: 163.3 kB / 1.3 GB, free: 8.422 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.8011, allocations: 59.98 kB / 1.3 GB, free: 8.363 MB / 1.029 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.0002472/0.8013, allocations: 263.8 kB / 1.3 GB, free: 8.098 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000282/0.8016, allocations: 210.6 kB / 1.3 GB, free: 7.891 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002661/0.8043, allocations: 1.127 MB / 1.301 GB, free: 6.746 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.8043, allocations: 11.98 kB / 1.301 GB, free: 6.734 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.8043, allocations: 4 kB / 1.301 GB, free: 6.73 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002083/0.8064, allocations: 0.9581 MB / 1.302 GB, free: 5.715 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004749/0.8112, allocations: 2.613 MB / 1.305 GB, free: 3.031 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.8112, allocations: 0 / 1.305 GB, free: 3.031 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000739/0.812, allocations: 147.9 kB / 1.305 GB, free: 2.887 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001362/0.8121, allocations: 28.84 kB / 1.305 GB, free: 2.855 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.434e-05/0.8122, allocations: 23.98 kB / 1.305 GB, free: 2.832 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.8134, allocations: 1.421 MB / 1.307 GB, free: 1.273 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.8134, allocations: 7.969 kB / 1.307 GB, free: 1.266 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003389/0.8168, allocations: 1.576 MB / 1.308 GB, free: 15.66 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005652/0.8173, allocations: 411.3 kB / 1.308 GB, free: 15.24 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002169/0.8176, allocations: 15.94 kB / 1.308 GB, free: 15.23 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008994/0.8185, allocations: 71.86 kB / 1.309 GB, free: 15.16 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.8186, allocations: 52.48 kB / 1.309 GB, free: 15.11 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.526e-05/0.8187, allocations: 31.98 kB / 1.309 GB, free: 15.07 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.002048/0.8207, allocations: 1.481 MB / 1.31 GB, free: 13.58 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8207, allocations: 0 / 1.31 GB, free: 13.58 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.002255/0.823, allocations: 1.033 MB / 1.311 GB, free: 12.55 MB / 1.045 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.005963/0.829, allocations: 2.909 MB / 1.314 GB, free: 9.734 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.004177/0.8332, allocations: 2.097 MB / 1.316 GB, free: 7.617 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.8332, allocations: 0 / 1.316 GB, free: 7.617 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.8344, allocations: 0.5417 MB / 1.317 GB, free: 7.066 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003569/0.838, allocations: 0.9705 MB / 1.317 GB, free: 6.117 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02259/0.8606, allocations: 14.73 MB / 1.332 GB, free: 6.859 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.862, allocations: 1.554 MB / 1.333 GB, free: 5.273 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001664/0.8636, allocations: 0.5163 MB / 1.334 GB, free: 4.754 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001172/0.8648, allocations: 0.8624 MB / 1.335 GB, free: 3.891 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.8648, allocations: 0 / 1.335 GB, free: 3.891 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1162/0.981, allocations: 56.15 MB / 1.39 GB, free: 12.27 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.66/26.64, allocations: 14.44 kB / 1.39 GB, free: 12.26 MB / 1.123 GB (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)