Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8612/0.8612, allocations: 141.8 MB / 149.3 MB, free: 9.207 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.001076/0.001076, allocations: 176.9 kB / 182.2 MB, free: 9.441 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.62/1.62, allocations: 221.5 MB / 436.4 MB, free: 13.3 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.0008369/0.0008369, allocations: 80.12 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002035/0.002035, allocations: 279.4 kB / 0.5889 GB, free: 54.63 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.441e-05/2.434e-05, allocations: 4 kB / 0.6765 GB, free: 12.8 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5676/0.5676, allocations: 82.77 MB / 0.7574 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.036/1.604, allocations: 411.9 MB / 1.16 GB, free: 2.609 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/1.604, allocations: 95.14 kB / 1.16 GB, free: 2.566 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.076/6.68, allocations: 1.177 GB / 2.337 GB, free: 96.02 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.482e-06/6.68, allocations: 3.094 kB / 2.337 GB, free: 96.02 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002266/6.68, allocations: 56.03 kB / 2.337 GB, free: 96 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.004348/6.685, allocations: 2.018 MB / 2.339 GB, free: 95.1 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/6.685, allocations: 10.94 kB / 2.339 GB, free: 95.1 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001996/6.687, allocations: 457.6 kB / 2.339 GB, free: 94.99 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005099/6.692, allocations: 2.248 MB / 2.341 GB, free: 94.57 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.981e-05/6.692, allocations: 45.02 kB / 2.341 GB, free: 94.57 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/6.692, allocations: 76.34 kB / 2.342 GB, free: 94.56 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001411/6.693, allocations: 0.7755 MB / 2.342 GB, free: 94.55 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/6.695, allocations: 1.062 MB / 2.343 GB, free: 94.3 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/6.695, allocations: 3.75 kB / 2.343 GB, free: 94.3 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.772e-05/6.695, allocations: 3.906 kB / 2.343 GB, free: 94.3 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.284e-05/6.695, allocations: 41.05 kB / 2.343 GB, free: 94.29 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.007819/6.703, allocations: 6.741 MB / 2.35 GB, free: 90.23 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/6.704, allocations: 1.139 MB / 2.351 GB, free: 89.63 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004615/6.705, allocations: 311.8 kB / 2.351 GB, free: 89.62 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004576/6.709, allocations: 2.987 MB / 2.354 GB, free: 87.7 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004817/6.71, allocations: 342.2 kB / 2.355 GB, free: 87.65 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005416/6.71, allocations: 69.88 kB / 2.355 GB, free: 87.62 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=62): time 4.499e-06/6.71, allocations: 0 / 2.355 GB, free: 87.62 MB / 0.7136 GB Notification: Performance of matching and sorting (n=62): time 0.004855/6.715, allocations: 1.295 MB / 2.356 GB, free: 87.49 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/6.715, allocations: 111.3 kB / 2.356 GB, free: 87.36 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00168/6.717, allocations: 1.215 MB / 2.357 GB, free: 87.19 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.01e-05/6.717, allocations: 28.95 kB / 2.357 GB, free: 87.16 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006454/6.718, allocations: 0.8708 MB / 2.358 GB, free: 86.84 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/6.718, allocations: 207.8 kB / 2.358 GB, free: 86.7 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.152e-05/6.718, allocations: 3.469 kB / 2.358 GB, free: 86.7 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.97e-05/6.718, allocations: 351.6 kB / 2.359 GB, free: 86.39 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/6.718, allocations: 249.2 kB / 2.359 GB, free: 86.39 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005518/6.719, allocations: 0.6567 MB / 2.36 GB, free: 85.88 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004209/6.723, allocations: 0.9838 MB / 2.36 GB, free: 85.87 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/6.723, allocations: 6.531 kB / 2.36 GB, free: 85.87 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00545/6.729, allocations: 1.602 MB / 2.362 GB, free: 85.74 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009612/6.729, allocations: 4.448 MB / 2.366 GB, free: 81.07 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/6.73, allocations: 12.97 kB / 2.366 GB, free: 81.07 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.835e-05/6.73, allocations: 14.91 kB / 2.366 GB, free: 81.07 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008685/6.73, allocations: 244.8 kB / 2.367 GB, free: 81.07 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.959e-05/6.73, allocations: 26.33 kB / 2.367 GB, free: 81.07 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/6.732, allocations: 99.81 kB / 2.367 GB, free: 81.05 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/6.732, allocations: 53.64 kB / 2.367 GB, free: 81.05 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/6.732, allocations: 5.031 kB / 2.367 GB, free: 81.05 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004827/6.737, allocations: 1.391 MB / 2.368 GB, free: 81.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/6.737, allocations: 12.56 kB / 2.368 GB, free: 81.04 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/6.737, allocations: 18.69 kB / 2.368 GB, free: 81.04 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008175/6.738, allocations: 248.3 kB / 2.368 GB, free: 81.04 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/6.738, allocations: 23.28 kB / 2.368 GB, free: 81.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/6.739, allocations: 94.75 kB / 2.369 GB, free: 81.03 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.603e-05/6.739, allocations: 51.69 kB / 2.369 GB, free: 81.03 MB / 0.7136 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 ($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 (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.0002526/6.739, allocations: 139.1 kB / 2.369 GB, free: 80.92 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002212/6.74, allocations: 159.9 kB / 2.369 GB, free: 80.84 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005144/6.745, allocations: 1.505 MB / 2.37 GB, free: 80.73 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/6.745, allocations: 7.531 kB / 2.37 GB, free: 80.73 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/6.745, allocations: 0 / 2.37 GB, free: 80.73 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004232/6.749, allocations: 1.358 MB / 2.372 GB, free: 80.45 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.007546/6.757, allocations: 2.596 MB / 2.374 GB, free: 80.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/6.757, allocations: 5.391 kB / 2.374 GB, free: 80.12 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006448/6.757, allocations: 137 kB / 2.374 GB, free: 80.12 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002063/6.758, allocations: 28.97 kB / 2.374 GB, free: 80.12 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.629e-05/6.758, allocations: 13.28 kB / 2.374 GB, free: 80.12 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/6.759, allocations: 1.268 MB / 2.376 GB, free: 78.93 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/6.759, allocations: 5.719 kB / 2.376 GB, free: 78.93 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005199/6.764, allocations: 1.881 MB / 2.377 GB, free: 78.61 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/6.765, allocations: 327.4 kB / 2.378 GB, free: 78.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005592/6.766, allocations: 8.656 kB / 2.378 GB, free: 78.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/6.767, allocations: 77.33 kB / 2.378 GB, free: 78.43 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/6.767, allocations: 60.36 kB / 2.378 GB, free: 78.42 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-05/6.767, allocations: 31.19 kB / 2.378 GB, free: 78.42 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001887/6.769, allocations: 0.9136 MB / 2.379 GB, free: 78.31 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.9e-07/6.769, allocations: 0 / 2.379 GB, free: 78.31 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004411/6.773, allocations: 0.9494 MB / 2.38 GB, free: 78.15 MB / 0.7136 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.002356/6.776, allocations: 1.216 MB / 2.381 GB, free: 77.88 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001869/6.778, allocations: 1.277 MB / 2.382 GB, free: 77.73 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/6.778, allocations: 3.625 kB / 2.382 GB, free: 77.73 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005889/6.778, allocations: 436.9 kB / 2.383 GB, free: 77.63 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002777/6.781, allocations: 0.623 MB / 2.383 GB, free: 77.62 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003951/6.785, allocations: 2.245 MB / 2.385 GB, free: 76.98 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007467/6.786, allocations: 1.395 MB / 2.387 GB, free: 76.26 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002366/6.788, allocations: 0.5903 MB / 2.387 GB, free: 76.17 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/6.788, allocations: 106.7 kB / 2.387 GB, free: 76.16 MB / 0.7136 GB Notification: Performance of SimCode: time 1.513e-06/6.788, allocations: 2.531 kB / 2.387 GB, free: 76.16 MB / 0.7136 GB Notification: Performance of Templates: time 0.05194/6.84, allocations: 31.59 MB / 2.418 GB, free: 73.85 MB / 0.7136 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)