Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001153/0.001153, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.546/1.546, allocations: 205.1 MB / 223.1 MB, free: 8.465 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.001141/0.001141, allocations: 106.5 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1804/0.1804, allocations: 38.01 MB / 355.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 55.91 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3861/0.3871, allocations: 55.24 MB / 477.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.005275/0.3925, allocations: 2.14 MB / 479.2 MB, free: 8.391 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004838/0.3973, allocations: 2.221 MB / 481.5 MB, free: 6.93 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.471e-05/0.3975, allocations: 0 / 481.5 MB, free: 6.93 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002281/0.3977, allocations: 15.05 kB / 481.5 MB, free: 6.922 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.3979, allocations: 28.95 kB / 481.5 MB, free: 6.906 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003069/0.401, allocations: 0.6842 MB / 482.2 MB, free: 6.668 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002736/0.4013, allocations: 117.8 kB / 482.3 MB, free: 6.641 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.24e-05/0.4014, allocations: 2.969 kB / 482.3 MB, free: 6.641 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.4015, allocations: 38.22 kB / 482.3 MB, free: 6.621 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.4017, allocations: 41.06 kB / 482.4 MB, free: 6.609 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.4017, allocations: 1.25 kB / 482.4 MB, free: 6.609 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003629/0.4054, allocations: 1.24 MB / 483.6 MB, free: 6.227 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.512e-05/0.4055, allocations: 24.88 kB / 483.6 MB, free: 6.219 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.256e-05/0.4056, allocations: 26.77 kB / 483.7 MB, free: 6.199 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003613/0.4092, allocations: 1.277 MB / 484.9 MB, free: 5.973 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4093, allocations: 0 / 484.9 MB, free: 5.973 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4093, allocations: 0 / 484.9 MB, free: 5.973 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.4093, allocations: 0 / 484.9 MB, free: 5.973 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.001124/0.4104, allocations: 0.5184 MB / 485.5 MB, free: 5.484 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/0.4105, allocations: 13.58 kB / 485.5 MB, free: 5.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.265e-05/0.4106, allocations: 16.16 kB / 485.5 MB, free: 5.469 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001923/0.4108, allocations: 188.9 kB / 485.7 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.4108, allocations: 1.375 kB / 485.7 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.4108, allocations: 1.375 kB / 485.7 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.411, allocations: 68.11 kB / 485.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.411, allocations: 1.891 kB / 485.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.4111, allocations: 0 / 485.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.4111, allocations: 0 / 485.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.883e-05/0.4112, allocations: 32.02 kB / 485.8 MB, free: 5.215 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000186/0.4114, allocations: 183.1 kB / 486 MB, free: 5.004 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.4115, allocations: 57.58 kB / 486 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.51e-05/0.4116, allocations: 47.62 kB / 486.1 MB, free: 4.949 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.4116, allocations: 0 / 486.1 MB, free: 4.949 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.4117, allocations: 32.64 kB / 486.1 MB, free: 4.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.4117, allocations: 3.938 kB / 486.1 MB, free: 4.906 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004862/0.4122, allocations: 191.3 kB / 486.3 MB, free: 4.824 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.4122, allocations: 95.12 kB / 486.4 MB, free: 4.723 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.4124, allocations: 131.9 kB / 486.5 MB, free: 4.617 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.4124, allocations: 27.08 kB / 486.5 MB, free: 4.586 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.939e-05/0.4125, allocations: 92.39 kB / 486.6 MB, free: 4.496 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.345e-05/0.4126, allocations: 39.42 kB / 486.7 MB, free: 4.465 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.382e-05/0.4126, allocations: 23.52 kB / 486.7 MB, free: 4.445 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.763e-05/0.4127, allocations: 325.3 kB / 487 MB, free: 4.125 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.889e-05/0.4128, allocations: 31.92 kB / 487 MB, free: 4.121 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.645e-05/0.4129, allocations: 36.53 kB / 487.1 MB, free: 4.113 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002321/0.4131, allocations: 165.5 kB / 487.2 MB, free: 4.023 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4132, allocations: 0 / 487.2 MB, free: 4.023 MB / 314.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003014/0.4135, allocations: 157.9 kB / 487.4 MB, free: 3.941 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.964e-05/0.4136, allocations: 45.02 kB / 487.4 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.4136, allocations: 1.062 kB / 487.4 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.4136, allocations: 0.7031 kB / 487.4 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.4136, allocations: 0 / 487.4 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.4136, allocations: 1.312 kB / 487.4 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.545e-05/0.4137, allocations: 11.7 kB / 487.4 MB, free: 3.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.08e-05/0.4138, allocations: 7.938 kB / 487.5 MB, free: 3.898 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001469/0.4139, allocations: 172.4 kB / 487.6 MB, free: 3.742 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/0.414, allocations: 10.33 kB / 487.6 MB, free: 3.738 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.338e-05/0.414, allocations: 9.094 kB / 487.6 MB, free: 3.734 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.414, allocations: 0 / 487.6 MB, free: 3.734 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.414, allocations: 4.703 kB / 487.6 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.414, allocations: 1.094 kB / 487.6 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.4142, allocations: 179.3 kB / 487.8 MB, free: 3.531 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4142, allocations: 0 / 487.8 MB, free: 3.531 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.198e-06/0.4142, allocations: 9.953 kB / 487.8 MB, free: 3.523 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.4142, allocations: 0 / 487.8 MB, free: 3.523 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.4142, allocations: 4.25 kB / 487.8 MB, free: 3.523 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4142, allocations: 0 / 487.8 MB, free: 3.523 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.4143, allocations: 1.906 kB / 487.8 MB, free: 3.523 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.4153, allocations: 0.9427 MB / 488.8 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.692e-05/0.4153, allocations: 92.39 kB / 488.9 MB, free: 2.668 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.38e-05/0.4154, allocations: 7.266 kB / 488.9 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.472e-05/0.4154, allocations: 2.062 kB / 488.9 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.87e-05/0.4155, allocations: 2.359 kB / 488.9 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.4155, allocations: 5.203 kB / 488.9 MB, free: 2.664 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001135/0.4156, allocations: 107.3 kB / 489 MB, free: 2.578 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4157, allocations: 0 / 489 MB, free: 2.578 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002451/0.4181, allocations: 323.5 kB / 489.3 MB, free: 2.539 MB / 314.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 (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.001629/0.4198, allocations: 373.7 kB / 489.7 MB, free: 2.379 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005732/0.4204, allocations: 299.7 kB / 490 MB, free: 2.238 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4204, allocations: 1.312 kB / 490 MB, free: 2.238 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002977/0.4207, allocations: 225.2 kB / 490.2 MB, free: 2.113 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.4211, allocations: 6.375 kB / 490.2 MB, free: 2.113 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008791/0.422, allocations: 462.2 kB / 490.6 MB, free: 1.805 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.4222, allocations: 0.7123 MB / 491.4 MB, free: 1.105 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.668e-05/0.4222, allocations: 5.719 kB / 491.4 MB, free: 1.102 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.231e-05/0.4222, allocations: 8.656 kB / 491.4 MB, free: 1.094 MB / 314.7 MB Notification: Performance of SimCode: time 3.9e-07/0.4223, allocations: 0 / 491.4 MB, free: 1.094 MB / 314.7 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].