Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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) 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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.674/1.674, allocations: 287.5 MB / 302.6 MB, free: 8.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 185.7 kB / 371.2 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.4 MB / 0.6298 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009121/0.0009122, allocations: 104.7 kB / 0.7432 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004192/0.0004193, allocations: 11.88 kB / 0.8661 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1984, allocations: 115.3 MB / 0.9787 GB, free: 28.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04186/0.2403, allocations: 49.16 MB / 1.027 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02521/0.2656, allocations: 16.62 MB / 1.043 GB, free: 10.28 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002791/0.2684, allocations: 71.56 kB / 1.043 GB, free: 10.21 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.002997/0.2714, allocations: 0.8077 MB / 1.044 GB, free: 9.398 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.005804/0.2773, allocations: 1.876 MB / 1.046 GB, free: 7.516 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.007735/0.285, allocations: 2.73 MB / 1.048 GB, free: 4.809 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.006926/0.2919, allocations: 5.219 MB / 1.053 GB, free: 15.56 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00262/0.2946, allocations: 1.338 MB / 1.055 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003545/0.2981, allocations: 1.552 MB / 1.056 GB, free: 12.64 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002266/0.3004, allocations: 1.256 MB / 1.057 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0004577/0.3009, allocations: 72 kB / 1.057 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003749/0.3047, allocations: 1.513 MB / 1.059 GB, free: 9.789 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0007283/0.3054, allocations: 426.2 kB / 1.059 GB, free: 9.371 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0008659/0.3063, allocations: 404.6 kB / 1.06 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.004011/0.3103, allocations: 2.494 MB / 1.062 GB, free: 6.473 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3103, allocations: 4 kB / 1.062 GB, free: 6.469 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3103, allocations: 0 / 1.062 GB, free: 6.469 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.000101/0.3104, allocations: 3.938 kB / 1.062 GB, free: 6.465 MB / 0.6823 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.004951/0.3154, allocations: 2.222 MB / 1.064 GB, free: 4.176 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.3155, allocations: 12.03 kB / 1.064 GB, free: 4.164 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002206/0.3177, allocations: 485.1 kB / 1.065 GB, free: 3.688 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003434/0.3211, allocations: 1.647 MB / 1.066 GB, free: 1.988 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003836/0.3215, allocations: 166.1 kB / 1.067 GB, free: 1.824 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002643/0.3218, allocations: 123.9 kB / 1.067 GB, free: 1.703 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002852/0.3247, allocations: 1.391 MB / 1.068 GB, free: 216 kB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.557e-05/0.3247, allocations: 3.938 kB / 1.068 GB, free: 212 kB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001199/0.3248, allocations: 48 kB / 1.068 GB, free: 164 kB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.803e-05/0.3249, allocations: 32 kB / 1.068 GB, free: 132 kB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3983/0.7232, allocations: 1.123 MB / 1.069 GB, free: 89.27 MB / 0.6823 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.01037/0.7336, allocations: 7.007 MB / 1.076 GB, free: 84.38 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.7363, allocations: 1.429 MB / 1.077 GB, free: 83.49 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.7373, allocations: 435.9 kB / 1.078 GB, free: 83.36 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005301/0.7427, allocations: 3.082 MB / 1.081 GB, free: 80.95 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001193/0.7439, allocations: 470.6 kB / 1.081 GB, free: 80.79 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006903/0.7446, allocations: 89.16 kB / 1.081 GB, free: 80.76 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=60): time 6.573e-06/0.7446, allocations: 1.5 kB / 1.081 GB, free: 80.76 MB / 0.6823 GB Notification: Performance of matching and sorting (n=60): time 0.003785/0.7484, allocations: 1.29 MB / 1.083 GB, free: 80.27 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.7485, allocations: 137 kB / 1.083 GB, free: 80.11 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003998/0.7525, allocations: 1.581 MB / 1.084 GB, free: 79.52 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.7526, allocations: 43.77 kB / 1.084 GB, free: 79.48 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.7537, allocations: 0.8841 MB / 1.085 GB, free: 78.79 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002689/0.7539, allocations: 218.4 kB / 1.086 GB, free: 78.62 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.781e-05/0.754, allocations: 16.56 kB / 1.086 GB, free: 78.61 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.7541, allocations: 348.6 kB / 1.086 GB, free: 78.29 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/0.7553, allocations: 397.2 kB / 1.086 GB, free: 78.18 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.7567, allocations: 0.7984 MB / 1.087 GB, free: 77.55 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/0.7591, allocations: 1.151 MB / 1.088 GB, free: 76.8 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-05/0.7591, allocations: 3.688 kB / 1.088 GB, free: 76.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003465/0.7626, allocations: 1.335 MB / 1.089 GB, free: 76.27 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002376/0.7629, allocations: 440.8 kB / 1.09 GB, free: 75.71 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.439e-05/0.7629, allocations: 17.11 kB / 1.09 GB, free: 75.71 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.204e-05/0.763, allocations: 16.45 kB / 1.09 GB, free: 75.71 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.7641, allocations: 269.7 kB / 1.09 GB, free: 75.68 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.156e-05/0.7641, allocations: 22.45 kB / 1.09 GB, free: 75.68 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.7657, allocations: 138.9 kB / 1.09 GB, free: 75.64 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001519/0.7659, allocations: 58.95 kB / 1.09 GB, free: 75.63 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.7659, allocations: 2.75 kB / 1.09 GB, free: 75.63 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002587/0.7685, allocations: 1.164 MB / 1.092 GB, free: 75.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.413e-05/0.7686, allocations: 10.91 kB / 1.092 GB, free: 75.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.7686, allocations: 15.72 kB / 1.092 GB, free: 75.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009798/0.7696, allocations: 265.6 kB / 1.092 GB, free: 75.18 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.24e-05/0.7696, allocations: 21.23 kB / 1.092 GB, free: 75.17 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.771, allocations: 136 kB / 1.092 GB, free: 75.14 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.7712, allocations: 53.27 kB / 1.092 GB, free: 75.13 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (122): * Single equations (assignments): 118 * 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.0009286/0.7721, allocations: 492.7 kB / 1.092 GB, free: 74.78 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/0.7725, allocations: 170.3 kB / 1.093 GB, free: 74.69 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/0.7755, allocations: 1.163 MB / 1.094 GB, free: 74.27 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/0.7755, allocations: 13.2 kB / 1.094 GB, free: 74.27 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.7756, allocations: 0 / 1.094 GB, free: 74.27 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002012/0.7776, allocations: 1.007 MB / 1.095 GB, free: 73.76 MB / 0.6823 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.005401/0.783, allocations: 2.445 MB / 1.097 GB, free: 72.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.783, allocations: 1.094 kB / 1.097 GB, free: 72.66 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007549/0.7838, allocations: 154.7 kB / 1.097 GB, free: 72.65 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001989/0.784, allocations: 34.53 kB / 1.097 GB, free: 72.63 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.919e-05/0.7841, allocations: 20.88 kB / 1.097 GB, free: 72.62 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.7851, allocations: 1.378 MB / 1.099 GB, free: 71.27 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.7851, allocations: 1.797 kB / 1.099 GB, free: 71.27 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003446/0.7886, allocations: 1.616 MB / 1.1 GB, free: 70.56 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007386/0.7893, allocations: 359.1 kB / 1.101 GB, free: 70.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004033/0.7897, allocations: 16.72 kB / 1.101 GB, free: 70.29 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.7909, allocations: 119.8 kB / 1.101 GB, free: 70.27 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.7911, allocations: 51.61 kB / 1.101 GB, free: 70.27 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.519e-05/0.7911, allocations: 33.94 kB / 1.101 GB, free: 70.26 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001899/0.793, allocations: 1.108 MB / 1.102 GB, free: 69.81 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.8e-07/0.7931, allocations: 3.75 kB / 1.102 GB, free: 69.81 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003189/0.7963, allocations: 0.9303 MB / 1.103 GB, free: 69.65 MB / 0.6823 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001795/0.7981, allocations: 0.7285 MB / 1.104 GB, free: 69.44 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003931/0.802, allocations: 1.728 MB / 1.105 GB, free: 68.78 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.802, allocations: 0 / 1.105 GB, free: 68.78 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.8033, allocations: 0.5719 MB / 1.106 GB, free: 68.52 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003829/0.8071, allocations: 0.7477 MB / 1.106 GB, free: 68.31 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006208/0.8133, allocations: 3.783 MB / 1.11 GB, free: 66.21 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.8145, allocations: 1.365 MB / 1.112 GB, free: 65.44 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002083/0.8166, allocations: 420.4 kB / 1.112 GB, free: 65.32 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004681/0.8171, allocations: 144.4 kB / 1.112 GB, free: 65.31 MB / 0.6823 GB Notification: Performance of SimCode: time 7.82e-07/0.8171, allocations: 0 / 1.112 GB, free: 65.31 MB / 0.6823 GB Notification: Performance of Templates: time 0.05038/0.8675, allocations: 31.28 MB / 1.143 GB, free: 41.45 MB / 0.6823 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)