Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 99 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.001106/0.001106, 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.407/1.407, allocations: 205.4 MB / 222.1 MB, free: 5.883 MB / 174.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.622/1.622, allocations: 292.5 MB / 0.5497 GB, free: 14.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.0005173/0.0005173, allocations: 19.72 kB / 0.6735 GB, free: 26.47 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2198, allocations: 116.3 MB / 0.7871 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04393/0.2638, allocations: 44.86 MB / 0.8309 GB, free: 15 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02156/0.2854, allocations: 15.62 MB / 0.8462 GB, free: 15.36 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002335/0.2878, allocations: 63.56 kB / 0.8462 GB, free: 15.29 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002886/0.2907, allocations: 0.9736 MB / 0.8472 GB, free: 14.32 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.006396/0.2971, allocations: 2.319 MB / 0.8494 GB, free: 12 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.007823/0.3049, allocations: 3.003 MB / 0.8524 GB, free: 9.023 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.005277/0.3102, allocations: 2.768 MB / 0.8551 GB, free: 6.25 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001957/0.3122, allocations: 1.245 MB / 0.8563 GB, free: 4.977 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002687/0.3149, allocations: 1.366 MB / 0.8576 GB, free: 3.605 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001237/0.3161, allocations: 0.9137 MB / 0.8585 GB, free: 2.688 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0001754/0.3163, allocations: 72 kB / 0.8586 GB, free: 2.617 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002862/0.3192, allocations: 1.369 MB / 0.8599 GB, free: 1.246 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0004045/0.3196, allocations: 398.4 kB / 0.8603 GB, free: 0.8555 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0004455/0.3201, allocations: 404.6 kB / 0.8607 GB, free: 464 kB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.00326/0.3233, allocations: 2.443 MB / 0.8631 GB, free: 14 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3233, allocations: 0 / 0.8631 GB, free: 14 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3234, allocations: 0 / 0.8631 GB, free: 14 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 3.509e-05/0.3234, allocations: 0 / 0.8631 GB, free: 14 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004234/0.3276, allocations: 2.225 MB / 0.8653 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.3277, allocations: 12.03 kB / 0.8653 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001963/0.3297, allocations: 481 kB / 0.8657 GB, free: 11.23 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002666/0.3323, allocations: 1.536 MB / 0.8672 GB, free: 9.641 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003693/0.3327, allocations: 162.1 kB / 0.8674 GB, free: 9.48 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001677/0.3329, allocations: 120 kB / 0.8675 GB, free: 9.363 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/0.3353, allocations: 1.376 MB / 0.8688 GB, free: 7.887 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/0.3354, allocations: 11.92 kB / 0.8688 GB, free: 7.875 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/0.3355, allocations: 44 kB / 0.8689 GB, free: 7.832 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.228e-05/0.3355, allocations: 32 kB / 0.8689 GB, free: 7.801 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002529/0.3381, allocations: 1.117 MB / 0.87 GB, free: 6.676 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.008419/0.3465, allocations: 7.152 MB / 0.877 GB, free: 14.96 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/0.3489, allocations: 1.411 MB / 0.8784 GB, free: 13.43 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004674/0.3536, allocations: 3.09 MB / 0.8814 GB, free: 10 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001055/0.3547, allocations: 454.9 kB / 0.8818 GB, free: 9.547 MB / 0.7012 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004256/0.3551, allocations: 91.25 kB / 0.8819 GB, free: 9.457 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=61): time 2.946e-06/0.3551, allocations: 0 / 0.8819 GB, free: 9.457 MB / 0.7012 GB Notification: Performance of matching and sorting (n=61): time 0.00294/0.3581, allocations: 1.28 MB / 0.8832 GB, free: 8.148 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.305e-05/0.3582, allocations: 137.1 kB / 0.8833 GB, free: 7.984 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/0.3601, allocations: 1.605 MB / 0.8849 GB, free: 6.379 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 6.987e-05/0.3602, allocations: 41.7 kB / 0.8849 GB, free: 6.332 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007055/0.3609, allocations: 0.8881 MB / 0.8858 GB, free: 5.434 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.3611, allocations: 224.8 kB / 0.886 GB, free: 5.211 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.936e-05/0.3612, allocations: 20 kB / 0.886 GB, free: 5.191 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.3613, allocations: 349.9 kB / 0.8863 GB, free: 4.844 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009145/0.3622, allocations: 386.1 kB / 0.8867 GB, free: 4.469 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/0.3634, allocations: 0.7948 MB / 0.8875 GB, free: 3.48 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009816/0.3644, allocations: 0.4967 MB / 0.888 GB, free: 2.98 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.3644, allocations: 4 kB / 0.888 GB, free: 2.977 MB / 0.7012 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.00262/0.3671, allocations: 1.336 MB / 0.8893 GB, free: 1.625 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.001605/0.3687, allocations: 4.364 MB / 0.8935 GB, free: 12.89 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.428e-05/0.3687, allocations: 15.94 kB / 0.8935 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.901e-05/0.3687, allocations: 16 kB / 0.8936 GB, free: 12.86 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009917/0.3697, allocations: 271.6 kB / 0.8938 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.907e-05/0.3698, allocations: 23.92 kB / 0.8938 GB, free: 12.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.371, allocations: 136.5 kB / 0.894 GB, free: 12.44 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.531e-05/0.3712, allocations: 51.98 kB / 0.894 GB, free: 12.39 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/0.3712, allocations: 7.125 kB / 0.894 GB, free: 12.38 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002286/0.3735, allocations: 1.161 MB / 0.8952 GB, free: 11.21 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.3735, allocations: 15.98 kB / 0.8952 GB, free: 11.2 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.3735, allocations: 20.55 kB / 0.8952 GB, free: 11.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009306/0.3745, allocations: 263.6 kB / 0.8955 GB, free: 10.92 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.839e-05/0.3745, allocations: 27.92 kB / 0.8955 GB, free: 10.89 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.3757, allocations: 132.4 kB / 0.8956 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.103e-05/0.3758, allocations: 59.98 kB / 0.8957 GB, free: 10.71 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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.0008444/0.3766, allocations: 483.5 kB / 0.8961 GB, free: 10.23 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.3768, allocations: 165.9 kB / 0.8963 GB, free: 10.06 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002575/0.3794, allocations: 1.167 MB / 0.8974 GB, free: 8.887 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.3795, allocations: 8 kB / 0.8974 GB, free: 8.879 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3795, allocations: 0 / 0.8974 GB, free: 8.879 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001889/0.3814, allocations: 0.9978 MB / 0.8984 GB, free: 7.828 MB / 0.7169 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.004154/0.3855, allocations: 2.479 MB / 0.9008 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.3855, allocations: 3.938 kB / 0.9008 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007136/0.3863, allocations: 155.8 kB / 0.901 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002088/0.3865, allocations: 40.83 kB / 0.901 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.005e-05/0.3866, allocations: 23.98 kB / 0.901 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.3878, allocations: 1.382 MB / 0.9024 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.108e-05/0.3878, allocations: 3.938 kB / 0.9024 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003158/0.391, allocations: 1.627 MB / 0.904 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006671/0.3917, allocations: 370.5 kB / 0.9043 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.3919, allocations: 12.28 kB / 0.9043 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009645/0.3929, allocations: 115.8 kB / 0.9045 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.393, allocations: 60.38 kB / 0.9045 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-05/0.3931, allocations: 35.97 kB / 0.9045 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001585/0.3947, allocations: 1.141 MB / 0.9057 GB, free: 88 kB / 0.7169 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3947, allocations: 4 kB / 0.9057 GB, free: 84 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002499/0.3972, allocations: 0.9318 MB / 0.9066 GB, free: 15.15 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.outCon.T) * 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 (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001545/0.3987, allocations: 0.7691 MB / 0.9073 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.003373/0.4021, allocations: 1.713 MB / 0.909 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4021, allocations: 4 kB / 0.909 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.4033, allocations: 0.5659 MB / 0.9096 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002956/0.4063, allocations: 0.7385 MB / 0.9103 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005336/0.4117, allocations: 3.765 MB / 0.914 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008816/0.4126, allocations: 1.403 MB / 0.9153 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001508/0.4141, allocations: 426.2 kB / 0.9157 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003154/0.4144, allocations: 143.4 kB / 0.9159 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of SimCode: time 7.02e-07/0.4144, allocations: 4 kB / 0.9159 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of Templates: time 0.4158/0.8302, allocations: 31.7 MB / 0.9468 GB, free: 122.3 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) Environment - environmentSimulation: