Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json 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/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001189, allocations: 102.6 kB / 16.27 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001109, allocations: 190.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.741/1.741, allocations: 292.3 MB / 0.5495 GB, free: 17.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 75.89 kB / 0.6722 GB, free: 6.527 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2281, allocations: 114.6 MB / 0.784 GB, free: 3.859 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.5211/0.7492, allocations: 67.09 MB / 0.8495 GB, free: 4.898 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.03355/0.7828, allocations: 19.3 MB / 0.8684 GB, free: 7.461 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005468/0.7884, allocations: 94.34 kB / 0.8685 GB, free: 7.426 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.005175/0.7936, allocations: 1.205 MB / 0.8697 GB, free: 6.73 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01137/0.8051, allocations: 2.638 MB / 0.8722 GB, free: 5.176 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.01441/0.8195, allocations: 3.73 MB / 0.8759 GB, free: 2.945 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01057/0.8301, allocations: 5.355 MB / 0.8811 GB, free: 15.84 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003852/0.834, allocations: 1.903 MB / 0.883 GB, free: 14.62 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00611/0.8401, allocations: 2.093 MB / 0.885 GB, free: 13.39 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003847/0.844, allocations: 1.492 MB / 0.8865 GB, free: 12.46 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0007266/0.8447, allocations: 191.2 kB / 0.8866 GB, free: 12.46 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006627/0.8514, allocations: 2.096 MB / 0.8887 GB, free: 11.34 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001362/0.8528, allocations: 0.5595 MB / 0.8892 GB, free: 10.91 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002659/0.8555, allocations: 1.141 MB / 0.8904 GB, free: 10.13 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.009519/0.865, allocations: 3.729 MB / 0.894 GB, free: 7.633 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.8651, allocations: 1.156 kB / 0.894 GB, free: 7.633 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.174e-06/0.8651, allocations: 0 / 0.894 GB, free: 7.633 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 9.064e-05/0.8652, allocations: 0 / 0.894 GB, free: 7.633 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.006531/0.8717, allocations: 2.722 MB / 0.8967 GB, free: 5.598 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.8718, allocations: 9.688 kB / 0.8967 GB, free: 5.598 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/0.8735, allocations: 379.2 kB / 0.897 GB, free: 5.418 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003849/0.8774, allocations: 1.719 MB / 0.8987 GB, free: 4.113 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004006/0.8778, allocations: 159.7 kB / 0.8989 GB, free: 4.043 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002599/0.8781, allocations: 137.6 kB / 0.899 GB, free: 3.996 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002937/0.8811, allocations: 1.445 MB / 0.9004 GB, free: 3.047 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.826e-05/0.8811, allocations: 13.23 kB / 0.9004 GB, free: 3.035 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/0.8812, allocations: 53.75 kB / 0.9005 GB, free: 2.996 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.229e-05/0.8813, allocations: 31.62 kB / 0.9005 GB, free: 2.996 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002525/0.8838, allocations: 1.106 MB / 0.9016 GB, free: 2.336 MB / 0.6856 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.01047/0.8943, allocations: 7.377 MB / 0.9088 GB, free: 10.39 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002361/0.8967, allocations: 1.312 MB / 0.9101 GB, free: 8.973 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.8977, allocations: 435.2 kB / 0.9105 GB, free: 8.543 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004422/0.9022, allocations: 2.31 MB / 0.9127 GB, free: 6.004 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001105/0.9033, allocations: 466.9 kB / 0.9132 GB, free: 5.535 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=66): time 3.697e-06/0.9034, allocations: 0 / 0.9132 GB, free: 5.535 MB / 0.7012 GB Notification: Performance of matching and sorting (n=66): time 0.003534/0.9069, allocations: 1.28 MB / 0.9144 GB, free: 4.223 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.646e-05/0.907, allocations: 111.4 kB / 0.9145 GB, free: 4.09 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002265/0.9093, allocations: 1.497 MB / 0.916 GB, free: 2.594 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001633/0.9095, allocations: 45.7 kB / 0.916 GB, free: 2.543 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008507/0.9103, allocations: 0.9036 MB / 0.9169 GB, free: 1.629 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/0.9106, allocations: 232.7 kB / 0.9171 GB, free: 1.398 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003488/0.911, allocations: 214.4 kB / 0.9173 GB, free: 1.18 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.9111, allocations: 349.9 kB / 0.9177 GB, free: 0.832 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009689/0.9121, allocations: 416.9 kB / 0.9181 GB, free: 436 kB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/0.9134, allocations: 0.7603 MB / 0.9188 GB, free: 15.5 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002092/0.9155, allocations: 1.143 MB / 0.9199 GB, free: 14.23 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.9156, allocations: 0 / 0.9199 GB, free: 14.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003099/0.9187, allocations: 1.342 MB / 0.9212 GB, free: 12.87 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.606e-05/0.9187, allocations: 35.73 kB / 0.9213 GB, free: 12.83 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.731e-05/0.9188, allocations: 15.98 kB / 0.9213 GB, free: 12.81 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.063e-05/0.9188, allocations: 12 kB / 0.9213 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000979/0.9198, allocations: 260.2 kB / 0.9216 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.538e-05/0.9198, allocations: 21.58 kB / 0.9216 GB, free: 12.53 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.9214, allocations: 143.5 kB / 0.9217 GB, free: 12.39 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.9215, allocations: 51.98 kB / 0.9218 GB, free: 12.34 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001572/0.9231, allocations: 0.7208 MB / 0.9225 GB, free: 11.61 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001211/0.9243, allocations: 0.7408 MB / 0.9232 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002083/0.9264, allocations: 1.108 MB / 0.9243 GB, free: 9.465 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.386e-06/0.9264, allocations: 4 kB / 0.9243 GB, free: 9.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=128) (initialization_lambda0): time 0.003225/0.9296, allocations: 1.323 MB / 0.9256 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.326e-05/0.9297, allocations: 33.7 kB / 0.9256 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.571e-05/0.9297, allocations: 13.56 kB / 0.9256 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.9298, allocations: 16 kB / 0.9256 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009755/0.9307, allocations: 256 kB / 0.9259 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.216e-05/0.9308, allocations: 23.92 kB / 0.9259 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.9323, allocations: 127.8 kB / 0.926 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.413e-05/0.9324, allocations: 47.98 kB / 0.9261 GB, free: 7.613 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004188/0.9328, allocations: 251.9 kB / 0.9263 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003507/0.9331, allocations: 165.9 kB / 0.9265 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002839/0.936, allocations: 1.13 MB / 0.9276 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.915e-05/0.936, allocations: 11.98 kB / 0.9276 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.936, allocations: 0 / 0.9276 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001864/0.9379, allocations: 0.8355 MB / 0.9284 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005176/0.9431, allocations: 2.479 MB / 0.9308 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.9431, allocations: 10 kB / 0.9308 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007654/0.9439, allocations: 155.8 kB / 0.931 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002278/0.9441, allocations: 36.84 kB / 0.931 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-05/0.9442, allocations: 23.97 kB / 0.931 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.9457, allocations: 1.469 MB / 0.9325 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.9457, allocations: 4.031 kB / 0.9325 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.9493, allocations: 1.582 MB / 0.934 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007672/0.9501, allocations: 334.8 kB / 0.9343 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/0.9504, allocations: 19.98 kB / 0.9344 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008405/0.9512, allocations: 56.09 kB / 0.9344 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.9514, allocations: 64.48 kB / 0.9345 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-05/0.9515, allocations: 31.98 kB / 0.9345 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001522/0.953, allocations: 1.001 MB / 0.9355 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.4e-07/0.953, allocations: 0 / 0.9355 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003042/0.956, allocations: 1.013 MB / 0.9365 GB, free: 12.7 MB / 0.7325 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.vol.dynBal.U) * 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 (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001508/0.9576, allocations: 0.5716 MB / 0.937 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.004263/0.9618, allocations: 1.793 MB / 0.9388 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.9619, allocations: 0 / 0.9388 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001303/0.9632, allocations: 0.5653 MB / 0.9393 GB, free: 9.723 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00412/0.9673, allocations: 0.8128 MB / 0.9401 GB, free: 8.992 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006128/0.9735, allocations: 3.232 MB / 0.9433 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.9746, allocations: 1.395 MB / 0.9446 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006036/0.9752, allocations: 147.4 kB / 0.9448 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of SimCode: time 9.51e-07/0.9752, allocations: 4 kB / 0.9448 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of Templates: time 0.05386/1.029, allocations: 35.05 MB / 0.979 GB, free: 1.383 MB / 0.7637 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)