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.7885/0.7885, allocations: 141.7 MB / 154.3 MB, free: 15.5 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.001165/0.001165, allocations: 179.2 kB / 187.3 MB, free: 11.9 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.739/1.739, allocations: 221.3 MB / 441.4 MB, free: 4.625 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.001286/0.001287, allocations: 90.17 kB / 0.5124 GB, free: 24.12 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002805/0.002805, allocations: 288.2 kB / 0.5939 GB, free: 7.977 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.68e-05/4.682e-05, allocations: 4 kB / 0.6834 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.669/0.6691, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9895/1.659, allocations: 412.5 MB / 1.167 GB, free: 10.99 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/1.659, allocations: 98.44 kB / 1.167 GB, free: 10.95 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.101/6.76, allocations: 1.183 GB / 2.35 GB, free: 90.39 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.753e-06/6.76, allocations: 5.906 kB / 2.35 GB, free: 90.39 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002576/6.76, allocations: 45.45 kB / 2.35 GB, free: 90.39 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.004815/6.765, allocations: 2.027 MB / 2.352 GB, free: 89.49 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/6.765, allocations: 11.06 kB / 2.352 GB, free: 89.49 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002189/6.767, allocations: 455 kB / 2.352 GB, free: 89.38 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006041/6.773, allocations: 2.255 MB / 2.355 GB, free: 89.01 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.069e-05/6.773, allocations: 97.03 kB / 2.355 GB, free: 89 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/6.773, allocations: 120.4 kB / 2.355 GB, free: 89 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002159/6.776, allocations: 1.211 MB / 2.356 GB, free: 88.74 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/6.776, allocations: 11.97 kB / 2.356 GB, free: 88.73 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/6.776, allocations: 50.75 kB / 2.356 GB, free: 88.73 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.254e-05/6.776, allocations: 43.11 kB / 2.356 GB, free: 88.73 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/6.777, allocations: 0.8321 MB / 2.357 GB, free: 88.71 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.008783/6.786, allocations: 6.934 MB / 2.364 GB, free: 84.6 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/6.787, allocations: 1.137 MB / 2.365 GB, free: 84 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004662/6.788, allocations: 326 kB / 2.365 GB, free: 83.99 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004701/6.792, allocations: 3.024 MB / 2.368 GB, free: 82.07 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005496/6.793, allocations: 354 kB / 2.368 GB, free: 82.02 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000641/6.794, allocations: 84.59 kB / 2.369 GB, free: 81.98 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=62): time 2.835e-06/6.794, allocations: 2.594 kB / 2.369 GB, free: 81.98 MB / 0.7136 GB Notification: Performance of matching and sorting (n=62): time 0.001139/6.795, allocations: 0.6761 MB / 2.369 GB, free: 81.84 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/6.795, allocations: 116.6 kB / 2.369 GB, free: 81.72 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001691/6.796, allocations: 1.308 MB / 2.371 GB, free: 81.54 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.75e-05/6.797, allocations: 44.39 kB / 2.371 GB, free: 81.51 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006452/6.797, allocations: 0.8822 MB / 2.371 GB, free: 81.2 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.00015/6.797, allocations: 218.8 kB / 2.372 GB, free: 81.06 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.36e-05/6.797, allocations: 22.31 kB / 2.372 GB, free: 81.06 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.898e-05/6.798, allocations: 342.2 kB / 2.372 GB, free: 80.76 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003767/6.798, allocations: 250.1 kB / 2.372 GB, free: 80.76 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006238/6.799, allocations: 0.6771 MB / 2.373 GB, free: 80.25 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005343/6.799, allocations: 400.5 kB / 2.373 GB, free: 80.2 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/6.799, allocations: 3.938 kB / 2.373 GB, free: 80.2 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001515/6.801, allocations: 1.068 MB / 2.374 GB, free: 80.04 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001086/6.802, allocations: 4.448 MB / 2.379 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/6.802, allocations: 9.281 kB / 2.379 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.114e-05/6.802, allocations: 19.84 kB / 2.379 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008945/6.803, allocations: 244.3 kB / 2.379 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.501e-05/6.803, allocations: 27.5 kB / 2.379 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/6.804, allocations: 119.2 kB / 2.379 GB, free: 75.35 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.201e-05/6.804, allocations: 50.27 kB / 2.379 GB, free: 75.35 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/6.804, allocations: 8.656 kB / 2.379 GB, free: 75.35 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001331/6.805, allocations: 0.9016 MB / 2.38 GB, free: 75.3 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/6.805, allocations: 10.94 kB / 2.38 GB, free: 75.3 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/6.805, allocations: 21.7 kB / 2.38 GB, free: 75.3 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008042/6.806, allocations: 248.9 kB / 2.38 GB, free: 75.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.699e-05/6.806, allocations: 26.16 kB / 2.38 GB, free: 75.3 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/6.807, allocations: 113.5 kB / 2.38 GB, free: 75.29 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-05/6.807, allocations: 52.98 kB / 2.38 GB, free: 75.29 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.0002361/6.808, allocations: 169.5 kB / 2.381 GB, free: 75.18 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/6.808, allocations: 165.9 kB / 2.381 GB, free: 75.1 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/6.81, allocations: 0.9661 MB / 2.382 GB, free: 74.98 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/6.81, allocations: 11.55 kB / 2.382 GB, free: 74.98 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/6.81, allocations: 0 / 2.382 GB, free: 74.98 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009382/6.811, allocations: 0.787 MB / 2.383 GB, free: 74.71 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.003585/6.814, allocations: 2.195 MB / 2.385 GB, free: 74.33 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/6.814, allocations: 1.719 kB / 2.385 GB, free: 74.33 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006299/6.815, allocations: 137.6 kB / 2.385 GB, free: 74.33 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001813/6.815, allocations: 27 kB / 2.385 GB, free: 74.32 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.386e-05/6.815, allocations: 32.12 kB / 2.385 GB, free: 74.32 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008659/6.816, allocations: 1.304 MB / 2.386 GB, free: 73.07 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/6.816, allocations: 3.688 kB / 2.386 GB, free: 73.07 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/6.818, allocations: 1.32 MB / 2.387 GB, free: 72.73 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006927/6.819, allocations: 345.7 kB / 2.388 GB, free: 72.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/6.819, allocations: 21.25 kB / 2.388 GB, free: 72.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008911/6.82, allocations: 99.5 kB / 2.388 GB, free: 72.54 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/6.82, allocations: 49.7 kB / 2.388 GB, free: 72.54 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.536e-05/6.82, allocations: 31.81 kB / 2.388 GB, free: 72.54 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001504/6.821, allocations: 1.062 MB / 2.389 GB, free: 72.38 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.21e-07/6.821, allocations: 0 / 2.389 GB, free: 72.38 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003469/6.825, allocations: 0.9849 MB / 2.39 GB, free: 72.23 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.002647/6.828, allocations: 1.26 MB / 2.391 GB, free: 71.98 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002252/6.83, allocations: 1.346 MB / 2.392 GB, free: 71.83 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/6.83, allocations: 3.906 kB / 2.393 GB, free: 71.83 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0007619/6.831, allocations: 464.4 kB / 2.393 GB, free: 71.71 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003658/6.834, allocations: 0.7211 MB / 2.394 GB, free: 71.7 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004619/6.839, allocations: 2.308 MB / 2.396 GB, free: 71.05 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00088/6.84, allocations: 1.396 MB / 2.397 GB, free: 70.33 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002778/6.843, allocations: 0.5994 MB / 2.398 GB, free: 70.31 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/6.843, allocations: 115.3 kB / 2.398 GB, free: 70.3 MB / 0.7136 GB Notification: Performance of SimCode: time 1.793e-06/6.843, allocations: 0 / 2.398 GB, free: 70.3 MB / 0.7136 GB Notification: Performance of Templates: time 0.06652/6.909, allocations: 39.33 MB / 2.436 GB, free: 67.93 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)