Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001072/0.001072, allocations: 175.7 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.689/1.689, allocations: 205.4 MB / 223.6 MB, free: 8.926 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007922/0.0007921, allocations: 94.81 kB / 271.9 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1748/0.1748, allocations: 38.08 MB / 358.3 MB, free: 1.715 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005662/0.0005664, allocations: 12 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3554, allocations: 56.32 MB / 481.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1324/0.4879, allocations: 92.67 MB / 0.5608 GB, free: 9.609 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.4882, allocations: 87.81 kB / 0.5609 GB, free: 9.527 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04368/0.5319, allocations: 11.98 MB / 0.5725 GB, free: 13.53 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.532, allocations: 0 / 0.5725 GB, free: 13.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.532, allocations: 4 kB / 0.5726 GB, free: 13.52 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0009986/0.533, allocations: 0.5279 MB / 0.5731 GB, free: 12.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.5331, allocations: 8.031 kB / 0.5731 GB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.7e-05/0.5331, allocations: 8.844 kB / 0.5731 GB, free: 12.92 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002393/0.5334, allocations: 184.2 kB / 0.5733 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.5334, allocations: 384 / 0.5733 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.5334, allocations: 384 / 0.5733 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.5336, allocations: 62.16 kB / 0.5733 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.5336, allocations: 192 / 0.5733 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.5336, allocations: 7.938 kB / 0.5733 GB, free: 12.63 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.5336, allocations: 4 kB / 0.5733 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.603e-05/0.5337, allocations: 19.98 kB / 0.5734 GB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001759/0.5339, allocations: 169.5 kB / 0.5735 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.543e-05/0.534, allocations: 50.5 kB / 0.5736 GB, free: 12.33 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.729e-05/0.534, allocations: 36.81 kB / 0.5736 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.929e-06/0.534, allocations: 0 / 0.5736 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.5341, allocations: 38.56 kB / 0.5736 GB, free: 12.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.5341, allocations: 0 / 0.5736 GB, free: 12.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002747/0.5344, allocations: 151.2 kB / 0.5738 GB, free: 12.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.5344, allocations: 81.11 kB / 0.5739 GB, free: 11.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.813e-05/0.5345, allocations: 129.3 kB / 0.574 GB, free: 11.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.5345, allocations: 25.7 kB / 0.574 GB, free: 11.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.454e-05/0.5346, allocations: 88.14 kB / 0.5741 GB, free: 11.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.5346, allocations: 31.78 kB / 0.5741 GB, free: 11.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-06/0.5347, allocations: 0 / 0.5741 GB, free: 11.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.5348, allocations: 318.9 kB / 0.5744 GB, free: 11.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.982e-05/0.5348, allocations: 27.92 kB / 0.5744 GB, free: 11.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.956e-05/0.5349, allocations: 23.98 kB / 0.5745 GB, free: 11.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.535, allocations: 124.2 kB / 0.5746 GB, free: 11.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.535, allocations: 0 / 0.5746 GB, free: 11.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000206/0.5353, allocations: 119.3 kB / 0.5747 GB, free: 11.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.703e-05/0.5353, allocations: 45.69 kB / 0.5747 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.5353, allocations: 3.938 kB / 0.5747 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.5354, allocations: 0 / 0.5747 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.5354, allocations: 4.062 kB / 0.5748 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.5354, allocations: 0 / 0.5748 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.443e-05/0.5354, allocations: 11.98 kB / 0.5748 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.5354, allocations: 4 kB / 0.5748 GB, free: 10.99 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.5356, allocations: 159.4 kB / 0.5749 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/0.5356, allocations: 11.91 kB / 0.5749 GB, free: 10.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.655e-05/0.5356, allocations: 12.3 kB / 0.5749 GB, free: 10.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.5356, allocations: 3.984 kB / 0.5749 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.5356, allocations: 0 / 0.5749 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.5356, allocations: 4 kB / 0.575 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.5358, allocations: 173.5 kB / 0.5751 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5358, allocations: 0 / 0.5751 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.32e-07/0.5358, allocations: 0 / 0.5751 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.5358, allocations: 0 / 0.5751 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.5358, allocations: 19.86 kB / 0.5751 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.5358, allocations: 0 / 0.5751 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.5358, allocations: 0 / 0.5751 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.5361, allocations: 210.8 kB / 0.5753 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.661e-05/0.5361, allocations: 85 kB / 0.5754 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.5362, allocations: 7.938 kB / 0.5754 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.071e-05/0.5362, allocations: 0 / 0.5754 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.884e-05/0.5362, allocations: 7.938 kB / 0.5754 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.5362, allocations: 4 kB / 0.5754 GB, free: 10.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.611e-05/0.5363, allocations: 95.2 kB / 0.5755 GB, free: 10.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5363, allocations: 0 / 0.5755 GB, free: 10.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001055/0.5374, allocations: 363.6 kB / 0.5759 GB, free: 9.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001338/0.5387, allocations: 406.2 kB / 0.5763 GB, free: 9.344 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002533/0.539, allocations: 195.3 kB / 0.5764 GB, free: 9.141 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.539, allocations: 0 / 0.5764 GB, free: 9.141 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.5391, allocations: 151.4 kB / 0.5766 GB, free: 8.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001955/0.5393, allocations: 7.938 kB / 0.5766 GB, free: 8.973 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005784/0.5399, allocations: 275.1 kB / 0.5769 GB, free: 8.676 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.5403, allocations: 0.6929 MB / 0.5775 GB, free: 7.957 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.768e-05/0.5404, allocations: 4 kB / 0.5775 GB, free: 7.953 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.198e-05/0.5404, allocations: 11.44 kB / 0.5776 GB, free: 7.945 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5404, allocations: 0 / 0.5776 GB, free: 7.945 MB / 410.7 MB [CodegenCFunctions.tpl:5450:13-5450:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].