Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 2.465e-05/2.466e-05, allocations: 2.281 kB / 0.5923 GB, free: 18.38 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004007/0.00404, allocations: 3.045 MB / 0.5952 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.006225, allocations: 1.785 MB / 0.597 GB, free: 14.09 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.00635, allocations: 8 kB / 0.597 GB, free: 14.08 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008785/0.007235, allocations: 337.5 kB / 0.5973 GB, free: 13.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003771/0.007621, allocations: 223.1 kB / 0.5975 GB, free: 13.54 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003404/0.007989, allocations: 187.5 kB / 0.5977 GB, free: 13.35 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002969/0.008295, allocations: 339 kB / 0.598 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000338/0.008641, allocations: 166 kB / 0.5982 GB, free: 12.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001637/0.008813, allocations: 135.5 kB / 0.5983 GB, free: 12.72 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002572/0.009078, allocations: 135.5 kB / 0.5984 GB, free: 12.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.009113, allocations: 16 kB / 0.5984 GB, free: 12.57 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002712/0.009391, allocations: 211.6 kB / 0.5986 GB, free: 12.37 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.0002109/0.00961, allocations: 324.7 kB / 0.599 GB, free: 12.05 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 9.213e-05/0.00971, allocations: 217.2 kB / 0.5992 GB, free: 11.83 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.952e-05/0.009758, allocations: 31.88 kB / 0.5992 GB, free: 11.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.874e-05/0.009793, allocations: 4 kB / 0.5992 GB, free: 11.8 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 (40) * Number of variables: 58 (39) Notification: Performance of Bindings: time 0.0008403/0.01064, allocations: 0.9995 MB / 0.6002 GB, free: 10.69 MB / 446.1 MB Notification: Performance of FunctionAlias: time 0.0001083/0.01075, allocations: 63.83 kB / 0.6002 GB, free: 10.63 MB / 446.1 MB Notification: Performance of Early Inline: time 0.000651/0.01141, allocations: 0.8037 MB / 0.601 GB, free: 9.797 MB / 446.1 MB Notification: Performance of simplify1: time 5.188e-05/0.01147, allocations: 63.91 kB / 0.6011 GB, free: 9.734 MB / 446.1 MB Notification: Performance of Alias: time 0.0005817/0.01206, allocations: 0.5845 MB / 0.6017 GB, free: 9.059 MB / 446.1 MB Notification: Performance of simplify2: time 6.314e-05/0.01214, allocations: 63.91 kB / 0.6017 GB, free: 8.996 MB / 446.1 MB Notification: Performance of Events: time 0.0001089/0.01225, allocations: 63.86 kB / 0.6018 GB, free: 8.934 MB / 446.1 MB Notification: Performance of Detect States: time 0.0002047/0.01246, allocations: 206.1 kB / 0.602 GB, free: 8.715 MB / 446.1 MB Notification: Performance of Partitioning: time 0.000225/0.0127, allocations: 255.7 kB / 0.6022 GB, free: 8.441 MB / 446.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency loa.Y[1] could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) loa.omega * {-loa.q[2], loa.q[1]} + $DER.loa.q + loa.Y[1] * loa.v = loa.i ($RES_SIM_17) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (33/55) ************************** (1) [ALGB] (4) Real[2, 2] $FUN_1 (2) [ALGB] (2) Real[2] loa.i = loa.terminal.i (start = {0.0, 0.0}) (3) [ALGB] (2) Real[2] sou.S = Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sou.PhaseSystem.phasePowers_vi(sou.terminal.v, sou.terminal.i) (4) [ALGB] (2) Real[2] loa.terminal.v (5) [DISC] (1) Boolean $SEV_0 (6) [ALGB] (2) Real[2] sen.terminal_n.v (7) [DER-] (2) Real[2] $DER.loa.q (8) [ALGB] (1) Real res.LossPower (9) [ALGB] (1) Real[1] res.terminal_p.theta (10) [ALGB] (2) Real[2] res.terminal_n.v (11) [ALGB] (1) Real sen.V = Buildings.Electrical.PhaseSystems.OnePhase.systemVoltage(sen.terminal_n.v) (12) [ALGB] (1) Real[1] res.terminal_n.theta (13) [ALGB] (2) protected Real[2] loa.Y (14) [DER-] (1) Real[1] $DER.loa.terminal.theta (15) [ALGB] (2) Real[2] sen.S = Buildings.Electrical.PhaseSystems.OnePhase.phasePowers_vi(sen.terminal_n.v, sen.terminal_n.i) (16) [ALGB] (1) Real sou.phi = Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sou.PhaseSystem.phase(sou.terminal.v) - Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sou.PhaseSystem.phase(-sou.terminal.i) (17) [ALGB] (1) Real[1] sou.terminal.theta (18) [ALGB] (2) Real[2] loa.S = Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.loa.PhaseSystem.phasePowers_vi(loa.v, -loa.i) (19) [ALGB] (2) flow Real[2] res.terminal_n.i (20) [ALGB] (1) Real sen.I = Buildings.Electrical.PhaseSystems.OnePhase.systemCurrent(sen.terminal_n.i) (21) [ALGB] (2) Real[2] res.terminal_p.v (22) [ALGB] (2) flow Real[2] sen.terminal_p.i (23) [ALGB] (2) flow Real[2] sou.terminal.i (24) [ALGB] (1) Real res.R_actual (25) [ALGB] (1) Real[1] sen.terminal_p.theta (26) [ALGB] (2) flow Real[2] res.terminal_p.i (27) [ALGB] (2) Real[2] sen.terminal_p.v (28) [ALGB] (2) Real[2] sou.terminal.v (29) [ALGB] (2) Real[2] loa.v = loa.terminal.v (start = {120.0, 0.0}) (30) [ALGB] (1) Real[1] sen.terminal_n.theta (31) [ALGB] (2) flow Real[2] loa.terminal.i (32) [ALGB] (2) flow Real[2] sen.terminal_n.i (33) [ALGB] (1) protected Real loa.omega System Equations (34/55) ************************** (1) [SCAL] (1) sou.terminal.theta[1] = 6.283185307179586 * sou.f * time ($RES_SIM_10) (2) [FOR-] (2) ($RES_SIM_30) (2) [----] for $i1 in 1:2 loop (2) [----] [SCAL] (1) sen.terminal_p.i[$i1] + loa.terminal.i[$i1] = 0.0 ($RES_SIM_31) (2) [----] end for; (3) [ARRY] (2) sen.terminal_p.v = loa.terminal.v ($RES_SIM_32) (4) [ARRY] (2) loa.omega * {-loa.q[2], loa.q[1]} + $DER.loa.q + loa.Y[1] * loa.v = loa.i ($RES_SIM_17) (5) [ARRY] (1) sen.terminal_p.theta = loa.terminal.theta ($RES_SIM_33) (6) [ARRY] (2) loa.q = (loa.Y[2] * {loa.v[1], loa.v[2]}) / loa.omega ($RES_SIM_18) (7) [ARRY] (2) sen.S = {sen.terminal_n.v[1] * sen.terminal_n.i[1] + sen.terminal_n.v[2] * sen.terminal_n.i[2], sen.terminal_n.v[2] * sen.terminal_n.i[1] - sen.terminal_n.v[1] * sen.terminal_n.i[2]} ($RES_BND_40) (8) [FOR-] (2) ($RES_SIM_34) (8) [----] for $i1 in 1:2 loop (8) [----] [SCAL] (1) -(sen.terminal_n.i[$i1] + sen.terminal_p.i[$i1]) = 0.0 ($RES_SIM_35) (8) [----] end for; (9) [SCAL] (1) loa.Y[2] = -6.944444444444444e-5 * ((1.0 - loa.pf ^ 2.0) / ((1.0 - loa.pf ^ 2.0) * (1.0 - loa.pf ^ 2.0) + 1e-6) ^ 0.25) * (loa.P_nominal / loa.pf) ($RES_SIM_19) (10) [ARRY] (2) loa.v = loa.terminal.v ($RES_BND_41) (11) [ARRY] (2) loa.i = loa.terminal.i ($RES_BND_42) (12) [ARRY] (2) sen.terminal_n.v = sen.terminal_p.v ($RES_SIM_36) (13) [ARRY] (2) loa.S = {loa.v[1] * (-loa.i)[1] + loa.v[2] * (-loa.i)[2], loa.v[2] * (-loa.i)[1] - loa.v[1] * (-loa.i)[2]} ($RES_BND_43) (14) [ARRY] (1) sen.terminal_n.theta = sen.terminal_p.theta ($RES_SIM_37) (15) [ARRY] (2) sou.S = {sou.terminal.v[1] * sou.terminal.i[1] + sou.terminal.v[2] * sou.terminal.i[2], sou.terminal.v[2] * sou.terminal.i[1] - sou.terminal.v[1] * sou.terminal.i[2]} ($RES_BND_45) (16) [SCAL] (1) sou.phi = atan2(sou.terminal.v[2], sou.terminal.v[1]) - atan2((-sou.terminal.i)[2], (-sou.terminal.i)[1]) ($RES_BND_46) (17) [SCAL] (1) loa.Y[1] = -6.944444444444444e-5 * loa.pf * (loa.P_nominal / loa.pf) ($RES_SIM_20) (18) [SCAL] (1) loa.omega = $DER.loa.terminal.theta[1] ($RES_SIM_21) (19) [FOR-] (2) ($RES_SIM_22) (19) [----] for $i1 in 1:2 loop (19) [----] [SCAL] (1) res.terminal_p.i[$i1] + sen.terminal_n.i[$i1] = 0.0 ($RES_SIM_23) (19) [----] end for; (20) [ARRY] (4) $FUN_1 = diagonal(fill(1.0, 2) .* res.R_actual) ($RES_$AUX_49) (21) [ARRY] (2) res.terminal_p.v = sen.terminal_n.v ($RES_SIM_24) (22) [ARRY] (1) res.terminal_p.theta = sen.terminal_n.theta ($RES_SIM_25) (23) [FOR-] (2) ($RES_SIM_26) (23) [----] for $i1 in 1:2 loop (23) [----] [SCAL] (1) sou.terminal.i[$i1] + res.terminal_n.i[$i1] = 0.0 ($RES_SIM_27) (23) [----] end for; (24) [ARRY] (2) sou.terminal.v = res.terminal_n.v ($RES_SIM_28) (25) [ARRY] (1) sou.terminal.theta = res.terminal_n.theta ($RES_SIM_29) (26) [SCAL] (1) sen.V = sen.terminal_n.v / ((sen.terminal_n.v * sen.terminal_n.v * (sen.terminal_n.v * sen.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * sen.terminal_n.v) ($RES_BND_38) (27) [SCAL] (1) sen.I = sen.terminal_n.i / ((sen.terminal_n.i * sen.terminal_n.i * (sen.terminal_n.i * sen.terminal_n.i) + 1.0000000000000002e-10) ^ 0.25 * sen.terminal_n.i) ($RES_BND_39) (28) [ARRY] (2) sou.terminal.v = {sou.V * cos(sou.phiSou), sou.V * sin(sou.phiSou)} ($RES_SIM_8) (29) [ARRY] (2) res.terminal_p.v - res.terminal_n.v = res.terminal_p.i * $FUN_1 ($RES_SIM_7) (30) [SCAL] (1) res.LossPower = res.R_actual * (res.terminal_p.i[1] ^ 2.0 + res.terminal_p.i[2] ^ 2.0) ($RES_SIM_6) (31) [ARRY] (1) res.terminal_p.theta = res.terminal_n.theta ($RES_SIM_5) (32) [SCAL] (1) res.R_actual = ((res.M + ((-273.15) + res.T)) * res.R) / (res.M + ((-273.15) + res.T_ref)) ($RES_SIM_3) (33) [SCAL] (1) $SEV_0 = res.R_actual >= 0.0 ($RES_EVT_50) (34) [ARRY] (2) res.terminal_p.i = -res.terminal_n.i ($RES_SIM_2)