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/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.637/1.637, allocations: 292.6 MB / 307.5 MB, free: 5.227 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.001139/0.001139, allocations: 177 kB / 377.1 MB, free: 1.531 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.404/1.404, allocations: 205.4 MB / 0.6367 GB, free: 8.609 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008931/0.0008926, allocations: 95.91 kB / 0.751 GB, free: 63.34 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003645/0.0003646, allocations: 12 kB / 0.8748 GB, free: 11.23 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2625, allocations: 116.3 MB / 0.9884 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.482/1.744, allocations: 449 MB / 1.427 GB, free: 268.1 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/1.745, allocations: 97.67 kB / 1.427 GB, free: 268.1 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 4.436/6.181, allocations: 1.137 GB / 2.564 GB, free: 125.1 MB / 0.9636 GB Notification: Performance of FrontEnd: time 3.767e-06/6.181, allocations: 0 / 2.564 GB, free: 125.1 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0005268/6.181, allocations: 62.31 kB / 2.564 GB, free: 125.1 MB / 0.9636 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.01132/6.193, allocations: 2.681 MB / 2.567 GB, free: 124 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/6.193, allocations: 7.812 kB / 2.567 GB, free: 124 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002706/6.195, allocations: 374.5 kB / 2.567 GB, free: 123.9 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008443/6.204, allocations: 2.491 MB / 2.569 GB, free: 123.5 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/6.204, allocations: 103.8 kB / 2.569 GB, free: 123.5 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002886/6.204, allocations: 144.3 kB / 2.57 GB, free: 123.4 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003418/6.208, allocations: 1.417 MB / 2.571 GB, free: 123.2 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/6.208, allocations: 4.906 kB / 2.571 GB, free: 123.2 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/6.208, allocations: 56.25 kB / 2.571 GB, free: 123.2 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.347e-05/6.208, allocations: 33 kB / 2.571 GB, free: 123.2 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002544/6.211, allocations: 1.036 MB / 2.572 GB, free: 123.1 MB / 0.9636 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.0103/6.221, allocations: 7.151 MB / 2.579 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002119/6.223, allocations: 1.297 MB / 2.58 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004176/6.227, allocations: 2.239 MB / 2.583 GB, free: 117.2 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009872/6.228, allocations: 454.1 kB / 2.583 GB, free: 117.2 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009071/6.229, allocations: 91.28 kB / 2.583 GB, free: 117.1 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=69): time 3.336e-06/6.229, allocations: 0 / 2.583 GB, free: 117.1 MB / 0.9636 GB Notification: Performance of matching and sorting (n=69): time 0.003041/6.232, allocations: 1.215 MB / 2.584 GB, free: 116.9 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/6.232, allocations: 166.2 kB / 2.584 GB, free: 116.7 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002427/6.235, allocations: 1.311 MB / 2.586 GB, free: 116.5 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.273e-05/6.235, allocations: 43.95 kB / 2.586 GB, free: 116.5 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008854/6.236, allocations: 0.8968 MB / 2.587 GB, free: 116.2 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002412/6.236, allocations: 241.4 kB / 2.587 GB, free: 116 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.512e-05/6.236, allocations: 20 kB / 2.587 GB, free: 116 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001156/6.236, allocations: 343.8 kB / 2.587 GB, free: 115.7 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008361/6.237, allocations: 353 kB / 2.587 GB, free: 115.7 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/6.238, allocations: 0.7236 MB / 2.588 GB, free: 115.3 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/6.239, allocations: 475.2 kB / 2.589 GB, free: 115.2 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/6.239, allocations: 5.094 kB / 2.589 GB, free: 115.2 MB / 0.9636 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002859/6.242, allocations: 1.233 MB / 2.59 GB, free: 115.1 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009791/6.243, allocations: 3.734 MB / 2.593 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.755e-05/6.243, allocations: 14.23 kB / 2.594 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-05/6.243, allocations: 15.72 kB / 2.594 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/6.244, allocations: 253.6 kB / 2.594 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.402e-05/6.244, allocations: 19.59 kB / 2.594 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001805/6.246, allocations: 131.8 kB / 2.594 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/6.246, allocations: 58.92 kB / 2.594 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/6.246, allocations: 5.219 kB / 2.594 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002192/6.249, allocations: 1.061 MB / 2.595 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/6.249, allocations: 9.5 kB / 2.595 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-05/6.249, allocations: 16.28 kB / 2.595 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009854/6.25, allocations: 251.6 kB / 2.595 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.962e-05/6.25, allocations: 21.88 kB / 2.595 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/6.251, allocations: 128.3 kB / 2.595 GB, free: 111.1 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/6.251, allocations: 53.45 kB / 2.595 GB, free: 111.1 MB / 0.9636 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 ($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.001473/6.253, allocations: 0.4889 MB / 2.596 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003227/6.253, allocations: 165.2 kB / 2.596 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002555/6.256, allocations: 1.099 MB / 2.597 GB, free: 110.7 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.218e-05/6.256, allocations: 12.72 kB / 2.597 GB, free: 110.7 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/6.256, allocations: 6.781 kB / 2.597 GB, free: 110.7 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001638/6.257, allocations: 0.7954 MB / 2.598 GB, free: 110.6 MB / 0.9636 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.00539/6.263, allocations: 2.394 MB / 2.6 GB, free: 110.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/6.263, allocations: 5.281 kB / 2.6 GB, free: 110.2 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008383/6.264, allocations: 164.8 kB / 2.6 GB, free: 110.2 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002105/6.264, allocations: 25.3 kB / 2.6 GB, free: 110.2 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.838e-05/6.264, allocations: 25.64 kB / 2.601 GB, free: 110.2 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009387/6.265, allocations: 1.313 MB / 2.602 GB, free: 109 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/6.265, allocations: 1.094 kB / 2.602 GB, free: 109 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003296/6.268, allocations: 1.563 MB / 2.603 GB, free: 108.6 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009946/6.269, allocations: 347.8 kB / 2.604 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/6.27, allocations: 19.58 kB / 2.604 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/6.271, allocations: 111.4 kB / 2.604 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/6.271, allocations: 57.41 kB / 2.604 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/6.271, allocations: 38.98 kB / 2.604 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.002436/6.274, allocations: 1.006 MB / 2.605 GB, free: 108.3 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.5e-07/6.274, allocations: 0 / 2.605 GB, free: 108.3 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.00518/6.279, allocations: 1.139 MB / 2.606 GB, free: 108.1 MB / 0.9636 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 (77): * Single equations (assignments): 69 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003079/6.282, allocations: 1.189 MB / 2.607 GB, free: 107.8 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0039/6.286, allocations: 1.597 MB / 2.609 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/6.286, allocations: 4.641 kB / 2.609 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001319/6.287, allocations: 0.5359 MB / 2.609 GB, free: 107.5 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004023/6.291, allocations: 0.7575 MB / 2.61 GB, free: 107.5 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006141/6.297, allocations: 3.823 MB / 2.614 GB, free: 105.8 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009135/6.298, allocations: 1.443 MB / 2.615 GB, free: 105.1 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.002191/6.3, allocations: 418.8 kB / 2.616 GB, free: 105 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003412/6.301, allocations: 140.4 kB / 2.616 GB, free: 105 MB / 0.9636 GB Notification: Performance of SimCode: time 1.453e-06/6.301, allocations: 1.938 kB / 2.616 GB, free: 105 MB / 0.9636 GB Notification: Performance of Templates: time 0.06476/6.366, allocations: 37.01 MB / 2.652 GB, free: 103 MB / 0.9636 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)