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.8009/0.8009, allocations: 143.4 MB / 158.3 MB, free: 5.824 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.001429/0.001428, allocations: 183.4 kB / 191.5 MB, free: 5.781 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.362/1.362, allocations: 223.2 MB / 447.7 MB, free: 4.836 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.0008852/0.0008852, allocations: 88.39 kB / 0.5188 GB, free: 1.195 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001724/0.001724, allocations: 280.8 kB / 0.6005 GB, free: 48.78 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003995/0.0003995, allocations: 13.62 kB / 0.6929 GB, free: 59.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1342, allocations: 82.8 MB / 0.7737 GB, free: 13.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.005/1.139, allocations: 412.6 MB / 1.177 GB, free: 264.9 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/1.14, allocations: 104.4 kB / 1.177 GB, free: 264.9 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.768/4.908, allocations: 1.186 GB / 2.363 GB, free: 102.4 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.823e-06/4.908, allocations: 0 / 2.363 GB, free: 102.4 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.0002473/4.908, allocations: 56.91 kB / 2.363 GB, free: 102.4 MB / 0.7292 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.006457/4.915, allocations: 2.514 MB / 2.366 GB, free: 101.3 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/4.915, allocations: 8.969 kB / 2.366 GB, free: 101.3 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002061/4.917, allocations: 453.5 kB / 2.366 GB, free: 101.2 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005562/4.922, allocations: 2.281 MB / 2.368 GB, free: 100.8 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.541e-05/4.922, allocations: 92.09 kB / 2.368 GB, free: 100.8 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/4.922, allocations: 122.2 kB / 2.368 GB, free: 100.8 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/4.925, allocations: 1.286 MB / 2.37 GB, free: 100.5 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.98e-05/4.925, allocations: 4.531 kB / 2.37 GB, free: 100.5 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.807e-05/4.925, allocations: 50.75 kB / 2.37 GB, free: 100.5 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-05/4.925, allocations: 42.08 kB / 2.37 GB, free: 100.5 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/4.927, allocations: 0.9666 MB / 2.371 GB, free: 100.5 MB / 0.7292 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.007607/4.934, allocations: 6.928 MB / 2.378 GB, free: 96.38 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001678/4.936, allocations: 1.277 MB / 2.379 GB, free: 95.77 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004476/4.94, allocations: 2.994 MB / 2.382 GB, free: 93.88 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008076/4.941, allocations: 410.7 kB / 2.382 GB, free: 93.83 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004253/4.942, allocations: 85.94 kB / 2.382 GB, free: 93.8 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=63): time 2.655e-06/4.942, allocations: 0 / 2.382 GB, free: 93.8 MB / 0.7292 GB Notification: Performance of matching and sorting (n=63): time 0.002315/4.944, allocations: 1.14 MB / 2.383 GB, free: 93.56 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/4.944, allocations: 111 kB / 2.383 GB, free: 93.44 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/4.946, allocations: 1.33 MB / 2.385 GB, free: 93.27 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 6.74e-05/4.946, allocations: 42.8 kB / 2.385 GB, free: 93.23 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.000617/4.946, allocations: 0.8743 MB / 2.386 GB, free: 92.93 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/4.947, allocations: 229 kB / 2.386 GB, free: 92.79 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.611e-05/4.947, allocations: 27.73 kB / 2.386 GB, free: 92.79 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.471e-05/4.947, allocations: 343.1 kB / 2.386 GB, free: 92.48 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006585/4.947, allocations: 313.5 kB / 2.386 GB, free: 92.48 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008395/4.948, allocations: 0.7421 MB / 2.387 GB, free: 91.97 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007623/4.949, allocations: 436.3 kB / 2.388 GB, free: 91.93 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/4.949, allocations: 3.875 kB / 2.388 GB, free: 91.93 MB / 0.7292 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002029/4.951, allocations: 1.185 MB / 2.389 GB, free: 91.77 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.000961/4.952, allocations: 4.452 MB / 2.393 GB, free: 87.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/4.952, allocations: 10.91 kB / 2.393 GB, free: 87.1 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.089e-05/4.952, allocations: 17.22 kB / 2.393 GB, free: 87.1 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008859/4.953, allocations: 244.5 kB / 2.393 GB, free: 87.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.231e-05/4.953, allocations: 24.02 kB / 2.393 GB, free: 87.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/4.954, allocations: 124.4 kB / 2.394 GB, free: 87.09 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.542e-05/4.954, allocations: 55.33 kB / 2.394 GB, free: 87.09 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 9.497e-06/4.954, allocations: 4.156 kB / 2.394 GB, free: 87.09 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001787/4.956, allocations: 1.018 MB / 2.395 GB, free: 87.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/4.956, allocations: 11.62 kB / 2.395 GB, free: 87.04 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/4.956, allocations: 18.41 kB / 2.395 GB, free: 87.04 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008467/4.957, allocations: 241.7 kB / 2.395 GB, free: 87.04 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.726e-05/4.957, allocations: 26.89 kB / 2.395 GB, free: 87.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/4.958, allocations: 113.1 kB / 2.395 GB, free: 87.04 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.948e-05/4.958, allocations: 53.91 kB / 2.395 GB, free: 87.04 MB / 0.7292 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 119 * 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.0008394/4.959, allocations: 477.5 kB / 2.395 GB, free: 86.84 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001862/4.959, allocations: 165.6 kB / 2.396 GB, free: 86.75 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/4.961, allocations: 1.077 MB / 2.397 GB, free: 86.65 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/4.961, allocations: 14.53 kB / 2.397 GB, free: 86.65 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/4.961, allocations: 0 / 2.397 GB, free: 86.65 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001402/4.963, allocations: 0.8989 MB / 2.398 GB, free: 86.38 MB / 0.7292 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.00425/4.967, allocations: 2.315 MB / 2.4 GB, free: 86 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/4.967, allocations: 0 / 2.4 GB, free: 86 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006745/4.968, allocations: 144.8 kB / 2.4 GB, free: 86 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002271/4.968, allocations: 25.69 kB / 2.4 GB, free: 85.99 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.395e-05/4.968, allocations: 22.39 kB / 2.4 GB, free: 85.99 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/4.969, allocations: 1.317 MB / 2.401 GB, free: 84.74 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/4.969, allocations: 3.953 kB / 2.401 GB, free: 84.73 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002859/4.972, allocations: 1.486 MB / 2.403 GB, free: 84.41 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008048/4.973, allocations: 348.8 kB / 2.403 GB, free: 84.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002239/4.973, allocations: 18.25 kB / 2.403 GB, free: 84.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009842/4.974, allocations: 100.8 kB / 2.403 GB, free: 84.21 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/4.974, allocations: 55.17 kB / 2.403 GB, free: 84.21 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.717e-05/4.974, allocations: 35.14 kB / 2.403 GB, free: 84.21 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.001646/4.976, allocations: 1.084 MB / 2.404 GB, free: 84.06 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.4e-07/4.976, allocations: 0 / 2.404 GB, free: 84.06 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.003488/4.979, allocations: 0.9799 MB / 2.405 GB, free: 83.92 MB / 0.7292 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 (72): * Single equations (assignments): 63 * 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.002693/4.982, allocations: 1.313 MB / 2.407 GB, free: 83.65 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.003025/4.985, allocations: 1.467 MB / 2.408 GB, free: 83.51 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/4.985, allocations: 0 / 2.408 GB, free: 83.51 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001106/4.986, allocations: 0.5081 MB / 2.408 GB, free: 83.4 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003463/4.99, allocations: 0.7244 MB / 2.409 GB, free: 83.38 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00514/4.995, allocations: 3.639 MB / 2.413 GB, free: 81.79 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008255/4.996, allocations: 1.392 MB / 2.414 GB, free: 81.07 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.001834/4.998, allocations: 432.9 kB / 2.415 GB, free: 81.05 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003382/4.998, allocations: 139.1 kB / 2.415 GB, free: 81.04 MB / 0.7292 GB Notification: Performance of SimCode: time 3.436e-06/4.998, allocations: 1.219 kB / 2.415 GB, free: 81.04 MB / 0.7292 GB Notification: Performance of Templates: time 0.05347/5.051, allocations: 34.88 MB / 2.449 GB, free: 78.65 MB / 0.7292 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)