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.001039/0.001039, allocations: 100 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.0008977/0.0008979, allocations: 177.3 kB / 15.95 MB, free: 216 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.365/1.365, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.615/1.615, allocations: 292.5 MB / 0.5497 GB, free: 14.63 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.0005751/0.0005754, allocations: 18.44 kB / 0.6735 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.225, allocations: 116.3 MB / 0.7871 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05961/0.2847, allocations: 56.26 MB / 0.842 GB, free: 3.598 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02271/0.3074, allocations: 17.01 MB / 0.8587 GB, free: 2.562 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002572/0.3101, allocations: 71.5 kB / 0.8587 GB, free: 2.492 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.003231/0.3133, allocations: 1.011 MB / 0.8597 GB, free: 1.477 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.008106/0.3214, allocations: 2.641 MB / 0.8623 GB, free: 14.83 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.008938/0.3304, allocations: 3.15 MB / 0.8654 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.00632/0.3367, allocations: 3.155 MB / 0.8685 GB, free: 8.547 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002488/0.3392, allocations: 1.357 MB / 0.8698 GB, free: 7.16 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003165/0.3424, allocations: 1.471 MB / 0.8712 GB, free: 5.684 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00131/0.3437, allocations: 0.9603 MB / 0.8722 GB, free: 4.719 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.3439, allocations: 80 kB / 0.8722 GB, free: 4.641 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003153/0.3471, allocations: 1.447 MB / 0.8736 GB, free: 3.191 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0004279/0.3475, allocations: 410.4 kB / 0.874 GB, free: 2.789 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0005433/0.3481, allocations: 444.6 kB / 0.8745 GB, free: 2.348 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.003535/0.3516, allocations: 2.681 MB / 0.8771 GB, free: 15.66 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.3516, allocations: 0 / 0.8771 GB, free: 15.66 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3516, allocations: 0 / 0.8771 GB, free: 15.66 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 5.502e-05/0.3517, allocations: 0 / 0.8771 GB, free: 15.66 MB / 0.7012 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.004031/0.3557, allocations: 2.345 MB / 0.8794 GB, free: 13.24 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.3558, allocations: 12.03 kB / 0.8794 GB, free: 13.23 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00135/0.3571, allocations: 396.9 kB / 0.8798 GB, free: 12.84 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002837/0.36, allocations: 1.649 MB / 0.8814 GB, free: 11.14 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003618/0.3603, allocations: 170.3 kB / 0.8815 GB, free: 10.97 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.3605, allocations: 139.9 kB / 0.8817 GB, free: 10.84 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002442/0.363, allocations: 1.446 MB / 0.8831 GB, free: 9.297 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.363, allocations: 7.938 kB / 0.8831 GB, free: 9.289 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.3632, allocations: 52 kB / 0.8831 GB, free: 9.238 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-05/0.3632, allocations: 32 kB / 0.8832 GB, free: 9.207 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002355/0.3656, allocations: 1.125 MB / 0.8843 GB, free: 8.074 MB / 0.7012 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.009056/0.3746, allocations: 7.43 MB / 0.8915 GB, free: 64 kB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002137/0.3768, allocations: 1.361 MB / 0.8928 GB, free: 14.59 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004056/0.3809, allocations: 2.616 MB / 0.8954 GB, free: 11.74 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009861/0.3819, allocations: 462.9 kB / 0.8958 GB, free: 11.28 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005587/0.3824, allocations: 99.09 kB / 0.8959 GB, free: 11.18 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=65): time 2.535e-06/0.3824, allocations: 0 / 0.8959 GB, free: 11.18 MB / 0.7169 GB Notification: Performance of matching and sorting (n=65): time 0.002827/0.3853, allocations: 1.28 MB / 0.8972 GB, free: 9.871 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.849e-05/0.3854, allocations: 141.1 kB / 0.8973 GB, free: 9.703 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002076/0.3875, allocations: 1.56 MB / 0.8988 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.973e-05/0.3876, allocations: 41.7 kB / 0.8989 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007949/0.3884, allocations: 0.9075 MB / 0.8998 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002217/0.3886, allocations: 232.7 kB / 0.9 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.3886, allocations: 23.98 kB / 0.9 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.3888, allocations: 341.9 kB / 0.9003 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008776/0.3897, allocations: 394.1 kB / 0.9007 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/0.3908, allocations: 0.7581 MB / 0.9015 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009976/0.3918, allocations: 0.4884 MB / 0.9019 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.3918, allocations: 8 kB / 0.9019 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0026/0.3944, allocations: 1.319 MB / 0.9032 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.001341/0.3958, allocations: 3.816 MB / 0.907 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.444e-05/0.3958, allocations: 15.95 kB / 0.907 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-05/0.3958, allocations: 16 kB / 0.907 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009607/0.3968, allocations: 263.6 kB / 0.9072 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.89e-05/0.3968, allocations: 19.92 kB / 0.9073 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.3982, allocations: 156.4 kB / 0.9074 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.3984, allocations: 55.97 kB / 0.9075 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.699e-06/0.3984, allocations: 6.969 kB / 0.9075 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002186/0.4006, allocations: 1.144 MB / 0.9086 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.4006, allocations: 8 kB / 0.9086 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.4006, allocations: 16 kB / 0.9086 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009455/0.4016, allocations: 263.8 kB / 0.9089 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.88e-05/0.4016, allocations: 23.86 kB / 0.9089 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.403, allocations: 144.4 kB / 0.909 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.735e-05/0.4031, allocations: 55.92 kB / 0.9091 GB, free: 13.13 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (124): * Single equations (assignments): 120 * 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.0008921/0.404, allocations: 0.4929 MB / 0.9096 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003299/0.4043, allocations: 169.8 kB / 0.9097 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002447/0.4067, allocations: 1.12 MB / 0.9108 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/0.4068, allocations: 15.97 kB / 0.9108 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.4068, allocations: 0 / 0.9108 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001713/0.4085, allocations: 0.8315 MB / 0.9116 GB, free: 10.46 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.004453/0.413, allocations: 2.643 MB / 0.9142 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.413, allocations: 0 / 0.9142 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007224/0.4137, allocations: 164 kB / 0.9144 GB, free: 7.555 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001865/0.4139, allocations: 40.83 kB / 0.9144 GB, free: 7.512 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.102e-05/0.414, allocations: 19.98 kB / 0.9144 GB, free: 7.492 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.415, allocations: 1.39 MB / 0.9158 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.415, allocations: 4 kB / 0.9158 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003009/0.418, allocations: 1.775 MB / 0.9175 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007094/0.4188, allocations: 386.5 kB / 0.9179 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002175/0.419, allocations: 19.98 kB / 0.9179 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.4201, allocations: 119.1 kB / 0.918 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.4202, allocations: 68.42 kB / 0.9181 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.356e-05/0.4203, allocations: 36.25 kB / 0.9181 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001608/0.4219, allocations: 1.122 MB / 0.9192 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2e-07/0.4219, allocations: 0 / 0.9192 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002979/0.4249, allocations: 1.017 MB / 0.9202 GB, free: 1.273 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.001075/0.426, allocations: 0.5801 MB / 0.9208 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.3271/0.753, allocations: 1.703 MB / 0.9224 GB, free: 131 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/0.7531, allocations: 1.5 kB / 0.9224 GB, free: 131 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.7545, allocations: 0.5755 MB / 0.923 GB, free: 130.9 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004189/0.7587, allocations: 0.8491 MB / 0.9238 GB, free: 130.9 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005947/0.7647, allocations: 3.899 MB / 0.9276 GB, free: 129.2 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007394/0.7655, allocations: 1.443 MB / 0.9291 GB, free: 128.4 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001865/0.7673, allocations: 438.8 kB / 0.9295 GB, free: 128.4 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003117/0.7676, allocations: 151.5 kB / 0.9296 GB, free: 128.4 MB / 0.7325 GB Notification: Performance of SimCode: time 1.443e-06/0.7677, allocations: 3.938 kB / 0.9296 GB, free: 128.4 MB / 0.7325 GB Notification: Performance of Templates: time 0.05402/0.8217, allocations: 34.9 MB / 0.9637 GB, free: 115 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: