Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 109.3 kB / 17.75 MB, free: 5.328 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.00104/0.00104, allocations: 188.4 kB / 18.69 MB, free: 4.402 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.074/1.074, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1497/0.1497, allocations: 37.99 MB / 309.9 MB, free: 5.941 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.388e-05/1.388e-05, allocations: 2.281 kB / 432.5 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002008/0.00203, allocations: 2.092 MB / 434.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.003957, allocations: 2.081 MB / 436.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.966e-05/0.004007, allocations: 0 / 436.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.004119, allocations: 11.86 kB / 436.7 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.57e-05/0.004197, allocations: 35.77 kB / 436.7 MB, free: 11.45 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeClassSections: time 0.001529/0.005732, allocations: 0.8302 MB / 437.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.005848, allocations: 91.72 kB / 437.6 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.144e-05/0.005886, allocations: 4.125 kB / 437.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.952e-05/0.005951, allocations: 35.84 kB / 437.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.56e-05/0.005994, allocations: 35.84 kB / 437.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.063e-05/0.006009, allocations: 4 kB / 437.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.007196, allocations: 1.368 MB / 439.1 MB, free: 9.078 MB / 318.1 MB Notification: Performance of combineBinaries: time 6.424e-05/0.007271, allocations: 106.7 kB / 439.2 MB, free: 8.973 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 2.255e-05/0.007299, allocations: 67.03 kB / 439.3 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.276e-05/0.007316, allocations: 7.938 kB / 439.3 MB, free: 8.898 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.117e-05/0.007332, allocations: 0 / 439.3 MB, free: 8.898 MB / 318.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.0002838/0.007619, allocations: 393 kB / 439.6 MB, free: 8.414 MB / 318.1 MB Notification: Performance of FunctionAlias: time 1.049e-05/0.007636, allocations: 3.938 kB / 439.7 MB, free: 8.41 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0001016/0.007742, allocations: 144.3 kB / 439.8 MB, free: 8.242 MB / 318.1 MB Notification: Performance of simplify1: time 1.272e-06/0.007749, allocations: 0 / 439.8 MB, free: 8.242 MB / 318.1 MB Notification: Performance of Alias: time 3.128e-05/0.007784, allocations: 60.58 kB / 439.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of simplify2: time 4.6e-07/0.007789, allocations: 0 / 439.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of Events: time 1.273e-05/0.007805, allocations: 7.984 kB / 439.9 MB, free: 8.137 MB / 318.1 MB Notification: Performance of Detect States: time 4.711e-05/0.007857, allocations: 44.23 kB / 439.9 MB, free: 8.078 MB / 318.1 MB Notification: Performance of Partitioning: time 4.418e-05/0.007907, allocations: 40.09 kB / 439.9 MB, free: 8.031 MB / 318.1 MB Notification: Performance of Causalize: time 0.0005023/0.008414, allocations: 0.9941 MB / 440.9 MB, free: 7.027 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 6.883e-05/0.00849, allocations: 120.3 kB / 441.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of Inline: time 0.0001369/0.008632, allocations: 220.2 kB / 441.3 MB, free: 6.633 MB / 318.1 MB Notification: Performance of Partitioning: time 6.362e-06/0.008645, allocations: 16.12 kB / 441.3 MB, free: 6.609 MB / 318.1 MB Notification: Performance of Cleanup: time 1.367e-05/0.008662, allocations: 15.92 kB / 441.3 MB, free: 6.594 MB / 318.1 MB Notification: Performance of Causalize: time 0.0007009/0.009368, allocations: 1.697 MB / 443 MB, free: 4.891 MB / 318.1 MB Notification: Performance of Tearing: time 7.313e-06/0.009383, allocations: 0 / 443 MB, free: 4.891 MB / 318.1 MB Notification: Performance of Initialization: time 3.4e-07/0.009387, allocations: 0 / 443 MB, free: 4.891 MB / 318.1 MB Notification: Performance of Tearing: time 1.463e-06/0.009392, allocations: 0 / 443 MB, free: 4.891 MB / 318.1 MB Notification: Performance of Categorize: time 6.412e-06/0.009402, allocations: 7.875 kB / 443 MB, free: 4.883 MB / 318.1 MB Notification: Performance of Solve: time 1.114e-05/0.009417, allocations: 7.984 kB / 443 MB, free: 4.875 MB / 318.1 MB Notification: Performance of Jacobian: time 2.144e-06/0.009423, allocations: 4 kB / 443 MB, free: 4.871 MB / 318.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 1 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 0 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 0 (scalar:0, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 0 (scalar:0, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 1.908e-05/0.009446, allocations: 20.2 kB / 443 MB, free: 4.855 MB / 318.1 MB Notification: Performance of SimCode: time 0.001819/0.01127, allocations: 2.464 MB / 445.5 MB, free: 2.363 MB / 318.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].