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.0007918/0.0007918, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.001128/0.001128, allocations: 168.7 kB / 15.95 MB, free: 204 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.308/1.308, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.62/1.62, allocations: 292.7 MB / 0.5499 GB, free: 14.56 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.0004911/0.0004912, allocations: 20.88 kB / 0.6737 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2413, allocations: 116.3 MB / 0.7873 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.056/0.2974, allocations: 61.82 MB / 0.8476 GB, free: 13.96 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.02602/0.3235, allocations: 18.17 MB / 0.8654 GB, free: 11.77 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003072/0.3266, allocations: 75.5 kB / 0.8655 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002737/0.3293, allocations: 0.827 MB / 0.8663 GB, free: 10.86 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.00606/0.3354, allocations: 2.106 MB / 0.8683 GB, free: 8.746 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.008/0.3434, allocations: 2.782 MB / 0.871 GB, free: 5.988 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.008739/0.3522, allocations: 5.99 MB / 0.8769 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002577/0.3548, allocations: 1.348 MB / 0.8782 GB, free: 14.6 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003964/0.3588, allocations: 1.68 MB / 0.8799 GB, free: 12.91 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002413/0.3612, allocations: 1.373 MB / 0.8812 GB, free: 11.53 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.000281/0.3615, allocations: 72 kB / 0.8813 GB, free: 11.46 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003481/0.365, allocations: 1.571 MB / 0.8828 GB, free: 9.887 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0005875/0.3656, allocations: 438.1 kB / 0.8832 GB, free: 9.457 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0006851/0.3663, allocations: 440.6 kB / 0.8836 GB, free: 9.02 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.003557/0.3699, allocations: 2.739 MB / 0.8863 GB, free: 6.273 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.3699, allocations: 4 kB / 0.8863 GB, free: 6.27 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3699, allocations: 0 / 0.8863 GB, free: 6.27 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 4.53e-05/0.37, allocations: 4 kB / 0.8863 GB, free: 6.266 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.003998/0.374, allocations: 2.361 MB / 0.8886 GB, free: 3.832 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.374, allocations: 12.03 kB / 0.8886 GB, free: 3.82 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001282/0.3753, allocations: 392.9 kB / 0.889 GB, free: 3.434 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003079/0.3784, allocations: 1.723 MB / 0.8907 GB, free: 1.66 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003423/0.3788, allocations: 170.4 kB / 0.8909 GB, free: 1.492 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.379, allocations: 139.9 kB / 0.891 GB, free: 1.355 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002537/0.3815, allocations: 1.469 MB / 0.8924 GB, free: 15.79 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.3816, allocations: 0 / 0.8924 GB, free: 15.79 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/0.3817, allocations: 56 kB / 0.8925 GB, free: 15.74 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.91e-05/0.3817, allocations: 28 kB / 0.8925 GB, free: 15.71 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002248/0.384, allocations: 1.137 MB / 0.8936 GB, free: 14.57 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.008628/0.3926, allocations: 7.389 MB / 0.9008 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002023/0.3947, allocations: 1.355 MB / 0.9022 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008751/0.3956, allocations: 467.2 kB / 0.9026 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003749/0.3993, allocations: 2.615 MB / 0.9052 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009934/0.4003, allocations: 0.4986 MB / 0.9056 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004512/0.4008, allocations: 87.25 kB / 0.9057 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=63): time 4.048e-06/0.4008, allocations: 7.984 kB / 0.9057 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=63): time 0.002834/0.4037, allocations: 1.28 MB / 0.907 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.4038, allocations: 196.4 kB / 0.9072 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001895/0.4057, allocations: 1.506 MB / 0.9086 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001253/0.4058, allocations: 41.7 kB / 0.9087 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007454/0.4066, allocations: 0.8959 MB / 0.9096 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001946/0.4068, allocations: 228.8 kB / 0.9098 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.081e-05/0.4068, allocations: 20 kB / 0.9098 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.407, allocations: 349.9 kB / 0.9101 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008226/0.4078, allocations: 390.1 kB / 0.9105 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.4088, allocations: 0.7712 MB / 0.9112 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009153/0.4098, allocations: 0.4961 MB / 0.9117 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.4098, allocations: 0 / 0.9117 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002598/0.4124, allocations: 1.319 MB / 0.913 GB, free: 9.473 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002793/0.4127, allocations: 409.8 kB / 0.9134 GB, free: 8.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/0.4127, allocations: 19.94 kB / 0.9134 GB, free: 8.906 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.4128, allocations: 16 kB / 0.9134 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009387/0.4137, allocations: 255.6 kB / 0.9137 GB, free: 8.641 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.515e-05/0.4138, allocations: 23.92 kB / 0.9137 GB, free: 8.617 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.415, allocations: 144.4 kB / 0.9138 GB, free: 8.477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.4152, allocations: 51.98 kB / 0.9139 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.626e-06/0.4152, allocations: 4 kB / 0.9139 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002198/0.4174, allocations: 1.151 MB / 0.915 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/0.4174, allocations: 8 kB / 0.915 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.4174, allocations: 23.92 kB / 0.9151 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008734/0.4183, allocations: 256 kB / 0.9153 GB, free: 6.984 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/0.4183, allocations: 23.92 kB / 0.9153 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.4195, allocations: 124.5 kB / 0.9154 GB, free: 6.84 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.65e-05/0.4196, allocations: 55.97 kB / 0.9155 GB, free: 6.785 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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.0008359/0.4205, allocations: 0.4999 MB / 0.916 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.4207, allocations: 169.8 kB / 0.9161 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/0.4231, allocations: 1.108 MB / 0.9172 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.4231, allocations: 8 kB / 0.9172 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.4231, allocations: 4 kB / 0.9172 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001629/0.4248, allocations: 0.8237 MB / 0.918 GB, free: 4.137 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.004339/0.4291, allocations: 2.694 MB / 0.9207 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.4291, allocations: 8.031 kB / 0.9207 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006852/0.4298, allocations: 155.8 kB / 0.9208 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001694/0.43, allocations: 40.83 kB / 0.9209 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.271e-05/0.4301, allocations: 27.92 kB / 0.9209 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3709/0.801, allocations: 1.368 MB / 0.9222 GB, free: 130.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.801, allocations: 6.125 kB / 0.9222 GB, free: 130.4 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003705/0.8048, allocations: 1.643 MB / 0.9238 GB, free: 130.2 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007205/0.8055, allocations: 365.2 kB / 0.9242 GB, free: 130.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/0.8057, allocations: 20.41 kB / 0.9242 GB, free: 130.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009817/0.8067, allocations: 120.7 kB / 0.9243 GB, free: 130.1 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.8069, allocations: 65.08 kB / 0.9244 GB, free: 130.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.94e-05/0.807, allocations: 36.12 kB / 0.9244 GB, free: 130.1 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00165/0.8086, allocations: 1.083 MB / 0.9255 GB, free: 130 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.9e-07/0.8087, allocations: 0.9375 kB / 0.9255 GB, free: 130 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002639/0.8113, allocations: 0.9926 MB / 0.9264 GB, free: 129.9 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (74): * Single equations (assignments): 66 * 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.00108/0.8124, allocations: 0.5299 MB / 0.927 GB, free: 129.9 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002895/0.8153, allocations: 1.716 MB / 0.9286 GB, free: 129.6 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.8153, allocations: 0 / 0.9286 GB, free: 129.6 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0009477/0.8163, allocations: 0.5732 MB / 0.9292 GB, free: 129.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00305/0.8193, allocations: 0.8713 MB / 0.9301 GB, free: 129.4 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004471/0.8238, allocations: 3.906 MB / 0.9339 GB, free: 127.3 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009101/0.8247, allocations: 1.407 MB / 0.9352 GB, free: 126.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001602/0.8263, allocations: 431.2 kB / 0.9357 GB, free: 126.4 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003004/0.8267, allocations: 151 kB / 0.9358 GB, free: 126.4 MB / 0.7325 GB Notification: Performance of SimCode: time 5.92e-07/0.8267, allocations: 0.9062 kB / 0.9358 GB, free: 126.4 MB / 0.7325 GB Notification: Performance of Templates: time 0.05309/0.8798, allocations: 33.89 MB / 0.9689 GB, free: 110.6 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: