Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.142/2.142, allocations: 391.2 MB / 407 MB, free: 10.84 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001217, allocations: 193.9 kB / 499.1 MB, free: 4.68 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 0.7948 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008925/0.0008928, allocations: 113.7 kB / 0.9329 GB, free: 7.094 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001056, allocations: 51.64 kB / 1.081 GB, free: 218 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2845, allocations: 140.6 MB / 1.218 GB, free: 117.3 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.03859/0.3231, allocations: 52.98 MB / 1.27 GB, free: 64.11 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.01965/0.3428, allocations: 15.31 MB / 1.285 GB, free: 48.77 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003774/0.3466, allocations: 79.5 kB / 1.285 GB, free: 48.69 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.003175/0.3498, allocations: 0.9527 MB / 1.286 GB, free: 47.74 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.006151/0.356, allocations: 2.158 MB / 1.288 GB, free: 45.58 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.005261/0.3613, allocations: 2.009 MB / 1.29 GB, free: 43.58 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.006175/0.3675, allocations: 6.043 MB / 1.296 GB, free: 37.52 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001947/0.3694, allocations: 1.395 MB / 1.297 GB, free: 36.09 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003095/0.3725, allocations: 1.684 MB / 1.299 GB, free: 34.4 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001576/0.3741, allocations: 1.376 MB / 1.3 GB, free: 33.02 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 0.0001929/0.3743, allocations: 88 kB / 1.3 GB, free: 32.93 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003185/0.3775, allocations: 1.731 MB / 1.302 GB, free: 31.2 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.0004221/0.378, allocations: 454.2 kB / 1.302 GB, free: 30.75 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0009046/0.3789, allocations: 0.9556 MB / 1.303 GB, free: 29.79 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.003386/0.3823, allocations: 3.217 MB / 1.306 GB, free: 26.56 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3823, allocations: 0 / 1.306 GB, free: 26.56 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.012e-06/0.3823, allocations: 0 / 1.306 GB, free: 26.56 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.068e-05/0.3823, allocations: 0 / 1.306 GB, free: 26.56 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003614/0.3859, allocations: 2.537 MB / 1.309 GB, free: 23.96 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.386, allocations: 11.98 kB / 1.309 GB, free: 23.95 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002411/0.3884, allocations: 0.5287 MB / 1.309 GB, free: 23.41 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002763/0.3912, allocations: 1.678 MB / 1.311 GB, free: 21.68 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003217/0.3915, allocations: 150.4 kB / 1.311 GB, free: 21.54 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.3917, allocations: 120 kB / 1.311 GB, free: 21.42 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.3939, allocations: 1.369 MB / 1.313 GB, free: 19.96 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.3939, allocations: 4 kB / 1.313 GB, free: 19.95 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.48e-05/0.394, allocations: 48 kB / 1.313 GB, free: 19.91 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.455e-05/0.3941, allocations: 46.02 kB / 1.313 GB, free: 19.86 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002435/0.3965, allocations: 1.14 MB / 1.314 GB, free: 18.71 MB / 0.823 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.007742/0.4043, allocations: 7.014 MB / 1.321 GB, free: 11.16 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002322/0.4066, allocations: 1.416 MB / 1.322 GB, free: 9.629 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009372/0.4075, allocations: 458.8 kB / 1.322 GB, free: 9.18 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004457/0.412, allocations: 3.153 MB / 1.326 GB, free: 5.684 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009889/0.413, allocations: 474.8 kB / 1.326 GB, free: 5.207 MB / 0.823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000419/0.4134, allocations: 91.19 kB / 1.326 GB, free: 5.117 MB / 0.823 GB Notification: Performance of pre-optimization done (n=61): time 2.735e-06/0.4135, allocations: 4 kB / 1.326 GB, free: 5.113 MB / 0.823 GB Notification: Performance of matching and sorting (n=61): time 0.002982/0.4164, allocations: 1.28 MB / 1.327 GB, free: 3.805 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.4165, allocations: 59.91 kB / 1.327 GB, free: 3.734 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001856/0.4184, allocations: 1.517 MB / 1.329 GB, free: 2.215 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 5.506e-05/0.4184, allocations: 41.7 kB / 1.329 GB, free: 2.168 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005657/0.419, allocations: 0.8761 MB / 1.33 GB, free: 1.281 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.4192, allocations: 216.9 kB / 1.33 GB, free: 1.066 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/0.4195, allocations: 214.4 kB / 1.33 GB, free: 0.8516 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.762e-05/0.4195, allocations: 341.9 kB / 1.331 GB, free: 0.5117 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009397/0.4205, allocations: 408.6 kB / 1.331 GB, free: 112 kB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.4218, allocations: 0.7749 MB / 1.332 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002319/0.4242, allocations: 1.167 MB / 1.333 GB, free: 13.83 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.4242, allocations: 7.938 kB / 1.333 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002952/0.4272, allocations: 1.344 MB / 1.334 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/0.4272, allocations: 33.7 kB / 1.334 GB, free: 12.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/0.4272, allocations: 12 kB / 1.334 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.084e-05/0.4273, allocations: 16 kB / 1.334 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/0.4283, allocations: 267.8 kB / 1.334 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.649e-05/0.4284, allocations: 31.86 kB / 1.334 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001241/0.4296, allocations: 124.5 kB / 1.335 GB, free: 11.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.4298, allocations: 55.98 kB / 1.335 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001531/0.4313, allocations: 0.701 MB / 1.335 GB, free: 11.23 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001265/0.4326, allocations: 0.7593 MB / 1.336 GB, free: 10.29 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002223/0.4348, allocations: 1.14 MB / 1.337 GB, free: 9 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.406e-06/0.4348, allocations: 4 kB / 1.337 GB, free: 8.996 MB / 0.8386 GB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.002862/0.4377, allocations: 1.317 MB / 1.338 GB, free: 7.664 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/0.4378, allocations: 34.48 kB / 1.339 GB, free: 7.625 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.4378, allocations: 12 kB / 1.339 GB, free: 7.613 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.4378, allocations: 16 kB / 1.339 GB, free: 7.598 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009926/0.4388, allocations: 268.2 kB / 1.339 GB, free: 7.336 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.26e-05/0.4388, allocations: 19.94 kB / 1.339 GB, free: 7.316 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.4401, allocations: 128.4 kB / 1.339 GB, free: 7.191 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.481e-05/0.4402, allocations: 55.98 kB / 1.339 GB, free: 7.137 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (121): * Single equations (assignments): 119 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.0002934/0.4405, allocations: 253.2 kB / 1.339 GB, free: 6.883 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002706/0.4407, allocations: 161.9 kB / 1.339 GB, free: 6.723 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003089/0.4438, allocations: 1.174 MB / 1.341 GB, free: 5.535 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.44e-05/0.4439, allocations: 12 kB / 1.341 GB, free: 5.523 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.4439, allocations: 0 / 1.341 GB, free: 5.523 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002209/0.4461, allocations: 1.006 MB / 1.342 GB, free: 4.465 MB / 0.8386 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.005824/0.4519, allocations: 2.479 MB / 1.344 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.452, allocations: 4.062 kB / 1.344 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007632/0.4527, allocations: 151.8 kB / 1.344 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001812/0.4529, allocations: 36.77 kB / 1.344 GB, free: 1.723 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.541e-05/0.453, allocations: 31.92 kB / 1.344 GB, free: 1.691 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00107/0.4541, allocations: 1.327 MB / 1.345 GB, free: 236 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4541, allocations: 0 / 1.345 GB, free: 236 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1407/0.5948, allocations: 29.93 MB / 1.375 GB, free: 1.941 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/0.5959, allocations: 334.7 kB / 1.375 GB, free: 1.594 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004821/0.5964, allocations: 16 kB / 1.375 GB, free: 1.578 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/0.5978, allocations: 111.8 kB / 1.375 GB, free: 1.469 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.598, allocations: 56.42 kB / 1.375 GB, free: 1.414 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.625e-05/0.5981, allocations: 31.97 kB / 1.375 GB, free: 1.383 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.002128/0.6002, allocations: 1.081 MB / 1.376 GB, free: 284 kB / 0.8698 GB Notification: Performance of sort global known variables: time 3.21e-07/0.6002, allocations: 4 kB / 1.376 GB, free: 280 kB / 0.8698 GB Notification: Performance of remove unused functions: time 0.006507/0.6067, allocations: 1.362 MB / 1.378 GB, free: 14.91 MB / 0.8855 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.s[1],mov.filter.s[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 (71): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002318/0.6091, allocations: 0.7671 MB / 1.378 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.004423/0.6135, allocations: 1.656 MB / 1.38 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.6135, allocations: 4.25 kB / 1.38 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001458/0.615, allocations: 0.5643 MB / 1.381 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004493/0.6195, allocations: 0.7254 MB / 1.381 GB, free: 11.33 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008122/0.6277, allocations: 4.281 MB / 1.385 GB, free: 6.992 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/0.6292, allocations: 1.385 MB / 1.387 GB, free: 5.57 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002913/0.6321, allocations: 469.9 kB / 1.387 GB, free: 5.105 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008785/0.633, allocations: 155.3 kB / 1.387 GB, free: 4.953 MB / 0.8855 GB Notification: Performance of SimCode: time 7.82e-07/0.6331, allocations: 0 / 1.387 GB, free: 4.953 MB / 0.8855 GB Notification: Performance of Templates: time 0.598/1.231, allocations: 39.73 MB / 1.426 GB, free: 193.9 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)