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.001282/0.001282, allocations: 104.2 kB / 16.36 MB, free: 6.305 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.001389/0.001389, allocations: 188.4 kB / 17.29 MB, free: 5.875 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.383/1.383, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.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.772/1.772, allocations: 292.3 MB / 0.5496 GB, free: 17.55 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.001402/0.001402, allocations: 71.91 kB / 0.6729 GB, free: 5.828 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2335, allocations: 114.5 MB / 0.7848 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.4812/0.7147, allocations: 67.09 MB / 0.8503 GB, free: 4.605 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.03287/0.7477, allocations: 19.3 MB / 0.8691 GB, free: 7.176 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004964/0.7527, allocations: 94.47 kB / 0.8692 GB, free: 7.141 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.005182/0.758, allocations: 1.209 MB / 0.8704 GB, free: 6.441 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01064/0.7687, allocations: 2.642 MB / 0.873 GB, free: 4.887 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.01335/0.7821, allocations: 3.748 MB / 0.8766 GB, free: 2.609 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.009942/0.792, allocations: 5.363 MB / 0.8819 GB, free: 15.45 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004316/0.7964, allocations: 1.91 MB / 0.8838 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007083/0.8035, allocations: 2.096 MB / 0.8858 GB, free: 13 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003897/0.8074, allocations: 1.488 MB / 0.8873 GB, free: 12.07 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001059/0.8085, allocations: 190.1 kB / 0.8874 GB, free: 12.07 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007034/0.8156, allocations: 2.097 MB / 0.8895 GB, free: 10.95 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001592/0.8172, allocations: 0.5562 MB / 0.89 GB, free: 10.52 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.00347/0.8207, allocations: 1.152 MB / 0.8911 GB, free: 9.73 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.831, allocations: 3.773 MB / 0.8948 GB, free: 7.215 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.8311, allocations: 0 / 0.8948 GB, free: 7.215 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.813e-06/0.8311, allocations: 0 / 0.8948 GB, free: 7.215 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001515/0.8312, allocations: 1.25 kB / 0.8948 GB, free: 7.215 MB / 0.6856 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.008808/0.84, allocations: 2.717 MB / 0.8975 GB, free: 5.184 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.8401, allocations: 10.31 kB / 0.8975 GB, free: 5.184 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/0.8422, allocations: 375.4 kB / 0.8979 GB, free: 5.008 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005185/0.8475, allocations: 1.799 MB / 0.8996 GB, free: 3.66 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/0.8477, allocations: 111.2 kB / 0.8997 GB, free: 3.605 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004392/0.8481, allocations: 129.4 kB / 0.8998 GB, free: 3.566 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003785/0.8519, allocations: 1.45 MB / 0.9013 GB, free: 2.609 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.234e-05/0.852, allocations: 1.25 kB / 0.9013 GB, free: 2.609 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001978/0.8522, allocations: 57.59 kB / 0.9013 GB, free: 2.566 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.327e-05/0.8523, allocations: 31 kB / 0.9013 GB, free: 2.566 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/0.8553, allocations: 1.096 MB / 0.9024 GB, free: 1.695 MB / 0.6856 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.01201/0.8673, allocations: 7.318 MB / 0.9096 GB, free: 9.812 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002539/0.8699, allocations: 1.302 MB / 0.9108 GB, free: 8.398 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.871, allocations: 427.2 kB / 0.9112 GB, free: 7.977 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004435/0.8754, allocations: 2.311 MB / 0.9135 GB, free: 5.438 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001111/0.8766, allocations: 458.9 kB / 0.9139 GB, free: 4.977 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=66): time 3.557e-06/0.8766, allocations: 0 / 0.9139 GB, free: 4.977 MB / 0.7012 GB Notification: Performance of matching and sorting (n=66): time 0.003689/0.8803, allocations: 1.272 MB / 0.9152 GB, free: 3.672 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.329e-05/0.8804, allocations: 115.4 kB / 0.9153 GB, free: 3.535 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002763/0.8832, allocations: 1.493 MB / 0.9167 GB, free: 2.043 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001812/0.8834, allocations: 45.7 kB / 0.9168 GB, free: 1.992 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000899/0.8843, allocations: 0.8958 MB / 0.9177 GB, free: 1.086 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003277/0.8847, allocations: 240.7 kB / 0.9179 GB, free: 0.8477 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004133/0.8851, allocations: 218.4 kB / 0.9181 GB, free: 0.625 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.8852, allocations: 353.9 kB / 0.9184 GB, free: 280 kB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009847/0.8862, allocations: 412.9 kB / 0.9188 GB, free: 15.87 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.8876, allocations: 0.7486 MB / 0.9196 GB, free: 14.96 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00236/0.89, allocations: 1.127 MB / 0.9207 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-05/0.89, allocations: 4 kB / 0.9207 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00333/0.8933, allocations: 1.335 MB / 0.922 GB, free: 12.34 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.968e-05/0.8934, allocations: 37.7 kB / 0.922 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.937e-05/0.8935, allocations: 12 kB / 0.922 GB, free: 12.29 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.004e-05/0.8935, allocations: 16 kB / 0.922 GB, free: 12.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.8945, allocations: 257.8 kB / 0.9223 GB, free: 12.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.733e-05/0.8946, allocations: 19.94 kB / 0.9223 GB, free: 12 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/0.8962, allocations: 139.6 kB / 0.9224 GB, free: 11.87 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.8964, allocations: 55.92 kB / 0.9225 GB, free: 11.81 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001618/0.898, allocations: 0.7091 MB / 0.9232 GB, free: 11.1 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001311/0.8993, allocations: 0.7377 MB / 0.9239 GB, free: 10.2 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00205/0.9014, allocations: 1.104 MB / 0.925 GB, free: 8.961 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.506e-06/0.9014, allocations: 0 / 0.925 GB, free: 8.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=128) (initialization_lambda0): time 0.003111/0.9045, allocations: 1.299 MB / 0.9262 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.81e-05/0.9046, allocations: 47.41 kB / 0.9263 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.383e-05/0.9046, allocations: 15.94 kB / 0.9263 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.9046, allocations: 12 kB / 0.9263 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009718/0.9056, allocations: 252.2 kB / 0.9266 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.639e-05/0.9057, allocations: 19.94 kB / 0.9266 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.9073, allocations: 123.8 kB / 0.9267 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/0.9074, allocations: 54.88 kB / 0.9267 GB, free: 7.133 MB / 0.7169 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 (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 (124): * Single equations (assignments): 120 * 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.0004096/0.9079, allocations: 251.5 kB / 0.927 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006224/0.9085, allocations: 165.9 kB / 0.9271 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00286/0.9114, allocations: 1.124 MB / 0.9282 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/0.9114, allocations: 11.94 kB / 0.9283 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.9114, allocations: 4 kB / 0.9283 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00182/0.9132, allocations: 0.816 MB / 0.9291 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00562/0.9189, allocations: 2.472 MB / 0.9315 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.9189, allocations: 4.062 kB / 0.9315 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007903/0.9197, allocations: 155.8 kB / 0.9316 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002224/0.9199, allocations: 32.84 kB / 0.9317 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.106e-05/0.92, allocations: 23.98 kB / 0.9317 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.9213, allocations: 1.48 MB / 0.9331 GB, free: 384 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.9213, allocations: 0 / 0.9331 GB, free: 384 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003795/0.9251, allocations: 1.573 MB / 0.9347 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/0.9264, allocations: 334.8 kB / 0.935 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005877/0.927, allocations: 16 kB / 0.935 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/0.9283, allocations: 59.94 kB / 0.935 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.9285, allocations: 60.45 kB / 0.9351 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.9286, allocations: 35.97 kB / 0.9351 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002092/0.9307, allocations: 1.001 MB / 0.9361 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.6e-07/0.9307, allocations: 0 / 0.9361 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004606/0.9354, allocations: 1.009 MB / 0.9371 GB, free: 12.26 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 (74): * Single equations (assignments): 66 * 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.002101/0.9375, allocations: 0.5667 MB / 0.9377 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.004284/0.9418, allocations: 1.703 MB / 0.9393 GB, free: 9.957 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.9418, allocations: 3.938 kB / 0.9393 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001357/0.9432, allocations: 0.5616 MB / 0.9399 GB, free: 9.379 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004902/0.9481, allocations: 0.8112 MB / 0.9407 GB, free: 8.641 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007708/0.9558, allocations: 3.169 MB / 0.9438 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001691/0.9576, allocations: 1.395 MB / 0.9451 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006587/0.9583, allocations: 147.4 kB / 0.9453 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of SimCode: time 1.323e-06/0.9583, allocations: 0 / 0.9453 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of Templates: time 0.06196/1.02, allocations: 35.04 MB / 0.9795 GB, free: 1.113 MB / 0.7637 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (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)