Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.681/1.681, allocations: 297.8 MB / 313.7 MB, free: 144 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009862/0.0009863, allocations: 178.9 kB / 384.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.2 MB / 0.6626 GB, free: 4.359 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007511/0.0007511, allocations: 102.6 kB / 0.7808 GB, free: 43.77 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003599, allocations: 12 kB / 0.9088 GB, free: 0.6836 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6067/0.6071, allocations: 120.3 MB / 1.026 GB, free: 56.86 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9299/1.537, allocations: 437.9 MB / 1.454 GB, free: 132.4 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/1.537, allocations: 98.86 kB / 1.454 GB, free: 132.4 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 3.804/5.342, allocations: 1.141 GB / 2.595 GB, free: 141.4 MB / 0.9948 GB Notification: Performance of FrontEnd: time 2.735e-06/5.342, allocations: 3.312 kB / 2.595 GB, free: 141.4 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.0003302/5.342, allocations: 52.02 kB / 2.595 GB, free: 141.4 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.007129/5.349, allocations: 2.597 MB / 2.598 GB, free: 140.2 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/5.349, allocations: 13.75 kB / 2.598 GB, free: 140.2 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001932/5.351, allocations: 381.5 kB / 2.598 GB, free: 140.1 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005666/5.357, allocations: 2.391 MB / 2.6 GB, free: 139.6 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.979e-05/5.357, allocations: 98.09 kB / 2.6 GB, free: 139.6 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001911/5.357, allocations: 137.4 kB / 2.601 GB, free: 139.6 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/5.36, allocations: 1.403 MB / 2.602 GB, free: 139.3 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.579e-05/5.36, allocations: 2.344 kB / 2.602 GB, free: 139.3 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/5.36, allocations: 53.38 kB / 2.602 GB, free: 139.3 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.122e-05/5.36, allocations: 48.94 kB / 2.602 GB, free: 139.3 MB / 0.9948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/5.362, allocations: 1.027 MB / 2.603 GB, free: 139.3 MB / 0.9948 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.008029/5.37, allocations: 7.158 MB / 2.61 GB, free: 135.2 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/5.371, allocations: 1.287 MB / 2.611 GB, free: 134.7 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006772/5.372, allocations: 425.5 kB / 2.612 GB, free: 134.6 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004215/5.376, allocations: 2.572 MB / 2.614 GB, free: 133.3 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008189/5.377, allocations: 477.4 kB / 2.615 GB, free: 133.2 MB / 0.9948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000818/5.378, allocations: 84.77 kB / 2.615 GB, free: 133.2 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=66): time 3.557e-06/5.378, allocations: 2.156 kB / 2.615 GB, free: 133.2 MB / 0.9948 GB Notification: Performance of matching and sorting (n=66): time 0.002469/5.38, allocations: 1.247 MB / 2.616 GB, free: 132.8 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/5.38, allocations: 164.8 kB / 2.616 GB, free: 132.7 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/5.382, allocations: 1.422 MB / 2.618 GB, free: 132.5 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 7.585e-05/5.382, allocations: 47.52 kB / 2.618 GB, free: 132.4 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00073/5.383, allocations: 0.878 MB / 2.618 GB, free: 132.1 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000202/5.383, allocations: 233.8 kB / 2.619 GB, free: 132 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.481e-05/5.383, allocations: 18.88 kB / 2.619 GB, free: 132 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.000113/5.383, allocations: 344.8 kB / 2.619 GB, free: 131.7 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006274/5.384, allocations: 313.7 kB / 2.619 GB, free: 131.7 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008995/5.385, allocations: 0.7066 MB / 2.62 GB, free: 131.2 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/5.386, allocations: 1.006 MB / 2.621 GB, free: 130.8 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/5.386, allocations: 1.656 kB / 2.621 GB, free: 130.8 MB / 0.9948 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002177/5.389, allocations: 1.168 MB / 2.622 GB, free: 130.7 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002569/5.389, allocations: 409.9 kB / 2.623 GB, free: 130.2 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/5.389, allocations: 15.03 kB / 2.623 GB, free: 130.2 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.431e-05/5.389, allocations: 16.66 kB / 2.623 GB, free: 130.2 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008613/5.39, allocations: 233.8 kB / 2.623 GB, free: 130.2 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.077e-05/5.39, allocations: 19.28 kB / 2.623 GB, free: 130.2 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/5.391, allocations: 123.1 kB / 2.623 GB, free: 130.2 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/5.391, allocations: 54.44 kB / 2.623 GB, free: 130.2 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/5.391, allocations: 5.906 kB / 2.623 GB, free: 130.2 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001793/5.393, allocations: 0.9961 MB / 2.624 GB, free: 130.1 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/5.393, allocations: 16.47 kB / 2.624 GB, free: 130.1 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/5.393, allocations: 11.66 kB / 2.624 GB, free: 130.1 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007829/5.394, allocations: 244.3 kB / 2.624 GB, free: 130.1 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/5.394, allocations: 19.19 kB / 2.624 GB, free: 130.1 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/5.395, allocations: 111 kB / 2.624 GB, free: 130.1 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-05/5.395, allocations: 55.23 kB / 2.624 GB, free: 130.1 MB / 0.9948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (118): * Single equations (assignments): 116 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.000978/5.396, allocations: 495.4 kB / 2.625 GB, free: 129.9 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002338/5.397, allocations: 162.8 kB / 2.625 GB, free: 129.9 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/5.399, allocations: 1.125 MB / 2.626 GB, free: 129.7 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/5.399, allocations: 11.27 kB / 2.626 GB, free: 129.7 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/5.399, allocations: 5.906 kB / 2.626 GB, free: 129.7 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001248/5.4, allocations: 0.8308 MB / 2.627 GB, free: 129.5 MB / 0.9948 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.004153/5.404, allocations: 2.664 MB / 2.63 GB, free: 128.8 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/5.404, allocations: 3.25 kB / 2.63 GB, free: 128.8 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006359/5.405, allocations: 151 kB / 2.63 GB, free: 128.8 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001359/5.405, allocations: 26.47 kB / 2.63 GB, free: 128.8 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.063e-05/5.405, allocations: 21.75 kB / 2.63 GB, free: 128.8 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006654/5.406, allocations: 1.305 MB / 2.631 GB, free: 127.6 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/5.406, allocations: 5.438 kB / 2.631 GB, free: 127.6 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002399/5.408, allocations: 1.606 MB / 2.633 GB, free: 127.1 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007504/5.409, allocations: 355.5 kB / 2.633 GB, free: 126.8 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003203/5.409, allocations: 19.78 kB / 2.633 GB, free: 126.8 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/5.41, allocations: 105.1 kB / 2.633 GB, free: 126.8 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/5.41, allocations: 70.89 kB / 2.633 GB, free: 126.8 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.087e-05/5.41, allocations: 34.56 kB / 2.633 GB, free: 126.8 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.001534/5.412, allocations: 1.018 MB / 2.634 GB, free: 126.4 MB / 0.9948 GB Notification: Performance of sort global known variables: time 1.8e-07/5.412, allocations: 0 / 2.634 GB, free: 126.4 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.00305/5.415, allocations: 1.028 MB / 2.635 GB, free: 126.1 MB / 0.9948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[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.00176/5.417, allocations: 1.082 MB / 2.636 GB, free: 125.8 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.002498/5.419, allocations: 1.466 MB / 2.638 GB, free: 125.4 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/5.419, allocations: 0 / 2.638 GB, free: 125.4 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008741/5.42, allocations: 0.5307 MB / 2.638 GB, free: 125.1 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004493/5.425, allocations: 0.8433 MB / 2.639 GB, free: 125 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006815/5.432, allocations: 3.777 MB / 2.643 GB, free: 123 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001235/5.433, allocations: 1.385 MB / 2.644 GB, free: 122.2 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.00234/5.435, allocations: 433.2 kB / 2.644 GB, free: 122.2 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000329/5.435, allocations: 143.6 kB / 2.645 GB, free: 122.2 MB / 0.9948 GB Notification: Performance of SimCode: time 8.21e-07/5.435, allocations: 0 / 2.645 GB, free: 122.2 MB / 0.9948 GB Notification: Performance of Templates: time 0.05508/5.491, allocations: 37.59 MB / 2.681 GB, free: 119.8 MB / 0.9948 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)