Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.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.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors") translateModel(Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 103.7 kB / 16.37 MB, free: 6.363 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.001068/0.001068, allocations: 195.1 kB / 17.31 MB, free: 5.91 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.445/1.445, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.726/1.726, allocations: 292.3 MB / 0.5496 GB, free: 17.55 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.194e-05/3.209e-05, allocations: 6.219 kB / 0.6728 GB, free: 5.922 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors): time 0.002949/0.002996, allocations: 1.59 MB / 0.6744 GB, free: 4.324 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.004462, allocations: 0.9627 MB / 0.6753 GB, free: 3.352 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.908e-05/0.004562, allocations: 4 kB / 0.6753 GB, free: 3.348 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002335/0.004802, allocations: 59.64 kB / 0.6754 GB, free: 3.289 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004242/0.005235, allocations: 139.3 kB / 0.6755 GB, free: 3.152 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 4.056e-05/0.005303, allocations: 19.97 kB / 0.6755 GB, free: 3.133 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003879/0.005697, allocations: 239.2 kB / 0.6758 GB, free: 2.898 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.17e-05/0.005749, allocations: 7.984 kB / 0.6758 GB, free: 2.891 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.005924, allocations: 103.7 kB / 0.6759 GB, free: 2.789 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001354/0.006069, allocations: 87.72 kB / 0.676 GB, free: 2.703 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.006098, allocations: 8 kB / 0.676 GB, free: 2.695 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004009/0.006506, allocations: 283.4 kB / 0.6762 GB, free: 2.418 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0002129/0.006727, allocations: 229.9 kB / 0.6765 GB, free: 2.191 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 0.0001153/0.006849, allocations: 162.3 kB / 0.6766 GB, free: 2.031 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.202e-05/0.006897, allocations: 11.94 kB / 0.6766 GB, free: 2.02 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.771e-05/0.00692, allocations: 4 kB / 0.6766 GB, free: 2.016 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 (1) * Number of variables: 4 (1) Notification: Performance of Bindings: time 0.0009607/0.007886, allocations: 0.9039 MB / 0.6775 GB, free: 1.004 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001161/0.008009, allocations: 55.86 kB / 0.6776 GB, free: 0.9492 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0001577/0.008174, allocations: 132.2 kB / 0.6777 GB, free: 0.793 MB / 0.545 GB Notification: Performance of simplify1: time 1.994e-06/0.008183, allocations: 0 / 0.6777 GB, free: 0.793 MB / 0.545 GB Notification: Performance of Alias: time 7.678e-05/0.008265, allocations: 81.72 kB / 0.6778 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of simplify2: time 5.71e-07/0.008271, allocations: 0 / 0.6778 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of Events: time 2.194e-05/0.008298, allocations: 11.95 kB / 0.6778 GB, free: 0.6641 MB / 0.545 GB Notification: Performance of Detect States: time 8.77e-05/0.00839, allocations: 42.5 kB / 0.6778 GB, free: 0.6094 MB / 0.545 GB Notification: Performance of Partitioning: time 6.361e-05/0.008461, allocations: 36.12 kB / 0.6779 GB, free: 0.5664 MB / 0.545 GB Notification: Performance of Causalize: time 0.0003229/0.00879, allocations: 183.9 kB / 0.678 GB, free: 388 kB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 9.764e-05/0.008898, allocations: 112.2 kB / 0.6781 GB, free: 248 kB / 0.545 GB Error: Internal error NBVariable.VariablePointers.getVarSafe failed for day Notification: Performance of Inline: time 0.001009/0.009914, allocations: 0.8514 MB / 0.679 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of Partitioning: time 2.455e-05/0.009947, allocations: 20.12 kB / 0.679 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of Cleanup: time 1.272e-05/0.009965, allocations: 11.98 kB / 0.679 GB, free: 15.32 MB / 0.5606 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 4 for dependency TSoi.cliCon.TSurAmp could not be devided by the body size 3 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [FOR-] (12) ($RES_BND_20) [----] for $i1 in 1:4 loop [----] [RECD] (3) TSoi[$i1].cliCon = cliCon ($RES_BND_21) [----] end for; Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (12/48) ************************** (1) [PRMT] (4) parameter Real[4] TSoi.dep = {dep[$TSoi1] for $TSoi1 in 1:4} (fixed = {true for $i1 in 1:4}) (2) [PRMT] (4) protected parameter Real[4] TSoi.corDep = {if TSoi[$TSoi1].useCon then TSoi[$TSoi1].soiDat.k / TSoi[$TSoi1].hSur + TSoi[$TSoi1].dep else TSoi[$TSoi1].dep for $TSoi1 in 1:4} (fixed = {true for $i1 in 1:4}) (3) [PRMT] (4) protected parameter Real[4] TSoi.soiDif = {TSoi[$TSoi1].soiDat.k / (TSoi[$TSoi1].soiDat.d * TSoi[$TSoi1].soiDat.c) for $TSoi1 in 1:4} (fixed = {true for $i1 in 1:4}) (4) [PRMT] (4) protected parameter Real[4] TSoi.timLag = {TSoi[$TSoi1].corCliCon.sinPha for $TSoi1 in 1:4} (fixed = {true for $i1 in 1:4}) (5) [PRMT] (4) protected parameter Real[4] TSoi.pha = {-(3.141592653589793 / (3.1556926079999994e7 * TSoi[$TSoi1].soiDif)) ^ 0.5 * TSoi[$TSoi1].corDep for $TSoi1 in 1:4} (fixed = {true for $i1 in 1:4}) (6) [PRMT] (4) parameter Real[4] TSoi.soiDat.k = {soiDat.k, soiDat.k, soiDat.k, soiDat.k} (fixed = {true for $i1 in 1:4}) (7) [PRMT] (4) parameter Real[4] TSoi.soiDat.c = {1150.0, 1150.0, 1150.0, 1150.0} (fixed = {true for $i1 in 1:4}) (8) [PRMT] (4) parameter Real[4] TSoi.soiDat.d = {1600.0, 1600.0, 1600.0, 1600.0} (fixed = {true for $i1 in 1:4}, min = {0.0 for $i1 in 1:4}) (9) [PRMT] (4) parameter Boolean[4] TSoi.soiDat.steadyState = {false, false, false, false} (fixed = {true for $i1 in 1:4}) (10) [PRMT] (4) parameter Real[4] TSoi.cliCon.TSurMea = {cliCon.TSurMea, cliCon.TSurMea, cliCon.TSurMea, cliCon.TSurMea} (fixed = {true for $i1 in 1:4}, start = {288.15 for $i1 in 1:4}, min = {0.0 for $i1 in 1:4}, nominal = {300.0 for $i1 in 1:4}) (11) [PRMT] (4) parameter Real[4] TSoi.cliCon.TSurAmp = {cliCon.TSurAmp, cliCon.TSurAmp, cliCon.TSurAmp, cliCon.TSurAmp} (fixed = {true for $i1 in 1:4}) (12) [PRMT] (4) parameter Real[4] TSoi.cliCon.sinPha = {cliCon.sinPha, cliCon.sinPha, cliCon.sinPha, cliCon.sinPha} (fixed = {true for $i1 in 1:4}) System Equations (8/60) ************************* (1) [FOR-] (4) ($RES_BND_16) (1) [----] for $i1 in 1:4 loop (1) [----] [SCAL] (1) TSoi[$i1].dep = dep[$i1] ($RES_BND_17) (1) [----] end for; (2) [FOR-] (4) ($RES_BND_14) (2) [----] for $i1 in 1:4 loop (2) [----] [SCAL] (1) TSoi[$i1].corDep = if TSoi[$i1].useCon then TSoi[$i1].soiDat.k / TSoi[$i1].hSur + TSoi[$i1].dep else TSoi[$i1].dep ($RES_BND_15) (2) [----] end for; (3) [FOR-] (4) ($RES_BND_12) (3) [----] for $i1 in 1:4 loop (3) [----] [SCAL] (1) TSoi[$i1].soiDif = TSoi[$i1].soiDat.k / (TSoi[$i1].soiDat.d * TSoi[$i1].soiDat.c) ($RES_BND_13) (3) [----] end for; (4) [FOR-] (4) ($RES_BND_10) (4) [----] for $i1 in 1:4 loop (4) [----] [SCAL] (1) TSoi[$i1].timLag = TSoi[$i1].corCliCon.sinPha ($RES_BND_11) (4) [----] end for; (5) [FOR-] (4) ($RES_BND_8) (5) [----] for $i1 in 1:4 loop (5) [----] [SCAL] (1) TSoi[$i1].pha = -(9.955318986473963e-8 / TSoi[$i1].soiDif) ^ 0.5 * TSoi[$i1].corDep ($RES_BND_9) (5) [----] end for; (6) [FOR-] (16) ($RES_BND_22) (6) [----] for $i1 in 1:4 loop (6) [----] [RECD] (4) TSoi[$i1].soiDat = soiDat ($RES_BND_23) (6) [----] end for; (7) [FOR-] (12) ($RES_BND_20) (7) [----] for $i1 in 1:4 loop (7) [----] [RECD] (3) TSoi[$i1].cliCon = cliCon ($RES_BND_21) (7) [----] end for; (8) [FOR-] (12) ($RES_BND_18) (8) [----] for $i1 in 1:4 loop (8) [----] [RECD] (3) TSoi[$i1].corCliCon = Buildings.BoundaryConditions.GroundTemperature.ClimaticConstants.Generic(0.0027397260273972603 * sum(if TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[day])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[day] + 1))) > 273.15 then 273.15 + (TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[day])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[day] + 1))) - 273.15) * TSoi[$i1].nFacTha else 273.15 + (TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[day])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[day] + 1))) - 273.15) * TSoi[$i1].nFacFre for day in 1:365), 0.005479452054794521 * (sum((if TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) > 273.15 then 273.15 + (TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) - 273.15) * TSoi[$i1].nFacTha else 273.15 + (TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) - 273.15) * TSoi[$i1].nFacFre) * cos(0.01721420632103996 * day) for day in 1:365) ^ 2.0 + sum((if TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) > 273.15 then 273.15 + (TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) - 273.15) * TSoi[$i1].nFacTha else 273.15 + (TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) - 273.15) * TSoi[$i1].nFacFre) * sin(0.01721420632103996 * day) for day in 1:365) ^ 2.0) ^ 0.5, 5.019110285346012e6 * (1.5707963267948966 + atan(sum((if TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) > 273.15 then 273.15 + (TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) - 273.15) * TSoi[$i1].nFacTha else 273.15 + (TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) - 273.15) * TSoi[$i1].nFacFre) * sin(0.01721420632103996 * day) for day in 1:365) / sum((if TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) > 273.15 then 273.15 + (TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) - 273.15) * TSoi[$i1].nFacTha else 273.15 + (TSoi.cliCon.TSurMea + TSoi.cliCon.TSurAmp / 0.01721420632103996 * (cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]])) - cos(0.01721420632103996 * (TSoi.cliCon.sinPha / 86400.0 - (1:365)[(1:365)[day]] + 1))) - 273.15) * TSoi[$i1].nFacFre) * cos(0.01721420632103996 * day) for day in 1:365)))) ($RES_BND_19) (8) [----] end for; Error: Internal error NBInitialization.main failed to apply modules!