Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001394/0.001394, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.00164/0.00164, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.4 MB / 222.1 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.623/1.623, allocations: 251.9 MB / 0.51 GB, free: 4.73 MB / 414.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.0005809/0.0005809, allocations: 12 kB / 0.6241 GB, free: 1.164 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5707/0.5713, allocations: 106.3 MB / 0.728 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06774/0.6391, allocations: 56.27 MB / 0.7829 GB, free: 2.969 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02578/0.6649, allocations: 16.99 MB / 0.7995 GB, free: 1.957 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003548/0.6685, allocations: 71.5 kB / 0.7996 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.003435/0.672, allocations: 1.011 MB / 0.8006 GB, free: 0.8711 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.008481/0.6805, allocations: 2.645 MB / 0.8031 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.008574/0.6891, allocations: 3.078 MB / 0.8062 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.00601/0.6951, allocations: 3.147 MB / 0.8092 GB, free: 8.023 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002264/0.6974, allocations: 1.357 MB / 0.8106 GB, free: 6.641 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002984/0.7004, allocations: 1.452 MB / 0.812 GB, free: 5.184 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001841/0.7022, allocations: 0.9797 MB / 0.8129 GB, free: 4.199 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002567/0.7025, allocations: 72 kB / 0.813 GB, free: 4.129 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003388/0.7059, allocations: 1.431 MB / 0.8144 GB, free: 2.695 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0005198/0.7064, allocations: 410.4 kB / 0.8148 GB, free: 2.293 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006841/0.7071, allocations: 444.6 kB / 0.8152 GB, free: 1.852 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003855/0.711, allocations: 2.654 MB / 0.8178 GB, free: 15.19 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.711, allocations: 0 / 0.8178 GB, free: 15.19 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.803e-06/0.711, allocations: 0 / 0.8178 GB, free: 15.19 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.138e-05/0.7111, allocations: 0 / 0.8178 GB, free: 15.19 MB / 0.6387 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.004486/0.7156, allocations: 2.333 MB / 0.8201 GB, free: 12.79 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 6.579e-05/0.7156, allocations: 12.03 kB / 0.8201 GB, free: 12.77 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001521/0.7172, allocations: 389 kB / 0.8205 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003275/0.7205, allocations: 1.653 MB / 0.8221 GB, free: 10.69 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003889/0.7209, allocations: 162.4 kB / 0.8222 GB, free: 10.53 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002136/0.7211, allocations: 136 kB / 0.8224 GB, free: 10.39 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002654/0.7238, allocations: 1.445 MB / 0.8238 GB, free: 8.859 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.7238, allocations: 7.938 kB / 0.8238 GB, free: 8.852 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.7239, allocations: 52 kB / 0.8238 GB, free: 8.801 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.255e-05/0.724, allocations: 35.98 kB / 0.8239 GB, free: 8.766 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002461/0.7264, allocations: 1.122 MB / 0.825 GB, free: 7.637 MB / 0.6387 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.009678/0.7361, allocations: 7.426 MB / 0.8322 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.7384, allocations: 1.359 MB / 0.8335 GB, free: 14.16 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004263/0.7427, allocations: 2.604 MB / 0.8361 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.7438, allocations: 458.8 kB / 0.8365 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005836/0.7444, allocations: 91.25 kB / 0.8366 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=65): time 5.42e-06/0.7444, allocations: 4 kB / 0.8366 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of matching and sorting (n=65): time 0.003101/0.7475, allocations: 1.284 MB / 0.8379 GB, free: 9.457 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.242e-05/0.7476, allocations: 141 kB / 0.838 GB, free: 9.289 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002292/0.7499, allocations: 1.56 MB / 0.8395 GB, free: 7.73 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.882e-05/0.75, allocations: 41.7 kB / 0.8396 GB, free: 7.684 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008132/0.7508, allocations: 0.9037 MB / 0.8404 GB, free: 6.77 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002257/0.751, allocations: 236.7 kB / 0.8407 GB, free: 6.535 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.7511, allocations: 20 kB / 0.8407 GB, free: 6.516 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.7513, allocations: 341.9 kB / 0.841 GB, free: 6.176 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009294/0.7522, allocations: 390.1 kB / 0.8414 GB, free: 5.797 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001195/0.7534, allocations: 0.7503 MB / 0.8421 GB, free: 4.879 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.7545, allocations: 0.4962 MB / 0.8426 GB, free: 4.379 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.7545, allocations: 0 / 0.8426 GB, free: 4.379 MB / 0.6544 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002846/0.7574, allocations: 1.315 MB / 0.8439 GB, free: 3.047 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.001729/0.7591, allocations: 3.826 MB / 0.8476 GB, free: 14.89 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.227e-05/0.7591, allocations: 12 kB / 0.8476 GB, free: 14.88 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.014e-05/0.7592, allocations: 20 kB / 0.8477 GB, free: 14.86 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/0.7603, allocations: 263.6 kB / 0.8479 GB, free: 14.61 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.573e-05/0.7603, allocations: 19.92 kB / 0.8479 GB, free: 14.59 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/0.7618, allocations: 148.4 kB / 0.8481 GB, free: 14.44 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.7619, allocations: 51.98 kB / 0.8481 GB, free: 14.39 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.7619, allocations: 4 kB / 0.8481 GB, free: 14.39 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002437/0.7644, allocations: 1.139 MB / 0.8492 GB, free: 13.24 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.367e-05/0.7644, allocations: 15.94 kB / 0.8492 GB, free: 13.23 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.7644, allocations: 16.59 kB / 0.8493 GB, free: 13.21 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009698/0.7654, allocations: 259.6 kB / 0.8495 GB, free: 12.96 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.586e-05/0.7655, allocations: 23.92 kB / 0.8495 GB, free: 12.93 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.7669, allocations: 144.4 kB / 0.8497 GB, free: 12.79 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.767, allocations: 55.97 kB / 0.8497 GB, free: 12.74 MB / 0.67 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 ($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 (123): * Single equations (assignments): 119 * 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.0009176/0.7679, allocations: 0.4889 MB / 0.8502 GB, free: 12.24 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003521/0.7683, allocations: 169.8 kB / 0.8504 GB, free: 12.07 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002635/0.7709, allocations: 1.128 MB / 0.8515 GB, free: 10.93 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.771, allocations: 11.95 kB / 0.8515 GB, free: 10.92 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.771, allocations: 4 kB / 0.8515 GB, free: 10.91 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001816/0.7728, allocations: 0.8315 MB / 0.8523 GB, free: 10.07 MB / 0.67 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.005173/0.778, allocations: 2.616 MB / 0.8548 GB, free: 7.355 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.778, allocations: 4 kB / 0.8548 GB, free: 7.352 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007577/0.7788, allocations: 164 kB / 0.855 GB, free: 7.191 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002181/0.779, allocations: 36.83 kB / 0.855 GB, free: 7.152 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.737e-05/0.7791, allocations: 27.98 kB / 0.8551 GB, free: 7.125 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.7803, allocations: 1.39 MB / 0.8564 GB, free: 5.598 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.7803, allocations: 7.938 kB / 0.8564 GB, free: 5.59 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/0.7838, allocations: 1.768 MB / 0.8582 GB, free: 3.707 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008924/0.7847, allocations: 378.6 kB / 0.8585 GB, free: 3.316 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003639/0.7851, allocations: 16 kB / 0.8585 GB, free: 3.301 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/0.7864, allocations: 127.7 kB / 0.8587 GB, free: 3.176 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.7866, allocations: 64.7 kB / 0.8587 GB, free: 3.113 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.722e-05/0.7867, allocations: 35.98 kB / 0.8588 GB, free: 3.078 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001984/0.7887, allocations: 1.122 MB / 0.8598 GB, free: 1.934 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7887, allocations: 4 kB / 0.8599 GB, free: 1.93 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003418/0.7921, allocations: 1.01 MB / 0.8608 GB, free: 0.918 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (75): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.001443/0.7936, allocations: 0.5551 MB / 0.8614 GB, free: 368 kB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003903/0.7975, allocations: 1.698 MB / 0.863 GB, free: 14.63 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.7975, allocations: 0 / 0.863 GB, free: 14.63 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001376/0.7989, allocations: 0.5805 MB / 0.8636 GB, free: 14.03 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004607/0.8036, allocations: 0.8565 MB / 0.8644 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007059/0.8107, allocations: 3.895 MB / 0.8682 GB, free: 9.223 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/0.8121, allocations: 1.452 MB / 0.8697 GB, free: 7.738 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.002115/0.8142, allocations: 426.7 kB / 0.8701 GB, free: 7.316 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000496/0.8147, allocations: 147.3 kB / 0.8702 GB, free: 7.172 MB / 0.6856 GB Notification: Performance of SimCode: time 9.32e-07/0.8147, allocations: 0 / 0.8702 GB, free: 7.172 MB / 0.6856 GB Notification: Performance of Templates: time 0.06084/0.8756, allocations: 34.65 MB / 0.904 GB, free: 4.992 MB / 0.7169 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) Environment - environmentSimulation: