Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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_matrixEqCirc3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 110.6 kB / 17.7 MB, free: 5.285 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.00116/0.00116, allocations: 192 kB / 18.64 MB, free: 4.355 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.257/1.257, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1608/0.1608, allocations: 38.05 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.269e-05, allocations: 5.094 kB / 400.2 MB, free: 33.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.002697/0.002734, allocations: 2.055 MB / 402.3 MB, free: 31.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005741/0.003322, allocations: 0.5229 MB / 402.8 MB, free: 30.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.697e-05/0.003369, allocations: 3.938 kB / 402.8 MB, free: 30.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.003502, allocations: 12.7 kB / 402.8 MB, free: 30.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.328e-05/0.003582, allocations: 15.91 kB / 402.8 MB, free: 30.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002958/0.003891, allocations: 65.09 kB / 402.9 MB, free: 30.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.004017, allocations: 73.92 kB / 403 MB, free: 30.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.833e-05/0.004071, allocations: 4 kB / 403 MB, free: 30.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.941e-05/0.004148, allocations: 32.44 kB / 403 MB, free: 30.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.588e-05/0.004192, allocations: 25.83 kB / 403 MB, free: 30.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-06/0.004205, allocations: 0 / 403 MB, free: 30.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.004339, allocations: 79.83 kB / 403.1 MB, free: 30.56 MB / 302.1 MB Notification: Performance of combineBinaries: time 5.528e-05/0.004401, allocations: 83 kB / 403.2 MB, free: 30.48 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 2.312e-05/0.004429, allocations: 55.78 kB / 403.2 MB, free: 30.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 1.304e-05/0.004447, allocations: 4.656 kB / 403.2 MB, free: 30.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.036e-05/0.004463, allocations: 0.7188 kB / 403.2 MB, free: 30.42 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: 40 (1) * Number of variables: 40 (4) Notification: Performance of Bindings: time 0.0002884/0.004756, allocations: 328.6 kB / 403.6 MB, free: 30 MB / 302.1 MB Notification: Performance of FunctionAlias: time 7.273e-05/0.004835, allocations: 29 kB / 403.6 MB, free: 29.97 MB / 302.1 MB Notification: Performance of Early Inline: time 7.752e-05/0.004919, allocations: 101.2 kB / 403.7 MB, free: 29.85 MB / 302.1 MB Notification: Performance of simplify1: time 6.092e-06/0.00493, allocations: 0 / 403.7 MB, free: 29.85 MB / 302.1 MB Notification: Performance of Alias: time 4.394e-05/0.00498, allocations: 75.17 kB / 403.8 MB, free: 29.74 MB / 302.1 MB Notification: Performance of simplify2: time 2.635e-06/0.004987, allocations: 4 kB / 403.8 MB, free: 29.73 MB / 302.1 MB Notification: Performance of Events: time 1.353e-05/0.005005, allocations: 7.953 kB / 403.8 MB, free: 29.73 MB / 302.1 MB Notification: Performance of Detect States: time 5.428e-05/0.005064, allocations: 49.44 kB / 403.8 MB, free: 29.66 MB / 302.1 MB Notification: Performance of Partitioning: time 4.859e-05/0.005119, allocations: 32.64 kB / 403.8 MB, free: 29.62 MB / 302.1 MB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (8/80) ****************************** (1) [ALGB] (16) Real[4, 4] $FUN_4 (2) [ALGB] (4) Real[4] zr_d (3) [ALGB] (4) Real[4] zr_q (4) [ALGB] (4) Real[4] $FUN_3 (5) [ALGB] (16) Real[4, 4] $FUN_2 (6) [ALGB] (4) Real[4] $FUN_1 (7) [ALGB] (16) Real[4, 4] zx_d (8) [ALGB] (16) Real[4, 4] zx_q system eqns Equations (3/80) ****************************** (1) [TUPL] (20) ($FUN_3, $FUN_4) = PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.z_matrix(3, x_q, xsig_s, r_s, fill(0.0, 2), xsig_rq, r_rq) ($RES_$AUX_1) (2) [TUPL] (20) ($FUN_1, $FUN_2) = PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.z_matrix(3, x_d, xsig_s, r_s, xm_d, xsig_rd, r_rd) ($RES_$AUX_2) (3) [ALGO] (40) ($RES_SIM_0) (3) [----] (zr_d, zx_d) := ($FUN_1, $FUN_2); (3) [----] (zr_q, zx_q) := ($FUN_3, $FUN_4); =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 20 var 2 --> eqn 19 var 3 --> eqn 18 var 4 --> eqn 17 var 5 --> eqn 16 var 6 --> eqn 15 var 7 --> eqn 14 var 8 --> eqn 13 var 9 --> eqn 12 var 10 --> eqn 11 var 11 --> eqn 10 var 12 --> eqn 9 var 13 --> eqn 8 var 14 --> eqn 7 var 15 --> eqn 6 var 16 --> eqn 5 var 17 --> eqn 80 var 18 --> eqn 79 var 19 --> eqn 78 var 20 --> eqn 77 var 21 --> eqn 76 var 22 --> eqn 75 var 23 --> eqn 74 var 24 --> eqn 73 var 25 --> eqn 4 var 26 --> eqn 3 var 27 --> eqn 2 var 28 --> eqn 1 var 29 --> eqn 40 var 30 --> eqn 39 var 31 --> eqn 38 var 32 --> eqn 37 var 33 --> eqn 36 var 34 --> eqn 35 var 35 --> eqn 34 var 36 --> eqn 33 var 37 --> eqn 32 var 38 --> eqn 31 var 39 --> eqn 30 var 40 --> eqn 29 var 41 --> eqn 28 var 42 --> eqn 27 var 43 --> eqn 26 var 44 --> eqn 25 var 45 --> eqn 24 var 46 --> eqn 23 var 47 --> eqn 22 var 48 --> eqn 21 var 49 --> eqn 72 var 50 --> eqn 71 var 51 --> eqn 70 var 52 --> eqn 69 var 53 --> eqn 68 var 54 --> eqn 67 var 55 --> eqn 66 var 56 --> eqn 65 var 57 --> eqn 64 var 58 --> eqn 63 var 59 --> eqn 62 var 60 --> eqn 61 var 61 --> eqn 60 var 62 --> eqn 59 var 63 --> eqn 58 var 64 --> eqn 57 var 65 --> eqn 56 var 66 --> eqn 55 var 67 --> eqn 54 var 68 --> eqn 53 var 69 --> eqn 52 var 70 --> eqn 51 var 71 --> eqn 50 var 72 --> eqn 49 var 73 --> eqn 48 var 74 --> eqn 47 var 75 --> eqn 46 var 76 --> eqn 45 var 77 --> eqn 44 var 78 --> eqn 43 var 79 --> eqn 42 var 80 --> eqn 41 equation to variable ********************** eqn 1 --> var 28 eqn 2 --> var 27 eqn 3 --> var 26 eqn 4 --> var 25 eqn 5 --> var 16 eqn 6 --> var 15 eqn 7 --> var 14 eqn 8 --> var 13 eqn 9 --> var 12 eqn 10 --> var 11 eqn 11 --> var 10 eqn 12 --> var 9 eqn 13 --> var 8 eqn 14 --> var 7 eqn 15 --> var 6 eqn 16 --> var 5 eqn 17 --> var 4 eqn 18 --> var 3 eqn 19 --> var 2 eqn 20 --> var 1 eqn 21 --> var 48 eqn 22 --> var 47 eqn 23 --> var 46 eqn 24 --> var 45 eqn 25 --> var 44 eqn 26 --> var 43 eqn 27 --> var 42 eqn 28 --> var 41 eqn 29 --> var 40 eqn 30 --> var 39 eqn 31 --> var 38 eqn 32 --> var 37 eqn 33 --> var 36 eqn 34 --> var 35 eqn 35 --> var 34 eqn 36 --> var 33 eqn 37 --> var 32 eqn 38 --> var 31 eqn 39 --> var 30 eqn 40 --> var 29 eqn 41 --> var 80 eqn 42 --> var 79 eqn 43 --> var 78 eqn 44 --> var 77 eqn 45 --> var 76 eqn 46 --> var 75 eqn 47 --> var 74 eqn 48 --> var 73 eqn 49 --> var 72 eqn 50 --> var 71 eqn 51 --> var 70 eqn 52 --> var 69 eqn 53 --> var 68 eqn 54 --> var 67 eqn 55 --> var 66 eqn 56 --> var 65 eqn 57 --> var 64 eqn 58 --> var 63 eqn 59 --> var 62 eqn 60 --> var 61 eqn 61 --> var 60 eqn 62 --> var 59 eqn 63 --> var 58 eqn 64 --> var 57 eqn 65 --> var 56 eqn 66 --> var 55 eqn 67 --> var 54 eqn 68 --> var 53 eqn 69 --> var 52 eqn 70 --> var 51 eqn 71 --> var 50 eqn 72 --> var 49 eqn 73 --> var 24 eqn 74 --> var 23 eqn 75 --> var 22 eqn 76 --> var 21 eqn 77 --> var 20 eqn 78 --> var 19 eqn 79 --> var 18 eqn 80 --> var 17