Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 109.5 kB / 17.7 MB, free: 5.391 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.001267/0.001267, allocations: 188.7 kB / 18.64 MB, free: 4.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1618/0.1618, allocations: 38.04 MB / 330.5 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.696e-05/2.698e-05, allocations: 2.281 kB / 400.2 MB, free: 33.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002432/0.002474, allocations: 2.104 MB / 402.3 MB, free: 31.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.00452, allocations: 2.04 MB / 404.3 MB, free: 29.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.831e-05/0.00457, allocations: 0 / 404.3 MB, free: 29.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.00469, allocations: 12.45 kB / 404.4 MB, free: 29.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.738e-05/0.004765, allocations: 20.53 kB / 404.4 MB, free: 29.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.006245, allocations: 0.837 MB / 405.2 MB, free: 28.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.006368, allocations: 96 kB / 405.3 MB, free: 28.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.932e-05/0.006414, allocations: 4.188 kB / 405.3 MB, free: 28.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.44e-05/0.006484, allocations: 35.84 kB / 405.3 MB, free: 28.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.317e-05/0.006525, allocations: 27.86 kB / 405.4 MB, free: 28.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.829e-06/0.00654, allocations: 4 kB / 405.4 MB, free: 28.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.007682, allocations: 1.366 MB / 406.7 MB, free: 26.91 MB / 302.1 MB Notification: Performance of combineBinaries: time 6.428e-05/0.007758, allocations: 102.8 kB / 406.8 MB, free: 26.81 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 2.516e-05/0.00779, allocations: 68.16 kB / 406.9 MB, free: 26.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 1.337e-05/0.00781, allocations: 5.406 kB / 406.9 MB, free: 26.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.275e-05/0.007827, allocations: 3.938 kB / 406.9 MB, free: 26.73 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 (1) * Number of variables: 12 (4) Notification: Performance of Bindings: time 0.0003023/0.008134, allocations: 366.8 kB / 407.3 MB, free: 26.28 MB / 302.1 MB Notification: Performance of FunctionAlias: time 8.822e-05/0.008228, allocations: 50.58 kB / 407.3 MB, free: 26.23 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0001151/0.008351, allocations: 153.7 kB / 407.5 MB, free: 26.06 MB / 302.1 MB Notification: Performance of simplify1: time 1.631e-05/0.008375, allocations: 7.984 kB / 407.5 MB, free: 26.05 MB / 302.1 MB Notification: Performance of Alias: time 4.958e-05/0.00843, allocations: 76.56 kB / 407.6 MB, free: 25.94 MB / 302.1 MB Notification: Performance of simplify2: time 6.823e-06/0.008442, allocations: 11.97 kB / 407.6 MB, free: 25.93 MB / 302.1 MB Notification: Performance of Events: time 1.899e-05/0.008466, allocations: 11.98 kB / 407.6 MB, free: 25.91 MB / 302.1 MB Notification: Performance of Detect States: time 6.628e-05/0.008537, allocations: 48.11 kB / 407.6 MB, free: 25.85 MB / 302.1 MB Notification: Performance of Partitioning: time 5.838e-05/0.008602, allocations: 44.09 kB / 407.7 MB, free: 25.8 MB / 302.1 MB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (10/26) ******************************* (1) [ALGB] (2) Real[2] $FUN_5 (2) [ALGB] (1) Real[1] $FUN_4 (3) [ALGB] (2) Real[2] zr_d (4) [ALGB] (2) Real[2] zr_q (5) [ALGB] (4) Real[2, 2] $FUN_3 (6) [ALGB] (2) Real[2] $FUN_2 (7) [ALGB] (1) Real[1] $FUN_1 (8) [ALGB] (4) Real[2, 2] zx_d (9) [ALGB] (4) Real[2, 2] zx_q (10) [ALGB] (4) Real[2, 2] $FUN_6 system eqns Equations (5/26) ****************************** (1) [TUPL] (6) ($FUN_5, $FUN_6) = PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.z_matrix(1, omega_nom * tc_q, $FUN_4, x_q, xsig_s, r_s, 0.0, 0.0, 0.0, false) ($RES_$AUX_1) (2) [ARRY] (1) $FUN_4 = PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.T_open(x_q, xtr_q, omega_nom * tc_q) ($RES_$AUX_2) (3) [ALGO] (12) ($RES_SIM_0) (3) [----] (zr_d, zx_d) := ($FUN_2, $FUN_3); (3) [----] (zr_q, zx_q) := ($FUN_5, $FUN_6); (4) [TUPL] (6) ($FUN_2, $FUN_3) = PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.z_matrix(1, omega_nom * tc_d, $FUN_1, x_d, xsig_s, r_s, if0, 3.141592653589793 + alpha_if0, 0.0, true) ($RES_$AUX_3) (5) [ARRY] (1) $FUN_1 = PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.T_open(x_d, xtr_d, omega_nom * tc_d) ($RES_$AUX_4) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 5 var 2 --> eqn 6 var 3 --> eqn 7 var 4 --> eqn 16 var 5 --> eqn 17 var 6 --> eqn 18 var 7 --> eqn 19 var 8 --> eqn 23 var 9 --> eqn 22 var 10 --> eqn 21 var 11 --> eqn 24 var 12 --> eqn 25 var 13 --> eqn 20 var 14 --> eqn 26 var 15 --> eqn 15 var 16 --> eqn 14 var 17 --> eqn 13 var 18 --> eqn 12 var 19 --> eqn 11 var 20 --> eqn 10 var 21 --> eqn 9 var 22 --> eqn 8 var 23 --> eqn 4 var 24 --> eqn 3 var 25 --> eqn 2 var 26 --> eqn 1 equation to variable ********************** eqn 1 --> var 26 eqn 2 --> var 25 eqn 3 --> var 24 eqn 4 --> var 23 eqn 5 --> var 1 eqn 6 --> var 2 eqn 7 --> var 3 eqn 8 --> var 22 eqn 9 --> var 21 eqn 10 --> var 20 eqn 11 --> var 19 eqn 12 --> var 18 eqn 13 --> var 17 eqn 14 --> var 16 eqn 15 --> var 15 eqn 16 --> var 4 eqn 17 --> var 5 eqn 18 --> var 6 eqn 19 --> var 7 eqn 20 --> var 13 eqn 21 --> var 10 eqn 22 --> var 9 eqn 23 --> var 8 eqn 24 --> var 11 eqn 25 --> var 12 eqn 26 --> var 14