Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 108.2 kB / 16.42 MB, free: 6.512 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.0009146/0.0009146, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.253/1.253, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.238/1.238, allocations: 251.7 MB / 0.51 GB, free: 412 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.6e-05/2.6e-05, allocations: 6.219 kB / 0.7264 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004716/0.00475, allocations: 3.759 MB / 0.73 GB, free: 0.9648 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002713/0.007476, allocations: 1.829 MB / 0.7318 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.007659, allocations: 19.88 kB / 0.7318 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000823/0.008489, allocations: 277.9 kB / 0.7321 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005658/0.009064, allocations: 302.4 kB / 0.7324 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004912/0.009591, allocations: 243.5 kB / 0.7326 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006418/0.01024, allocations: 0.6634 MB / 0.7333 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004318/0.01068, allocations: 265.6 kB / 0.7335 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002756/0.01097, allocations: 235.1 kB / 0.7338 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.0112, allocations: 195 kB / 0.7339 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.781e-05/0.01126, allocations: 24 kB / 0.734 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003549/0.01162, allocations: 239.5 kB / 0.7342 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.0004864/0.01212, allocations: 0.6566 MB / 0.7348 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.0002667/0.01239, allocations: 449.7 kB / 0.7353 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.469e-05/0.01247, allocations: 63.75 kB / 0.7353 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.507e-05/0.01251, allocations: 15.94 kB / 0.7353 GB, free: 11.5 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 (71) * Number of variables: 85 (67) Notification: Performance of Bindings: time 0.001569/0.01409, allocations: 1.719 MB / 0.737 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 6.509e-05/0.01416, allocations: 63.88 kB / 0.7371 GB, free: 9.605 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.00093/0.01509, allocations: 0.9325 MB / 0.738 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of simplify1: time 8.677e-05/0.01519, allocations: 79.89 kB / 0.7381 GB, free: 8.566 MB / 0.5762 GB Notification: Performance of Alias: time 0.00148/0.01667, allocations: 1.345 MB / 0.7394 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of simplify2: time 6.473e-05/0.01675, allocations: 63.92 kB / 0.7394 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of Events: time 0.0001553/0.01691, allocations: 103.8 kB / 0.7395 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of Detect States: time 0.0002671/0.01719, allocations: 213.1 kB / 0.7397 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0003015/0.0175, allocations: 287.5 kB / 0.74 GB, free: 6.289 MB / 0.5762 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency Z_R.X could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) Z_R.terminal.v = {{Z_R.R_internal, -Z_R.X} * Z_R.terminal.i, {Z_R.X, Z_R.R_internal} * Z_R.terminal.i} ($RES_SIM_11) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (35/53) ************************** (1) [ALGB] (2) Real[2] Z_L.terminal.v (2) [ALGB] (2) Real[2] Z_C.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.Z_C.PhaseSystem.phasePowers_vi(Z_C.v, -Z_C.i) (3) [ALGB] (1) protected Real Z_R.X (start = 1.0) (4) [DER-] (1) Real $DER.Z_L.theRef (5) [ALGB] (2) Real[2] Z_R.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.Z_R.PhaseSystem.phasePowers_vi(Z_R.v, -Z_R.i) (6) [ALGB] (1) protected Real Z_L.X (start = 1.0) (7) [ALGB] (2) Real[2] Z_L.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.Z_L.PhaseSystem.phasePowers_vi(Z_L.v, -Z_L.i) (8) [ALGB] (2) Real[2] Z_C.v = Z_C.terminal.v (start = Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.Z_C.PhaseSystem.phaseVoltages(Z_C.V_nominal, 0.0)) (9) [ALGB] (1) protected Real Z_C.omega (10) [ALGB] (1) Real[1] V.terminal.theta (11) [ALGB] (2) flow Real[2] Z_R.terminal.i (start = {0.0 for $i1 in 1:2}) (12) [ALGB] (1) Real[1] Z_C.terminal.theta (13) [DER-] (1) Real $DER.Z_C.theRef (14) [ALGB] (1) Real[1] Z_L.terminal.theta (15) [ALGB] (2) Real[2] Z_C.i = Z_C.terminal.i (start = {0.0 for $i1 in 1:2}) (16) [ALGB] (1) Real V.phi = Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.V.PhaseSystem.phase(V.terminal.v) - Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.V.PhaseSystem.phase(-V.terminal.i) (17) [ALGB] (2) Real[2] Z_R.v = Z_R.terminal.v (start = Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.Z_R.PhaseSystem.phaseVoltages(Z_R.V_nominal, 0.0)) (18) [ALGB] (2) flow Real[2] Z_C.terminal.i (start = {0.0 for $i1 in 1:2}) (19) [ALGB] (1) protected Real Z_R.omega (20) [ALGB] (2) flow Real[2] V.terminal.i (start = {0.0 for $i1 in 1:2}) (21) [ALGB] (2) Real[2] V.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.V.PhaseSystem.phasePowers_vi(V.terminal.v, V.terminal.i) (22) [DISC] (1) Boolean $TEV_1 (23) [ALGB] (2) Real[2] Z_R.terminal.v (24) [ALGB] (2) Real[2] Z_L.v = Z_L.terminal.v (start = Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.Z_L.PhaseSystem.phaseVoltages(Z_L.V_nominal, 0.0)) (25) [DISC] (1) Boolean $TEV_0 (26) [ALGB] (2) flow Real[2] Z_L.terminal.i (start = {0.0 for $i1 in 1:2}) (27) [ALGB] (2) Real[2] Z_R.i = Z_R.terminal.i (start = {0.0 for $i1 in 1:2}) (28) [ALGB] (2) Real[2] Z_C.terminal.v (29) [ALGB] (1) protected Real Z_R.R_internal (30) [ALGB] (1) protected Real Z_C.X (start = 1.0) (31) [DER-] (1) Real $DER.Z_R.theRef (32) [ALGB] (2) Real[2] V.terminal.v (33) [ALGB] (2) Real[2] Z_L.i = Z_L.terminal.i (start = {0.0 for $i1 in 1:2}) (34) [ALGB] (1) Real[1] Z_R.terminal.theta (35) [ALGB] (1) protected Real Z_L.omega System Equations (39/53) ************************** (1) [ARRY] (2) Z_R.terminal.v = {{Z_R.R_internal, -Z_R.X} * Z_R.terminal.i, {Z_R.X, Z_R.R_internal} * Z_R.terminal.i} ($RES_SIM_11) (2) [SCAL] (1) Z_R.X = Z_R.omega * Z_R.L ($RES_SIM_12) (3) [SCAL] (1) Z_R.omega = $DER.Z_R.theRef ($RES_SIM_13) (4) [SCAL] (1) Z_R.theRef = Z_R.terminal.theta[1] ($RES_SIM_14) (5) [SCAL] (1) Z_C.terminal.i[1] + Z_R.terminal.i[1] + V.terminal.i[1] + Z_L.terminal.i[1] = 0.0 ($RES_SIM_50) (6) [SCAL] (1) V.terminal.v[2] = Z_L.terminal.v[2] ($RES_SIM_51) (7) [SCAL] (1) V.terminal.v[2] = Z_C.terminal.v[2] ($RES_SIM_52) (8) [SCAL] (1) V.terminal.v[2] = Z_R.terminal.v[2] ($RES_SIM_53) (9) [SCAL] (1) V.terminal.v[1] = Z_L.terminal.v[1] ($RES_SIM_54) (10) [ARRY] (2) Z_L.terminal.v = {{Z_L.R, -Z_L.X} * Z_L.terminal.i, {Z_L.X, Z_L.R} * Z_L.terminal.i} ($RES_SIM_39) (11) [SCAL] (1) V.terminal.v[1] = Z_C.terminal.v[1] ($RES_SIM_55) (12) [SCAL] (1) V.terminal.v[1] = Z_R.terminal.v[1] ($RES_SIM_56) (13) [SCAL] (1) V.terminal.theta[1] = Z_L.terminal.theta[1] ($RES_SIM_57) (14) [ARRY] (2) V.S = {V.terminal.v[1] * V.terminal.i[1] + V.terminal.v[2] * V.terminal.i[2], V.terminal.v[2] * V.terminal.i[1] - V.terminal.v[1] * V.terminal.i[2]} ($RES_BND_63) (15) [SCAL] (1) V.terminal.theta[1] = Z_C.terminal.theta[1] ($RES_SIM_58) (16) [SCAL] (1) V.phi = atan2(V.terminal.v[2], V.terminal.v[1]) - atan2((-V.terminal.i)[2], (-V.terminal.i)[1]) ($RES_BND_64) (17) [SCAL] (1) V.terminal.theta[1] = Z_R.terminal.theta[1] ($RES_SIM_59) (18) [ARRY] (2) Z_L.v = Z_L.terminal.v ($RES_BND_65) (19) [ARRY] (2) Z_L.i = Z_L.terminal.i ($RES_BND_66) (20) [ARRY] (2) Z_L.S = {Z_L.v[1] * (-Z_L.i)[1] + Z_L.v[2] * (-Z_L.i)[2], Z_L.v[2] * (-Z_L.i)[1] - Z_L.v[1] * (-Z_L.i)[2]} ($RES_BND_67) (21) [ARRY] (2) Z_C.v = Z_C.terminal.v ($RES_BND_68) (22) [ARRY] (2) Z_C.i = Z_C.terminal.i ($RES_BND_69) (23) [SCAL] (1) $TEV_0 = time < load.startTime ($RES_EVT_83) (24) [SCAL] (1) $TEV_1 = time < (load.startTime + load.duration) ($RES_EVT_84) (25) [SCAL] (1) Z_L.X = Z_L.omega * (0.0026525823848649226 - 0.0026525823848649226 * (1.0 - Z_R.R_internal)) ($RES_SIM_40) (26) [ARRY] (2) Z_C.terminal.v = {{Z_C.R, -Z_C.X} * Z_C.terminal.i, {Z_C.X, Z_C.R} * Z_C.terminal.i} ($RES_SIM_25) (27) [SCAL] (1) Z_L.omega = $DER.Z_L.theRef ($RES_SIM_41) (28) [SCAL] (1) Z_C.X = -1/((0.0026525823848649226 - 0.0026525823848649226 * (1.0 - Z_R.R_internal)) * Z_C.omega) ($RES_SIM_26) (29) [SCAL] (1) Z_C.omega = $DER.Z_C.theRef ($RES_SIM_27) (30) [SCAL] (1) Z_L.theRef = Z_L.terminal.theta[1] ($RES_SIM_42) (31) [SCAL] (1) Z_C.theRef = Z_C.terminal.theta[1] ($RES_SIM_28) (32) [ARRY] (2) V.terminal.v = {V.V * cos(V.phiSou), V.V * sin(V.phiSou)} ($RES_SIM_43) (33) [SCAL] (1) V.terminal.theta[1] = 6.283185307179586 * V.f * time ($RES_SIM_45) (34) [ARRY] (2) Z_C.S = {Z_C.v[1] * (-Z_C.i)[1] + Z_C.v[2] * (-Z_C.i)[2], Z_C.v[2] * (-Z_C.i)[1] - Z_C.v[1] * (-Z_C.i)[2]} ($RES_BND_70) (35) [SCAL] (1) Z_C.terminal.i[2] + Z_R.terminal.i[2] + V.terminal.i[2] + Z_L.terminal.i[2] = 0.0 ($RES_SIM_49) (36) [ARRY] (2) Z_R.v = Z_R.terminal.v ($RES_BND_71) (37) [ARRY] (2) Z_R.i = Z_R.terminal.i ($RES_BND_72) (38) [ARRY] (2) Z_R.S = {Z_R.v[1] * (-Z_R.i)[1] + Z_R.v[2] * (-Z_R.i)[2], Z_R.v[2] * (-Z_R.i)[1] - Z_R.v[1] * (-Z_R.i)[2]} ($RES_BND_73) (39) [SCAL] (1) -(1.0 - Z_R.R_internal) = load.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (load.height * (time - load.startTime)) / load.duration else load.height) ($RES_SIM_0)