Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.394/1.394, allocations: 252 MB / 268 MB, free: 10.85 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 173.8 kB / 327.6 MB, free: 2.078 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.4 MB / 0.5786 GB, free: 20.45 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008494/0.0008495, allocations: 93.92 kB / 0.6832 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003606, allocations: 16.12 kB / 0.7976 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2048/0.2052, allocations: 106.3 MB / 0.9014 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.03914/0.2443, allocations: 52 MB / 0.9522 GB, free: 11.62 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0238/0.2682, allocations: 17.92 MB / 0.9697 GB, free: 9.668 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003509/0.2717, allocations: 67.56 kB / 0.9698 GB, free: 9.602 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.003803/0.2756, allocations: 0.9859 MB / 0.9708 GB, free: 8.613 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.007551/0.2831, allocations: 2.142 MB / 0.9728 GB, free: 6.461 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.009025/0.2922, allocations: 3.055 MB / 0.9758 GB, free: 3.426 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.00829/0.3005, allocations: 6.017 MB / 0.9817 GB, free: 13.39 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003138/0.3037, allocations: 1.362 MB / 0.983 GB, free: 12 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004246/0.308, allocations: 1.622 MB / 0.9846 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002773/0.3108, allocations: 1.334 MB / 0.9859 GB, free: 9.035 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0006025/0.3114, allocations: 68 kB / 0.986 GB, free: 8.969 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004729/0.3161, allocations: 1.801 MB / 0.9877 GB, free: 7.164 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0009614/0.3171, allocations: 434.1 kB / 0.9882 GB, free: 6.738 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.002428/0.3196, allocations: 0.9571 MB / 0.9891 GB, free: 5.77 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.004682/0.3243, allocations: 2.525 MB / 0.9916 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3243, allocations: 0 / 0.9916 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.026e-06/0.3244, allocations: 0 / 0.9916 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0001266/0.3245, allocations: 0 / 0.9916 GB, free: 3.238 MB / 0.6355 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.005387/0.3299, allocations: 2.218 MB / 0.9937 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.3299, allocations: 12.03 kB / 0.9937 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002405/0.3324, allocations: 493.6 kB / 0.9942 GB, free: 468 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004078/0.3365, allocations: 1.642 MB / 0.9958 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004024/0.3369, allocations: 162.1 kB / 0.996 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003292/0.3372, allocations: 120 kB / 0.9961 GB, free: 14.49 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003346/0.3406, allocations: 1.402 MB / 0.9975 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.409e-05/0.3407, allocations: 3.938 kB / 0.9975 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/0.3408, allocations: 48 kB / 0.9975 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-05/0.3409, allocations: 28 kB / 0.9975 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003002/0.3439, allocations: 1.136 MB / 0.9986 GB, free: 11.77 MB / 0.6511 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.01091/0.3548, allocations: 7.018 MB / 1.005 GB, free: 4.211 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002689/0.3575, allocations: 1.449 MB / 1.007 GB, free: 2.648 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009975/0.3586, allocations: 434.3 kB / 1.007 GB, free: 2.219 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00549/0.3641, allocations: 3.067 MB / 1.01 GB, free: 14.81 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001092/0.3652, allocations: 470.8 kB / 1.011 GB, free: 14.34 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007461/0.366, allocations: 87.25 kB / 1.011 GB, free: 14.26 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=60): time 5.811e-06/0.366, allocations: 0 / 1.011 GB, free: 14.26 MB / 0.6667 GB Notification: Performance of matching and sorting (n=60): time 0.003564/0.3696, allocations: 1.295 MB / 1.012 GB, free: 12.93 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.107e-05/0.3697, allocations: 141.1 kB / 1.012 GB, free: 12.76 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00244/0.3722, allocations: 1.586 MB / 1.014 GB, free: 11.18 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.3723, allocations: 49.67 kB / 1.014 GB, free: 11.12 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007734/0.3731, allocations: 0.8842 MB / 1.015 GB, free: 10.23 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002123/0.3733, allocations: 212.9 kB / 1.015 GB, free: 10.02 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.3734, allocations: 20 kB / 1.015 GB, free: 9.996 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3735, allocations: 349.9 kB / 1.015 GB, free: 9.648 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000988/0.3745, allocations: 413.8 kB / 1.016 GB, free: 9.242 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001248/0.3758, allocations: 0.8164 MB / 1.016 GB, free: 8.242 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002108/0.3779, allocations: 1.175 MB / 1.018 GB, free: 6.914 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.3779, allocations: 4 kB / 1.018 GB, free: 6.91 MB / 0.6667 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002991/0.3809, allocations: 1.368 MB / 1.019 GB, free: 5.527 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003255/0.3813, allocations: 437.3 kB / 1.019 GB, free: 4.938 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.75e-05/0.3813, allocations: 12 kB / 1.019 GB, free: 4.926 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.274e-05/0.3813, allocations: 16 kB / 1.019 GB, free: 4.91 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.3824, allocations: 275.5 kB / 1.02 GB, free: 4.641 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.813e-05/0.3824, allocations: 23.94 kB / 1.02 GB, free: 4.617 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/0.384, allocations: 140.3 kB / 1.02 GB, free: 4.48 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.3841, allocations: 51.98 kB / 1.02 GB, free: 4.43 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.3841, allocations: 6.344 kB / 1.02 GB, free: 4.426 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002571/0.3867, allocations: 1.173 MB / 1.021 GB, free: 3.246 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/0.3868, allocations: 20.06 kB / 1.021 GB, free: 3.227 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.3868, allocations: 16 kB / 1.021 GB, free: 3.211 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.3878, allocations: 259.7 kB / 1.021 GB, free: 2.957 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.694e-05/0.3878, allocations: 31.84 kB / 1.021 GB, free: 2.926 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.3893, allocations: 120.6 kB / 1.021 GB, free: 2.809 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.3894, allocations: 51.98 kB / 1.021 GB, free: 2.758 MB / 0.6667 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 (121): * Single equations (assignments): 117 * 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.0009599/0.3904, allocations: 492.6 kB / 1.022 GB, free: 2.266 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003963/0.3908, allocations: 165.8 kB / 1.022 GB, free: 2.102 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002879/0.3937, allocations: 1.159 MB / 1.023 GB, free: 0.9336 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.018e-05/0.3937, allocations: 8 kB / 1.023 GB, free: 0.9258 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.3937, allocations: 15.88 kB / 1.023 GB, free: 0.9102 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002006/0.3957, allocations: 1.002 MB / 1.024 GB, free: 15.86 MB / 0.6823 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.005636/0.4014, allocations: 2.445 MB / 1.027 GB, free: 13.35 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.4014, allocations: 8 kB / 1.027 GB, free: 13.34 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007541/0.4022, allocations: 147.9 kB / 1.027 GB, free: 13.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002002/0.4024, allocations: 36.84 kB / 1.027 GB, free: 13.16 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.574e-05/0.4025, allocations: 23.98 kB / 1.027 GB, free: 13.13 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.4037, allocations: 1.37 MB / 1.028 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.4038, allocations: 8.016 kB / 1.028 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00354/0.4073, allocations: 1.627 MB / 1.03 GB, free: 9.957 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009624/0.4083, allocations: 350.6 kB / 1.03 GB, free: 9.594 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004856/0.4088, allocations: 19.98 kB / 1.03 GB, free: 9.574 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.4101, allocations: 111.9 kB / 1.03 GB, free: 9.465 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.4103, allocations: 56.42 kB / 1.03 GB, free: 9.41 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.418e-05/0.4104, allocations: 31.98 kB / 1.03 GB, free: 9.379 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002159/0.4125, allocations: 1.125 MB / 1.031 GB, free: 8.23 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.7e-07/0.4125, allocations: 0 / 1.031 GB, free: 8.23 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003201/0.4157, allocations: 0.9239 MB / 1.032 GB, free: 7.305 MB / 0.6823 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 (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.001846/0.4176, allocations: 0.7405 MB / 1.033 GB, free: 6.676 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003723/0.4213, allocations: 1.741 MB / 1.035 GB, free: 4.91 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.4214, allocations: 4.25 kB / 1.035 GB, free: 4.906 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.4227, allocations: 0.5682 MB / 1.035 GB, free: 4.324 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003815/0.4265, allocations: 0.7539 MB / 1.036 GB, free: 3.57 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006416/0.4329, allocations: 3.906 MB / 1.04 GB, free: 15.62 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008848/0.4339, allocations: 1.372 MB / 1.041 GB, free: 14.22 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005842/0.4345, allocations: 151.4 kB / 1.041 GB, free: 14.07 MB / 0.698 GB Notification: Performance of SimCode: time 7.31e-07/0.4345, allocations: 0 / 1.041 GB, free: 14.07 MB / 0.698 GB Notification: Performance of Templates: time 0.451/0.8855, allocations: 33.95 MB / 1.074 GB, free: 135.3 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)