Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001214/0.001214, allocations: 176.4 kB / 17.39 MB, free: 4.273 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.594/1.594, allocations: 205.4 MB / 223.5 MB, free: 9.004 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.0008466/0.0008465, allocations: 74.44 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1802/0.1802, allocations: 38.08 MB / 358.3 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004597/0.0004598, allocations: 12 kB / 425.2 MB, free: 37.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3196, allocations: 56.32 MB / 481.6 MB, free: 9.582 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.4556, allocations: 92.86 MB / 0.561 GB, free: 9.395 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.4559, allocations: 83.81 kB / 0.561 GB, free: 9.316 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04205/0.498, allocations: 12.15 MB / 0.5729 GB, free: 13.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.498, allocations: 0 / 0.5729 GB, free: 13.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.498, allocations: 4 kB / 0.5729 GB, free: 13.14 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001117/0.4992, allocations: 0.5627 MB / 0.5735 GB, free: 12.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.4992, allocations: 8.031 kB / 0.5735 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.832e-05/0.4993, allocations: 8.844 kB / 0.5735 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.4995, allocations: 196.1 kB / 0.5737 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.4995, allocations: 4.375 kB / 0.5737 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.4995, allocations: 384 / 0.5737 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/0.4997, allocations: 78.16 kB / 0.5737 GB, free: 12.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.4997, allocations: 192 / 0.5737 GB, free: 12.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.4998, allocations: 3.938 kB / 0.5737 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.4998, allocations: 0 / 0.5737 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.971e-05/0.4998, allocations: 31.98 kB / 0.5738 GB, free: 12.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002145/0.5001, allocations: 189.5 kB / 0.574 GB, free: 11.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.5002, allocations: 66.56 kB / 0.574 GB, free: 11.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.481e-05/0.5003, allocations: 64.8 kB / 0.5741 GB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.588e-06/0.5003, allocations: 0 / 0.5741 GB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.5003, allocations: 34.5 kB / 0.5741 GB, free: 11.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.042e-06/0.5003, allocations: 0 / 0.5741 GB, free: 11.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003345/0.5007, allocations: 223 kB / 0.5743 GB, free: 11.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.5007, allocations: 85.11 kB / 0.5744 GB, free: 11.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.5009, allocations: 158.1 kB / 0.5746 GB, free: 11.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.5009, allocations: 25.7 kB / 0.5746 GB, free: 11.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.5009, allocations: 96.38 kB / 0.5747 GB, free: 11.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.933e-05/0.501, allocations: 51.25 kB / 0.5747 GB, free: 11.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-06/0.501, allocations: 4 kB / 0.5747 GB, free: 11.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.5011, allocations: 322.8 kB / 0.575 GB, free: 10.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.885e-05/0.5012, allocations: 35.97 kB / 0.5751 GB, free: 10.69 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.027e-05/0.5012, allocations: 39.92 kB / 0.5751 GB, free: 10.65 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.5014, allocations: 176.2 kB / 0.5753 GB, free: 10.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.5014, allocations: 0 / 0.5753 GB, free: 10.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002538/0.5017, allocations: 163.2 kB / 0.5754 GB, free: 10.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.591e-05/0.5018, allocations: 53.67 kB / 0.5755 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.5018, allocations: 3.938 kB / 0.5755 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.5018, allocations: 0 / 0.5755 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.82e-07/0.5018, allocations: 0 / 0.5755 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.5018, allocations: 0 / 0.5755 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.992e-05/0.5019, allocations: 11.84 kB / 0.5755 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/0.5019, allocations: 4 kB / 0.5755 GB, free: 10.21 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.0001241/0.502, allocations: 179.5 kB / 0.5757 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.444e-05/0.502, allocations: 15.89 kB / 0.5757 GB, free: 10.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.476e-05/0.5021, allocations: 8.781 kB / 0.5757 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.5021, allocations: 4 kB / 0.5757 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.5021, allocations: 0 / 0.5757 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.5021, allocations: 7.922 kB / 0.5757 GB, free: 9.992 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.5022, allocations: 189.5 kB / 0.5759 GB, free: 9.758 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.5022, allocations: 0 / 0.5759 GB, free: 9.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.5023, allocations: 0 / 0.5759 GB, free: 9.758 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.5023, allocations: 4 kB / 0.5759 GB, free: 9.754 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.5023, allocations: 11.94 kB / 0.5759 GB, free: 9.742 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.5023, allocations: 0 / 0.5759 GB, free: 9.742 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.5023, allocations: 3.938 kB / 0.5759 GB, free: 9.738 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.5027, allocations: 286.1 kB / 0.5762 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.328e-05/0.5027, allocations: 96.84 kB / 0.5763 GB, free: 9.324 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.5028, allocations: 7.938 kB / 0.5763 GB, free: 9.316 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.257e-05/0.5028, allocations: 0 / 0.5763 GB, free: 9.316 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.636e-05/0.5028, allocations: 12.03 kB / 0.5763 GB, free: 9.305 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.5028, allocations: 4 kB / 0.5763 GB, free: 9.301 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.318e-05/0.5029, allocations: 115.2 kB / 0.5764 GB, free: 9.188 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5029, allocations: 0 / 0.5764 GB, free: 9.188 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001236/0.5042, allocations: 359.6 kB / 0.5768 GB, free: 8.836 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.001418/0.5056, allocations: 414.5 kB / 0.5771 GB, free: 8.418 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004332/0.5061, allocations: 327.3 kB / 0.5775 GB, free: 8.086 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.5061, allocations: 4 kB / 0.5775 GB, free: 8.082 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002643/0.5063, allocations: 247.3 kB / 0.5777 GB, free: 7.828 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.5066, allocations: 23.92 kB / 0.5777 GB, free: 7.805 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006701/0.5073, allocations: 377.5 kB / 0.5781 GB, free: 7.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.5077, allocations: 0.7121 MB / 0.5788 GB, free: 6.672 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.281e-05/0.5077, allocations: 4 kB / 0.5788 GB, free: 6.668 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.285e-05/0.5077, allocations: 11.44 kB / 0.5788 GB, free: 6.66 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5078, allocations: 0 / 0.5788 GB, free: 6.66 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].