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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.7623/0.7623, allocations: 140.1 MB / 156 MB, free: 5.16 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001277/0.001277, allocations: 183.8 kB / 188.5 MB, free: 15.83 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.548/1.548, allocations: 205.4 MB / 426.3 MB, free: 8.461 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008164/0.0008164, allocations: 100.8 kB / 0.4945 GB, free: 8.391 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001765/0.001765, allocations: 281.4 kB / 0.5729 GB, free: 66.21 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000504/0.000504, allocations: 16 kB / 0.662 GB, free: 6.812 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3764, allocations: 79.3 MB / 0.7395 GB, free: 46.34 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7698/1.146, allocations: 423.8 MB / 1.153 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/1.147, allocations: 103.6 kB / 1.153 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.76/4.907, allocations: 1.164 GB / 2.318 GB, free: 97.6 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.495e-06/4.907, allocations: 1.625 kB / 2.318 GB, free: 97.6 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.000373/4.907, allocations: 64.47 kB / 2.318 GB, free: 97.59 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.0066/4.914, allocations: 2.555 MB / 2.32 GB, free: 96.44 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/4.914, allocations: 11.34 kB / 2.32 GB, free: 96.44 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002206/4.916, allocations: 453.9 kB / 2.321 GB, free: 96.32 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005648/4.922, allocations: 2.289 MB / 2.323 GB, free: 95.79 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.481e-05/4.922, allocations: 94.5 kB / 2.323 GB, free: 95.78 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003155/4.922, allocations: 120.1 kB / 2.323 GB, free: 95.78 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/4.924, allocations: 1.329 MB / 2.325 GB, free: 95.49 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.731e-05/4.924, allocations: 8.188 kB / 2.325 GB, free: 95.48 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/4.925, allocations: 50.11 kB / 2.325 GB, free: 95.48 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-05/4.925, allocations: 33.5 kB / 2.325 GB, free: 95.48 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002039/4.927, allocations: 0.9562 MB / 2.326 GB, free: 95.47 MB / 0.698 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.007201/4.934, allocations: 6.849 MB / 2.332 GB, free: 91.34 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/4.935, allocations: 1.259 MB / 2.334 GB, free: 90.76 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006478/4.936, allocations: 371.8 kB / 2.334 GB, free: 90.75 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003627/4.94, allocations: 2.886 MB / 2.337 GB, free: 88.83 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000733/4.941, allocations: 407.4 kB / 2.337 GB, free: 88.77 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004899/4.941, allocations: 91.38 kB / 2.337 GB, free: 88.74 MB / 0.698 GB Notification: Performance of pre-optimization done (n=60): time 3.927e-06/4.941, allocations: 0 / 2.337 GB, free: 88.74 MB / 0.698 GB Notification: Performance of matching and sorting (n=60): time 0.00229/4.943, allocations: 1.198 MB / 2.338 GB, free: 88.41 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/4.943, allocations: 162.5 kB / 2.339 GB, free: 88.22 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/4.945, allocations: 1.509 MB / 2.34 GB, free: 88.04 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.825e-05/4.945, allocations: 41.89 kB / 2.34 GB, free: 88.01 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005651/4.946, allocations: 0.8929 MB / 2.341 GB, free: 87.7 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/4.946, allocations: 215.6 kB / 2.341 GB, free: 87.56 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.39e-05/4.946, allocations: 19.75 kB / 2.341 GB, free: 87.56 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.718e-05/4.946, allocations: 343 kB / 2.341 GB, free: 87.25 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006489/4.947, allocations: 330.1 kB / 2.342 GB, free: 87.25 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008888/4.948, allocations: 0.7658 MB / 2.343 GB, free: 86.73 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/4.949, allocations: 1.047 MB / 2.344 GB, free: 86.29 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/4.949, allocations: 3.781 kB / 2.344 GB, free: 86.29 MB / 0.698 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002191/4.951, allocations: 1.214 MB / 2.345 GB, free: 86.13 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002313/4.952, allocations: 450.8 kB / 2.345 GB, free: 85.62 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.446e-05/4.952, allocations: 10.28 kB / 2.345 GB, free: 85.62 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.817e-05/4.952, allocations: 17.81 kB / 2.345 GB, free: 85.62 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000852/4.952, allocations: 238.5 kB / 2.345 GB, free: 85.62 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.629e-05/4.953, allocations: 31.16 kB / 2.345 GB, free: 85.62 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001201/4.954, allocations: 120.6 kB / 2.346 GB, free: 85.61 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/4.954, allocations: 62.31 kB / 2.346 GB, free: 85.61 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.043e-06/4.954, allocations: 3.969 kB / 2.346 GB, free: 85.61 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001769/4.956, allocations: 1.04 MB / 2.347 GB, free: 85.56 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/4.956, allocations: 14.58 kB / 2.347 GB, free: 85.56 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/4.956, allocations: 16.75 kB / 2.347 GB, free: 85.56 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007619/4.956, allocations: 240.4 kB / 2.347 GB, free: 85.56 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.606e-05/4.956, allocations: 24.61 kB / 2.347 GB, free: 85.56 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000929/4.957, allocations: 115.2 kB / 2.347 GB, free: 85.55 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.844e-05/4.958, allocations: 54.33 kB / 2.347 GB, free: 85.55 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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): 117 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.000768/4.958, allocations: 489.4 kB / 2.348 GB, free: 85.36 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/4.958, allocations: 171.6 kB / 2.348 GB, free: 85.27 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/4.96, allocations: 1.13 MB / 2.349 GB, free: 85.08 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/4.961, allocations: 13.02 kB / 2.349 GB, free: 85.08 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/4.961, allocations: 3.969 kB / 2.349 GB, free: 85.08 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001335/4.962, allocations: 0.9688 MB / 2.35 GB, free: 84.71 MB / 0.698 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.003509/4.965, allocations: 2.325 MB / 2.352 GB, free: 84.24 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/4.965, allocations: 0 / 2.352 GB, free: 84.24 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000616/4.966, allocations: 132.3 kB / 2.352 GB, free: 84.24 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001455/4.966, allocations: 23.44 kB / 2.352 GB, free: 84.23 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.512e-05/4.966, allocations: 20.67 kB / 2.352 GB, free: 84.23 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007405/4.967, allocations: 1.3 MB / 2.354 GB, free: 82.98 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/4.967, allocations: 5.656 kB / 2.354 GB, free: 82.98 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002537/4.97, allocations: 1.51 MB / 2.355 GB, free: 82.61 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007028/4.97, allocations: 334.2 kB / 2.355 GB, free: 82.42 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002134/4.971, allocations: 17.31 kB / 2.355 GB, free: 82.42 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008635/4.971, allocations: 103.6 kB / 2.355 GB, free: 82.41 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/4.972, allocations: 57.8 kB / 2.355 GB, free: 82.41 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.343e-05/4.972, allocations: 33.91 kB / 2.356 GB, free: 82.41 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001625/4.973, allocations: 1.068 MB / 2.357 GB, free: 82.27 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.81e-07/4.973, allocations: 0 / 2.357 GB, free: 82.27 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003442/4.977, allocations: 0.9996 MB / 2.358 GB, free: 82.11 MB / 0.698 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.x[1],mov.filter.x[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 (69): * Single equations (assignments): 60 * 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.002498/4.979, allocations: 1.323 MB / 2.359 GB, free: 81.78 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002649/4.982, allocations: 1.546 MB / 2.36 GB, free: 81.52 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/4.982, allocations: 2.719 kB / 2.36 GB, free: 81.52 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000847/4.983, allocations: 0.5085 MB / 2.361 GB, free: 81.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003256/4.986, allocations: 0.7379 MB / 2.362 GB, free: 81.37 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005075/4.991, allocations: 3.691 MB / 2.365 GB, free: 79.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007765/4.992, allocations: 1.366 MB / 2.367 GB, free: 78.96 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002211/4.994, allocations: 424.3 kB / 2.367 GB, free: 78.89 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002893/4.994, allocations: 142.6 kB / 2.367 GB, free: 78.88 MB / 0.698 GB Notification: Performance of SimCode: time 5.71e-07/4.994, allocations: 2.156 kB / 2.367 GB, free: 78.88 MB / 0.698 GB Notification: Performance of Templates: time 0.05186/5.046, allocations: 35.95 MB / 2.402 GB, free: 71.01 MB / 0.698 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)