Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 116.5 kB / 17.69 MB, free: 5.434 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.001328/0.001328, allocations: 191 kB / 18.63 MB, free: 4.5 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.339/1.339, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.175/0.175, allocations: 38.03 MB / 330.5 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 65.12 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09431/0.09556, allocations: 58.06 MB / 458.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003221/0.09882, allocations: 2.153 MB / 460.5 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.1005, allocations: 1.072 MB / 461.5 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.005e-05/0.1006, allocations: 3.938 kB / 461.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.1008, allocations: 11.92 kB / 461.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001402/0.101, allocations: 51.78 kB / 461.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009288/0.1019, allocations: 283.2 kB / 461.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001963/0.1021, allocations: 119.6 kB / 462 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.261e-05/0.1022, allocations: 12 kB / 462 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.132e-05/0.1023, allocations: 43.83 kB / 462.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.1024, allocations: 71.72 kB / 462.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.1024, allocations: 0 / 462.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006473/0.1031, allocations: 423.1 kB / 462.5 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.397e-05/0.1032, allocations: 31.89 kB / 462.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.132e-05/0.1033, allocations: 43.69 kB / 462.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006116/0.1039, allocations: 0.5144 MB / 463.1 MB, free: 2.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1039, allocations: 0 / 463.1 MB, free: 2.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1039, allocations: 0 / 463.1 MB, free: 2.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.1039, allocations: 4 kB / 463.1 MB, free: 2.508 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004233/0.1043, allocations: 459.9 kB / 463.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1044, allocations: 11.89 kB / 463.6 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.776e-05/0.1044, allocations: 16.69 kB / 463.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.1046, allocations: 188.2 kB / 463.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.847e-06/0.1046, allocations: 4.312 kB / 463.8 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/0.1046, allocations: 8.125 kB / 463.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001549/0.1048, allocations: 93.64 kB / 463.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.082e-06/0.1048, allocations: 0 / 463.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.1048, allocations: 8 kB / 463.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.1048, allocations: 3.938 kB / 463.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.69e-05/0.1049, allocations: 59.97 kB / 464 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001426/0.1051, allocations: 177.5 kB / 464.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.1052, allocations: 134.5 kB / 464.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.1053, allocations: 120.8 kB / 464.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.843e-06/0.1053, allocations: 0 / 464.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.1054, allocations: 34.56 kB / 464.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 8.51e-07/0.1054, allocations: 0 / 464.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004146/0.1058, allocations: 295.4 kB / 464.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.1059, allocations: 93.11 kB / 464.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.933e-05/0.106, allocations: 133.1 kB / 464.9 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.106, allocations: 29.69 kB / 465 MB, free: 480 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.336e-05/0.106, allocations: 92.47 kB / 465.1 MB, free: 384 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.455e-05/0.1061, allocations: 66.95 kB / 465.1 MB, free: 316 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.447e-05/0.1062, allocations: 29.73 kB / 465.2 MB, free: 280 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1063, allocations: 322.8 kB / 465.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.484e-05/0.1064, allocations: 59.97 kB / 465.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.568e-05/0.1065, allocations: 55.97 kB / 465.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.1067, allocations: 234.8 kB / 465.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1067, allocations: 0 / 465.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002621/0.107, allocations: 223 kB / 466 MB, free: 15.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.925e-05/0.1071, allocations: 53.67 kB / 466.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1071, allocations: 0 / 466.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.1071, allocations: 4.062 kB / 466.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1071, allocations: 0 / 466.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1071, allocations: 0 / 466.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.134e-05/0.1072, allocations: 15.94 kB / 466.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.1072, allocations: 7.984 kB / 466.1 MB, free: 15.28 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001574/0.1074, allocations: 183.4 kB / 466.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.1074, allocations: 15.81 kB / 466.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.771e-05/0.1074, allocations: 9.188 kB / 466.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1074, allocations: 7.922 kB / 466.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1075, allocations: 4 kB / 466.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1075, allocations: 0 / 466.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001564/0.1076, allocations: 209.4 kB / 466.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1076, allocations: 0 / 466.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.62e-07/0.1076, allocations: 0 / 466.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.1076, allocations: 0 / 466.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.1077, allocations: 4 kB / 466.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.1077, allocations: 3.938 kB / 466.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1077, allocations: 4 kB / 466.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004103/0.1081, allocations: 389.1 kB / 466.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.1081, allocations: 92.86 kB / 467 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.1082, allocations: 4 kB / 467 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.666e-05/0.1082, allocations: 4 kB / 467 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.956e-05/0.1082, allocations: 0 / 467 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.1083, allocations: 12 kB / 467 MB, free: 14.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.957e-05/0.1083, allocations: 107.2 kB / 467.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1083, allocations: 0 / 467.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003786/0.1087, allocations: 124 kB / 467.3 MB, free: 14.02 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003722/0.1091, allocations: 195.1 kB / 467.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005202/0.1096, allocations: 0.5733 MB / 468 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1096, allocations: 0 / 468 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003305/0.11, allocations: 471.2 kB / 468.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.1102, allocations: 19.92 kB / 468.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005188/0.1107, allocations: 380.9 kB / 468.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.111, allocations: 0.7158 MB / 469.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.577e-05/0.111, allocations: 0 / 469.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.127e-05/0.111, allocations: 11.44 kB / 469.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.111, allocations: 3.938 kB / 469.6 MB, free: 11.59 MB / 350.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].