Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8954/0.8954, allocations: 143.4 MB / 158.3 MB, free: 5.793 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 179.5 kB / 191.5 MB, free: 5.762 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.2 MB / 447.7 MB, free: 4.816 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008932/0.0008932, allocations: 99.69 kB / 0.5188 GB, free: 1.164 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001581/0.001581, allocations: 257.3 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004212/0.0004213, allocations: 18.69 kB / 0.6929 GB, free: 59.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1382, allocations: 82.79 MB / 0.7737 GB, free: 13.85 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.103/1.241, allocations: 405.6 MB / 1.17 GB, free: 264.9 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/1.241, allocations: 105.5 kB / 1.17 GB, free: 264.9 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.008/5.249, allocations: 1.151 GB / 2.321 GB, free: 82.57 MB / 0.7136 GB Notification: Performance of FrontEnd: time 4.869e-06/5.249, allocations: 3.875 kB / 2.321 GB, free: 82.57 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0004262/5.25, allocations: 55.2 kB / 2.321 GB, free: 82.57 MB / 0.7136 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.0108/5.261, allocations: 2.616 MB / 2.324 GB, free: 81.54 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.052e-05/5.261, allocations: 11.22 kB / 2.324 GB, free: 81.54 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002751/5.263, allocations: 373.6 kB / 2.324 GB, free: 81.41 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009217/5.273, allocations: 2.458 MB / 2.327 GB, free: 81.02 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/5.273, allocations: 100.4 kB / 2.327 GB, free: 81.02 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003183/5.273, allocations: 128.8 kB / 2.327 GB, free: 81.02 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003458/5.277, allocations: 1.392 MB / 2.328 GB, free: 80.75 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.35e-05/5.277, allocations: 5.391 kB / 2.328 GB, free: 80.75 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001591/5.277, allocations: 55.75 kB / 2.328 GB, free: 80.75 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.441e-05/5.277, allocations: 44.53 kB / 2.328 GB, free: 80.75 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002891/5.28, allocations: 1.039 MB / 2.329 GB, free: 80.73 MB / 0.7136 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.01146/5.291, allocations: 7.195 MB / 2.336 GB, free: 76.71 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/5.293, allocations: 1.283 MB / 2.338 GB, free: 76.11 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004492/5.298, allocations: 2.58 MB / 2.34 GB, free: 74.79 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008507/5.298, allocations: 439.8 kB / 2.341 GB, free: 74.74 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008408/5.299, allocations: 90.39 kB / 2.341 GB, free: 74.71 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=68): time 8.205e-06/5.299, allocations: 0 / 2.341 GB, free: 74.71 MB / 0.7136 GB Notification: Performance of matching and sorting (n=68): time 0.002625/5.302, allocations: 1.183 MB / 2.342 GB, free: 74.48 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/5.302, allocations: 120.4 kB / 2.342 GB, free: 74.35 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002452/5.304, allocations: 1.287 MB / 2.343 GB, free: 74.18 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.697e-05/5.305, allocations: 46.05 kB / 2.343 GB, free: 74.15 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009513/5.306, allocations: 0.8865 MB / 2.344 GB, free: 73.83 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002347/5.306, allocations: 247.1 kB / 2.344 GB, free: 73.68 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.484e-05/5.306, allocations: 20.59 kB / 2.344 GB, free: 73.68 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.434e-05/5.306, allocations: 339.3 kB / 2.345 GB, free: 73.38 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007294/5.307, allocations: 328.2 kB / 2.345 GB, free: 73.38 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009333/5.308, allocations: 0.698 MB / 2.346 GB, free: 72.93 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009515/5.309, allocations: 446 kB / 2.346 GB, free: 72.89 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/5.309, allocations: 0 / 2.346 GB, free: 72.89 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002177/5.311, allocations: 1.175 MB / 2.347 GB, free: 72.73 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009367/5.312, allocations: 3.825 MB / 2.351 GB, free: 68.72 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.694e-05/5.312, allocations: 11.62 kB / 2.351 GB, free: 68.72 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.794e-05/5.312, allocations: 15.5 kB / 2.351 GB, free: 68.72 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009739/5.313, allocations: 236.8 kB / 2.351 GB, free: 68.72 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.62e-05/5.313, allocations: 22.17 kB / 2.351 GB, free: 68.72 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/5.314, allocations: 134.4 kB / 2.351 GB, free: 68.71 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/5.315, allocations: 55.62 kB / 2.351 GB, free: 68.71 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/5.315, allocations: 7.625 kB / 2.351 GB, free: 68.71 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001968/5.317, allocations: 1.008 MB / 2.352 GB, free: 68.67 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.691e-05/5.317, allocations: 14.05 kB / 2.352 GB, free: 68.67 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/5.317, allocations: 19.84 kB / 2.352 GB, free: 68.67 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008933/5.318, allocations: 232.9 kB / 2.353 GB, free: 68.67 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-05/5.318, allocations: 24.53 kB / 2.353 GB, free: 68.67 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/5.319, allocations: 128.3 kB / 2.353 GB, free: 68.66 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/5.319, allocations: 52.06 kB / 2.353 GB, free: 68.66 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001175/5.32, allocations: 0.491 MB / 2.353 GB, free: 68.46 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003261/5.321, allocations: 162.8 kB / 2.354 GB, free: 68.38 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002489/5.323, allocations: 1.071 MB / 2.355 GB, free: 68.28 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/5.323, allocations: 9.562 kB / 2.355 GB, free: 68.28 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/5.323, allocations: 0 / 2.355 GB, free: 68.28 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0015/5.325, allocations: 0.7779 MB / 2.355 GB, free: 68.19 MB / 0.7136 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 postOpt removeSimpleEquations (simulation): time 0.006/5.331, allocations: 2.511 MB / 2.358 GB, free: 67.76 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/5.331, allocations: 2.5 kB / 2.358 GB, free: 67.76 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007169/5.332, allocations: 155.4 kB / 2.358 GB, free: 67.76 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002194/5.332, allocations: 30.88 kB / 2.358 GB, free: 67.75 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-05/5.332, allocations: 25.47 kB / 2.358 GB, free: 67.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009953/5.333, allocations: 1.319 MB / 2.359 GB, free: 66.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/5.333, allocations: 6.688 kB / 2.359 GB, free: 66.5 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003094/5.336, allocations: 1.683 MB / 2.361 GB, free: 65.97 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001326/5.337, allocations: 364 kB / 2.361 GB, free: 65.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005171/5.338, allocations: 22.59 kB / 2.361 GB, free: 65.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/5.339, allocations: 110.4 kB / 2.361 GB, free: 65.77 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/5.339, allocations: 63.11 kB / 2.361 GB, free: 65.77 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/5.34, allocations: 43.92 kB / 2.362 GB, free: 65.77 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.002302/5.342, allocations: 1.065 MB / 2.363 GB, free: 65.62 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.082e-06/5.342, allocations: 0 / 2.363 GB, free: 65.62 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.00485/5.347, allocations: 1.07 MB / 2.364 GB, free: 65.46 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (79): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002997/5.35, allocations: 1.149 MB / 2.365 GB, free: 65.18 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003359/5.353, allocations: 1.491 MB / 2.366 GB, free: 65.04 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/5.353, allocations: 2.562 kB / 2.366 GB, free: 65.04 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001127/5.354, allocations: 0.5388 MB / 2.367 GB, free: 64.93 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004604/5.359, allocations: 0.849 MB / 2.368 GB, free: 64.92 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00888/5.368, allocations: 3.791 MB / 2.371 GB, free: 63.19 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003804/5.372, allocations: 1.424 MB / 2.373 GB, free: 78.48 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.002744/5.374, allocations: 435.6 kB / 2.373 GB, free: 78.46 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005809/5.375, allocations: 148.4 kB / 2.373 GB, free: 78.45 MB / 0.7292 GB Notification: Performance of SimCode: time 1.202e-06/5.375, allocations: 0 / 2.373 GB, free: 78.45 MB / 0.7292 GB Notification: Performance of Templates: time 0.06903/5.444, allocations: 38.33 MB / 2.411 GB, free: 76.2 MB / 0.7292 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)