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.934/0.934, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 185.8 kB / 187.3 MB, free: 11.88 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.621/1.621, allocations: 221.3 MB / 441.4 MB, free: 4.602 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.0009401/0.0009402, allocations: 98.92 kB / 0.5124 GB, free: 24.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001816/0.001816, allocations: 269.2 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.59e-05/4.592e-05, allocations: 4 kB / 0.6834 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5417/0.5417, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.036/1.578, allocations: 405.5 MB / 1.16 GB, free: 1.863 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/1.578, allocations: 94.8 kB / 1.16 GB, free: 1.82 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 6.138/7.716, allocations: 1.148 GB / 2.308 GB, free: 86.71 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.935e-06/7.716, allocations: 0 / 2.308 GB, free: 86.71 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.000282/7.717, allocations: 60.95 kB / 2.308 GB, free: 86.71 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.006075/7.723, allocations: 2.13 MB / 2.31 GB, free: 85.83 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/7.723, allocations: 9.688 kB / 2.31 GB, free: 85.83 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001983/7.725, allocations: 367.8 kB / 2.311 GB, free: 85.71 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006376/7.731, allocations: 2.427 MB / 2.313 GB, free: 85.35 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.543e-05/7.731, allocations: 97.19 kB / 2.313 GB, free: 85.34 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002158/7.732, allocations: 131.3 kB / 2.313 GB, free: 85.34 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002337/7.734, allocations: 1.327 MB / 2.315 GB, free: 85.09 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.884e-05/7.734, allocations: 8.625 kB / 2.315 GB, free: 85.09 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/7.734, allocations: 50 kB / 2.315 GB, free: 85.09 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.107e-05/7.734, allocations: 52.09 kB / 2.315 GB, free: 85.08 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/7.736, allocations: 0.9156 MB / 2.316 GB, free: 85.07 MB / 0.7136 GB Warning: The model contains alias variables with conflicting start and/or 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.009499/7.745, allocations: 7.2 MB / 2.323 GB, free: 81.1 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/7.747, allocations: 1.168 MB / 2.324 GB, free: 80.5 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005294/7.747, allocations: 377.2 kB / 2.324 GB, free: 80.48 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004786/7.752, allocations: 2.605 MB / 2.327 GB, free: 79.14 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006553/7.753, allocations: 431.2 kB / 2.327 GB, free: 79.06 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007329/7.753, allocations: 84.19 kB / 2.327 GB, free: 79.04 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=66): time 3.236e-06/7.753, allocations: 2.625 kB / 2.327 GB, free: 79.04 MB / 0.7136 GB Notification: Performance of matching and sorting (n=66): time 0.001229/7.755, allocations: 0.7156 MB / 2.328 GB, free: 78.9 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.923e-05/7.755, allocations: 172.3 kB / 2.328 GB, free: 78.71 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001784/7.756, allocations: 1.263 MB / 2.329 GB, free: 78.54 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.929e-05/7.756, allocations: 45.45 kB / 2.329 GB, free: 78.51 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007262/7.757, allocations: 0.8975 MB / 2.33 GB, free: 78.19 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/7.757, allocations: 236.7 kB / 2.331 GB, free: 78.04 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.627e-05/7.757, allocations: 17.56 kB / 2.331 GB, free: 78.04 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001003/7.758, allocations: 348.4 kB / 2.331 GB, free: 77.74 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003973/7.758, allocations: 259.2 kB / 2.331 GB, free: 77.74 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006519/7.759, allocations: 0.6497 MB / 2.332 GB, free: 77.28 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005333/7.759, allocations: 397.8 kB / 2.332 GB, free: 77.23 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/7.759, allocations: 0 / 2.332 GB, free: 77.23 MB / 0.7136 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001565/7.761, allocations: 1.07 MB / 2.333 GB, free: 77.07 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008837/7.762, allocations: 3.997 MB / 2.337 GB, free: 72.86 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/7.762, allocations: 8.531 kB / 2.337 GB, free: 72.86 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.601e-05/7.762, allocations: 16.66 kB / 2.337 GB, free: 72.86 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008519/7.763, allocations: 234.6 kB / 2.337 GB, free: 72.86 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.702e-05/7.763, allocations: 22.97 kB / 2.337 GB, free: 72.86 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/7.764, allocations: 121.1 kB / 2.337 GB, free: 72.85 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/7.764, allocations: 58.94 kB / 2.338 GB, free: 72.85 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/7.764, allocations: 4.125 kB / 2.338 GB, free: 72.85 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001288/7.765, allocations: 0.8964 MB / 2.338 GB, free: 72.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/7.765, allocations: 10.22 kB / 2.338 GB, free: 72.8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/7.765, allocations: 15.56 kB / 2.338 GB, free: 72.8 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007731/7.766, allocations: 236.3 kB / 2.339 GB, free: 72.8 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/7.766, allocations: 21.19 kB / 2.339 GB, free: 72.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/7.767, allocations: 108.8 kB / 2.339 GB, free: 72.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.139e-05/7.767, allocations: 48.89 kB / 2.339 GB, free: 72.8 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 116 * 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.0002566/7.768, allocations: 182.6 kB / 2.339 GB, free: 72.68 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000246/7.768, allocations: 170.2 kB / 2.339 GB, free: 72.59 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001865/7.77, allocations: 0.9407 MB / 2.34 GB, free: 72.5 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/7.77, allocations: 7.312 kB / 2.34 GB, free: 72.5 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/7.77, allocations: 0 / 2.34 GB, free: 72.5 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009298/7.771, allocations: 0.6523 MB / 2.341 GB, free: 72.41 MB / 0.7136 GB Warning: The model contains alias variables with conflicting start and/or 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.004154/7.775, allocations: 2.528 MB / 2.343 GB, free: 71.84 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/7.775, allocations: 0 / 2.343 GB, free: 71.84 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006484/7.776, allocations: 155 kB / 2.343 GB, free: 71.84 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002083/7.776, allocations: 29.75 kB / 2.343 GB, free: 71.83 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.04e-05/7.776, allocations: 28.62 kB / 2.343 GB, free: 71.83 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009265/7.777, allocations: 1.315 MB / 2.345 GB, free: 70.58 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/7.777, allocations: 0 / 2.345 GB, free: 70.58 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00228/7.779, allocations: 1.492 MB / 2.346 GB, free: 70.08 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/7.78, allocations: 366.3 kB / 2.346 GB, free: 69.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002591/7.781, allocations: 19.38 kB / 2.346 GB, free: 69.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000965/7.782, allocations: 109.3 kB / 2.347 GB, free: 69.88 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/7.782, allocations: 67.66 kB / 2.347 GB, free: 69.88 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.741e-05/7.782, allocations: 38.39 kB / 2.347 GB, free: 69.88 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001679/7.783, allocations: 1.044 MB / 2.348 GB, free: 69.72 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.9e-07/7.783, allocations: 1.188 kB / 2.348 GB, free: 69.72 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004236/7.788, allocations: 1.062 MB / 2.349 GB, free: 69.55 MB / 0.7136 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 69 * 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.002673/7.79, allocations: 1.143 MB / 2.35 GB, free: 69.28 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002313/7.793, allocations: 1.37 MB / 2.351 GB, free: 69.12 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/7.793, allocations: 3.656 kB / 2.351 GB, free: 69.12 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000734/7.793, allocations: 491.5 kB / 2.352 GB, free: 69.01 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004481/7.798, allocations: 0.8517 MB / 2.353 GB, free: 69 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004417/7.802, allocations: 2.377 MB / 2.355 GB, free: 68.29 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009109/7.803, allocations: 1.427 MB / 2.356 GB, free: 67.57 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002756/7.806, allocations: 0.5748 MB / 2.357 GB, free: 67.55 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002856/7.806, allocations: 114.6 kB / 2.357 GB, free: 67.54 MB / 0.7136 GB Notification: Performance of SimCode: time 1.934e-06/7.806, allocations: 0 / 2.357 GB, free: 67.54 MB / 0.7136 GB Notification: Performance of Templates: time 0.07236/7.879, allocations: 42.66 MB / 2.399 GB, free: 65.33 MB / 0.7136 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)