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.0008454/0.0008455, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006192/0.006192, allocations: 171.6 kB / 16.27 MB, free: 6.328 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.455/1.455, allocations: 205.4 MB / 222.4 MB, free: 5.551 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.688/1.688, allocations: 252 MB / 0.5105 GB, free: 4.723 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.0005224/0.0005226, allocations: 16 kB / 0.6249 GB, free: 0.7266 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5186/0.5191, allocations: 106.3 MB / 0.7287 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.07611/0.5953, allocations: 65.43 MB / 0.7926 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02992/0.6252, allocations: 19.53 MB / 0.8117 GB, free: 6.055 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004808/0.6301, allocations: 79.5 kB / 0.8118 GB, free: 5.977 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004543/0.6347, allocations: 1.022 MB / 0.8128 GB, free: 4.949 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.009014/0.6437, allocations: 2.426 MB / 0.8151 GB, free: 2.516 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.009902/0.6536, allocations: 3.097 MB / 0.8182 GB, free: 15.44 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.01023/0.6639, allocations: 6.978 MB / 0.825 GB, free: 8.441 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003079/0.667, allocations: 1.574 MB / 0.8265 GB, free: 6.82 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004353/0.6714, allocations: 1.719 MB / 0.8282 GB, free: 5.094 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002941/0.6744, allocations: 1.442 MB / 0.8296 GB, free: 3.645 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004162/0.6748, allocations: 72 kB / 0.8297 GB, free: 3.574 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00429/0.6791, allocations: 1.906 MB / 0.8315 GB, free: 1.664 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.000762/0.6799, allocations: 450 kB / 0.832 GB, free: 1.223 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002175/0.6821, allocations: 1.008 MB / 0.8329 GB, free: 208 kB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.006356/0.6885, allocations: 3.578 MB / 0.8364 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.6885, allocations: 0 / 0.8364 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.864e-06/0.6885, allocations: 0 / 0.8364 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.759e-05/0.6886, allocations: 0 / 0.8364 GB, free: 12.61 MB / 0.6544 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.004639/0.6932, allocations: 2.322 MB / 0.8387 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.6933, allocations: 12.03 kB / 0.8387 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/0.6948, allocations: 389.9 kB / 0.8391 GB, free: 9.824 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003445/0.6982, allocations: 1.804 MB / 0.8408 GB, free: 7.969 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003986/0.6986, allocations: 166.4 kB / 0.841 GB, free: 7.805 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002202/0.6989, allocations: 135.9 kB / 0.8411 GB, free: 7.672 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/0.7016, allocations: 1.46 MB / 0.8426 GB, free: 6.125 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.203e-05/0.7017, allocations: 3.938 kB / 0.8426 GB, free: 6.121 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.7018, allocations: 52 kB / 0.8426 GB, free: 6.07 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.335e-05/0.7019, allocations: 32 kB / 0.8426 GB, free: 6.039 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00247/0.7043, allocations: 1.133 MB / 0.8437 GB, free: 4.898 MB / 0.6544 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.01022/0.7146, allocations: 7.319 MB / 0.8509 GB, free: 13.01 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002298/0.7169, allocations: 1.358 MB / 0.8522 GB, free: 11.54 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.7179, allocations: 454.5 kB / 0.8527 GB, free: 11.09 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004129/0.7221, allocations: 2.316 MB / 0.8549 GB, free: 8.547 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001106/0.7232, allocations: 482.8 kB / 0.8554 GB, free: 8.066 MB / 0.67 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006881/0.7239, allocations: 83.34 kB / 0.8555 GB, free: 7.984 MB / 0.67 GB Notification: Performance of pre-optimization done (n=67): time 2.635e-06/0.7239, allocations: 0 / 0.8555 GB, free: 7.984 MB / 0.67 GB Notification: Performance of matching and sorting (n=67): time 0.003395/0.7273, allocations: 1.327 MB / 0.8568 GB, free: 6.633 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.693e-05/0.7274, allocations: 115.3 kB / 0.8569 GB, free: 6.492 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002103/0.7295, allocations: 1.469 MB / 0.8583 GB, free: 5.023 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 9.022e-05/0.7296, allocations: 45.7 kB / 0.8583 GB, free: 4.973 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007882/0.7304, allocations: 0.8958 MB / 0.8592 GB, free: 4.066 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002349/0.7307, allocations: 240.6 kB / 0.8594 GB, free: 3.828 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.7308, allocations: 93.66 kB / 0.8595 GB, free: 3.73 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.731, allocations: 349.9 kB / 0.8599 GB, free: 3.383 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.732, allocations: 418.1 kB / 0.8603 GB, free: 2.969 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.7332, allocations: 0.7676 MB / 0.861 GB, free: 2.047 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/0.7354, allocations: 1.159 MB / 0.8621 GB, free: 0.7578 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.7354, allocations: 4 kB / 0.8622 GB, free: 0.7539 MB / 0.67 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002899/0.7383, allocations: 1.368 MB / 0.8635 GB, free: 15.37 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002476/0.7386, allocations: 388.5 kB / 0.8639 GB, free: 14.85 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.7386, allocations: 12 kB / 0.8639 GB, free: 14.84 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.731e-05/0.7387, allocations: 16 kB / 0.8639 GB, free: 14.82 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.7397, allocations: 267.6 kB / 0.8641 GB, free: 14.56 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.278e-05/0.7397, allocations: 19.94 kB / 0.8642 GB, free: 14.54 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.7411, allocations: 156.3 kB / 0.8643 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.517e-05/0.7412, allocations: 51.98 kB / 0.8644 GB, free: 14.34 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.7412, allocations: 10.34 kB / 0.8644 GB, free: 14.33 MB / 0.6856 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002487/0.7437, allocations: 1.169 MB / 0.8655 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.736e-05/0.7438, allocations: 8 kB / 0.8655 GB, free: 13.15 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.7438, allocations: 24.47 kB / 0.8655 GB, free: 13.13 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.7448, allocations: 259.7 kB / 0.8658 GB, free: 12.88 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/0.7448, allocations: 27.92 kB / 0.8658 GB, free: 12.85 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/0.7463, allocations: 144.4 kB / 0.866 GB, free: 12.71 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.7464, allocations: 51.98 kB / 0.866 GB, free: 12.66 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (125): * Single equations (assignments): 121 * 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.0009574/0.7474, allocations: 0.4918 MB / 0.8665 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/0.7477, allocations: 165.9 kB / 0.8666 GB, free: 11.99 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002685/0.7504, allocations: 1.155 MB / 0.8678 GB, free: 10.82 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/0.7505, allocations: 11.94 kB / 0.8678 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.7505, allocations: 0 / 0.8678 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001946/0.7524, allocations: 0.8667 MB / 0.8686 GB, free: 9.922 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 postOpt removeSimpleEquations (simulation): time 0.00519/0.7576, allocations: 2.483 MB / 0.8711 GB, free: 7.371 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.7576, allocations: 0 / 0.8711 GB, free: 7.371 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007643/0.7584, allocations: 167.8 kB / 0.8712 GB, free: 7.207 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002039/0.7586, allocations: 32.83 kB / 0.8712 GB, free: 7.172 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.7587, allocations: 23.98 kB / 0.8713 GB, free: 7.148 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.76, allocations: 1.37 MB / 0.8726 GB, free: 5.648 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.76, allocations: 0 / 0.8726 GB, free: 5.648 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00345/0.7635, allocations: 1.626 MB / 0.8742 GB, free: 3.996 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006783/0.7642, allocations: 342.8 kB / 0.8745 GB, free: 3.641 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001748/0.7643, allocations: 19.98 kB / 0.8745 GB, free: 3.621 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.7654, allocations: 119.7 kB / 0.8747 GB, free: 3.504 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.7655, allocations: 56.58 kB / 0.8747 GB, free: 3.445 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.171e-05/0.7656, allocations: 31.97 kB / 0.8747 GB, free: 3.414 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.00146/0.7671, allocations: 0.9816 MB / 0.8757 GB, free: 2.441 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.21e-07/0.7671, allocations: 0 / 0.8757 GB, free: 2.441 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002728/0.7698, allocations: 0.9975 MB / 0.8767 GB, free: 1.441 MB / 0.6856 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 (75): * Single equations (assignments): 67 * 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.001294/0.7711, allocations: 0.542 MB / 0.8772 GB, free: 0.8945 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003725/0.7748, allocations: 1.76 MB / 0.8789 GB, free: 15.1 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.7749, allocations: 0 / 0.8789 GB, free: 15.1 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.7761, allocations: 0.5855 MB / 0.8795 GB, free: 14.51 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003974/0.7801, allocations: 0.7767 MB / 0.8802 GB, free: 13.74 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006109/0.7862, allocations: 3.957 MB / 0.8841 GB, free: 9.742 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.7873, allocations: 1.408 MB / 0.8855 GB, free: 8.305 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001853/0.7891, allocations: 401.8 kB / 0.8859 GB, free: 7.906 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.7895, allocations: 135.4 kB / 0.886 GB, free: 7.773 MB / 0.7012 GB Notification: Performance of SimCode: time 6.22e-07/0.7895, allocations: 0 / 0.886 GB, free: 7.773 MB / 0.7012 GB Notification: Performance of Templates: time 0.4098/1.199, allocations: 31.37 MB / 0.9166 GB, free: 161.4 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: