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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007784/0.0007824, 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.00625/0.00625, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.443/1.443, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.687/1.687, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0005325/0.0005325, allocations: 12.12 kB / 0.6743 GB, free: 25.93 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2421, allocations: 116.3 MB / 0.7879 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.07053/0.3126, allocations: 65.43 MB / 0.8518 GB, free: 9.922 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03011/0.3428, allocations: 19.57 MB / 0.8709 GB, free: 6.309 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003536/0.3464, allocations: 83.44 kB / 0.871 GB, free: 6.227 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.003613/0.35, allocations: 1.018 MB / 0.8719 GB, free: 5.203 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.007424/0.3575, allocations: 2.436 MB / 0.8743 GB, free: 2.762 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.00879/0.3663, allocations: 3.147 MB / 0.8774 GB, free: 15.64 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.008803/0.3751, allocations: 6.975 MB / 0.8842 GB, free: 8.641 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003144/0.3782, allocations: 1.574 MB / 0.8857 GB, free: 7.016 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004053/0.3823, allocations: 1.746 MB / 0.8875 GB, free: 5.262 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00257/0.3849, allocations: 1.423 MB / 0.8888 GB, free: 3.832 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0004723/0.3854, allocations: 72 kB / 0.8889 GB, free: 3.762 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004529/0.3899, allocations: 1.953 MB / 0.8908 GB, free: 1.805 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0008504/0.3908, allocations: 454 kB / 0.8912 GB, free: 1.359 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002116/0.3929, allocations: 1.02 MB / 0.8922 GB, free: 336 kB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.006157/0.3991, allocations: 3.594 MB / 0.8958 GB, free: 12.72 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3991, allocations: 0 / 0.8958 GB, free: 12.72 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.464e-06/0.3991, allocations: 0 / 0.8958 GB, free: 12.72 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.737e-05/0.3992, allocations: 0 / 0.8958 GB, free: 12.72 MB / 0.7169 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.005251/0.4045, allocations: 2.322 MB / 0.898 GB, free: 10.33 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.4046, allocations: 12.03 kB / 0.898 GB, free: 10.32 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001687/0.4063, allocations: 397.4 kB / 0.8984 GB, free: 9.926 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004112/0.4104, allocations: 1.792 MB / 0.9002 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004248/0.4108, allocations: 166.4 kB / 0.9003 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003333/0.4112, allocations: 140 kB / 0.9005 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003198/0.4144, allocations: 1.468 MB / 0.9019 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/0.4144, allocations: 0 / 0.9019 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.4146, allocations: 55.98 kB / 0.9019 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.239e-05/0.4146, allocations: 35.94 kB / 0.902 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002699/0.4173, allocations: 1.141 MB / 0.9031 GB, free: 4.984 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 preOpt removeSimpleEquations (simulation): time 0.009862/0.4272, allocations: 7.342 MB / 0.9103 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00222/0.4295, allocations: 1.354 MB / 0.9116 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009422/0.4304, allocations: 455.2 kB / 0.912 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003535/0.434, allocations: 2.323 MB / 0.9143 GB, free: 8.605 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001154/0.4352, allocations: 486.8 kB / 0.9147 GB, free: 8.121 MB / 0.7325 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006877/0.4359, allocations: 87.28 kB / 0.9148 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=67): time 3.276e-06/0.4359, allocations: 0 / 0.9148 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of matching and sorting (n=67): time 0.003159/0.439, allocations: 1.319 MB / 0.9161 GB, free: 6.688 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.4391, allocations: 115.4 kB / 0.9162 GB, free: 6.551 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002048/0.4412, allocations: 1.469 MB / 0.9177 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.893e-05/0.4413, allocations: 49.69 kB / 0.9177 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008346/0.4421, allocations: 0.892 MB / 0.9186 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002683/0.4424, allocations: 244.5 kB / 0.9188 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.4426, allocations: 97.66 kB / 0.9189 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001832/0.4428, allocations: 345.9 kB / 0.9192 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009833/0.4437, allocations: 422.1 kB / 0.9196 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.445, allocations: 0.7715 MB / 0.9204 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/0.4472, allocations: 1.163 MB / 0.9215 GB, free: 0.8008 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.4473, allocations: 0 / 0.9215 GB, free: 0.8008 MB / 0.7325 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.414/0.8613, allocations: 1.378 MB / 0.9229 GB, free: 131.9 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003002/0.8616, allocations: 390.4 kB / 0.9232 GB, free: 131.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.569e-05/0.8617, allocations: 11.45 kB / 0.9233 GB, free: 131.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.477e-05/0.8617, allocations: 14.53 kB / 0.9233 GB, free: 131.5 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.863, allocations: 275.2 kB / 0.9235 GB, free: 131.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.036e-05/0.863, allocations: 20.83 kB / 0.9236 GB, free: 131.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.8649, allocations: 143.7 kB / 0.9237 GB, free: 131.5 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/0.8651, allocations: 53.97 kB / 0.9237 GB, free: 131.5 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.8651, allocations: 3.922 kB / 0.9237 GB, free: 131.5 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003028/0.8681, allocations: 1.177 MB / 0.9249 GB, free: 131.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-05/0.8682, allocations: 10.31 kB / 0.9249 GB, free: 131.4 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.392e-05/0.8682, allocations: 14.53 kB / 0.9249 GB, free: 131.4 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.8694, allocations: 266.5 kB / 0.9252 GB, free: 131.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.467e-05/0.8694, allocations: 20.11 kB / 0.9252 GB, free: 131.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.8713, allocations: 152.1 kB / 0.9253 GB, free: 131.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.8714, allocations: 50.55 kB / 0.9254 GB, free: 131.4 MB / 0.7325 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 (126): * Single equations (assignments): 122 * 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.001201/0.8726, allocations: 0.4886 MB / 0.9259 GB, free: 131.2 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/0.873, allocations: 167.7 kB / 0.926 GB, free: 131.2 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002878/0.8759, allocations: 1.151 MB / 0.9271 GB, free: 131.1 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.8759, allocations: 8.312 kB / 0.9272 GB, free: 131.1 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.8759, allocations: 2.625 kB / 0.9272 GB, free: 131.1 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002047/0.878, allocations: 0.8626 MB / 0.928 GB, free: 131 MB / 0.7325 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.004271/0.8823, allocations: 2.493 MB / 0.9304 GB, free: 130.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.8823, allocations: 3.281 kB / 0.9304 GB, free: 130.4 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007182/0.883, allocations: 171.1 kB / 0.9306 GB, free: 130.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001735/0.8832, allocations: 30.41 kB / 0.9306 GB, free: 130.3 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.244e-05/0.8833, allocations: 26.56 kB / 0.9307 GB, free: 130.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000905/0.8842, allocations: 1.366 MB / 0.932 GB, free: 129 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.8842, allocations: 4.906 kB / 0.932 GB, free: 129 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002937/0.8871, allocations: 1.632 MB / 0.9336 GB, free: 128.4 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005705/0.8877, allocations: 344.7 kB / 0.9339 GB, free: 128.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.8879, allocations: 18.08 kB / 0.9339 GB, free: 128.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009978/0.8889, allocations: 121.8 kB / 0.9341 GB, free: 128.2 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.8891, allocations: 59.48 kB / 0.9341 GB, free: 128.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-05/0.8891, allocations: 32.36 kB / 0.9341 GB, free: 128.2 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001337/0.8905, allocations: 0.9765 MB / 0.9351 GB, free: 127.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.11e-07/0.8905, allocations: 6.594 kB / 0.9351 GB, free: 127.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002656/0.8932, allocations: 1.009 MB / 0.9361 GB, free: 127.7 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.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.001181/0.8943, allocations: 0.5453 MB / 0.9366 GB, free: 127.5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0039/0.8983, allocations: 1.777 MB / 0.9384 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.8983, allocations: 1.344 kB / 0.9384 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.8995, allocations: 0.585 MB / 0.9389 GB, free: 126.6 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003861/0.9034, allocations: 0.7577 MB / 0.9397 GB, free: 126.5 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006763/0.9102, allocations: 3.962 MB / 0.9435 GB, free: 124.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001219/0.9114, allocations: 1.407 MB / 0.9449 GB, free: 123.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002186/0.9136, allocations: 417.7 kB / 0.9453 GB, free: 123.2 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/0.914, allocations: 138.3 kB / 0.9454 GB, free: 123.2 MB / 0.7325 GB Notification: Performance of SimCode: time 1.002e-06/0.914, allocations: 0 / 0.9454 GB, free: 123.2 MB / 0.7325 GB Notification: Performance of Templates: time 0.05269/0.9667, allocations: 31.65 MB / 0.9763 GB, free: 104.3 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: