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.001039/0.001039, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.422/1.422, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008123/0.0008124, allocations: 82.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.157/0.157, allocations: 37.97 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.585e-05/2.588e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 56.31 MB / 474 MB, free: 4.801 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3413/0.4537, allocations: 92.44 MB / 0.5532 GB, free: 9.609 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.454, allocations: 75.45 kB / 0.5533 GB, free: 9.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0378/0.4918, allocations: 11.96 MB / 0.565 GB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4919, allocations: 0 / 0.565 GB, free: 15.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.4919, allocations: 0 / 0.565 GB, free: 15.66 MB / 378.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.0008262/0.4927, allocations: 0.537 MB / 0.5655 GB, free: 15.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.4928, allocations: 11.98 kB / 0.5655 GB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.508e-05/0.4928, allocations: 7.906 kB / 0.5655 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002077/0.493, allocations: 189.4 kB / 0.5657 GB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.4931, allocations: 7.938 kB / 0.5657 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.4931, allocations: 0 / 0.5657 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000155/0.4932, allocations: 60.8 kB / 0.5657 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.4933, allocations: 4 kB / 0.5658 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.4933, allocations: 0 / 0.5658 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.4933, allocations: 0 / 0.5658 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.419e-05/0.4933, allocations: 31.8 kB / 0.5658 GB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001741/0.4935, allocations: 177.2 kB / 0.566 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.56e-05/0.4936, allocations: 52.88 kB / 0.566 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.28e-05/0.4937, allocations: 47.31 kB / 0.566 GB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.4937, allocations: 0 / 0.566 GB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.4937, allocations: 38.77 kB / 0.5661 GB, free: 14.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 2.575e-06/0.4937, allocations: 0 / 0.5661 GB, free: 14.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002597/0.494, allocations: 160.7 kB / 0.5662 GB, free: 14.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.4941, allocations: 85.14 kB / 0.5663 GB, free: 14.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.4942, allocations: 120.2 kB / 0.5664 GB, free: 14.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.4942, allocations: 25.7 kB / 0.5665 GB, free: 13.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.582e-05/0.4943, allocations: 94.81 kB / 0.5665 GB, free: 13.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.896e-05/0.4943, allocations: 38.92 kB / 0.5666 GB, free: 13.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-06/0.4943, allocations: 0 / 0.5666 GB, free: 13.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.4945, allocations: 325.1 kB / 0.5669 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.509e-05/0.4945, allocations: 27.3 kB / 0.5669 GB, free: 13.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.905e-05/0.4946, allocations: 31.42 kB / 0.5669 GB, free: 13.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.678e-05/0.4947, allocations: 80.14 kB / 0.567 GB, free: 13.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.4947, allocations: 0 / 0.567 GB, free: 13.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001848/0.4949, allocations: 161.8 kB / 0.5672 GB, free: 13.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.468e-05/0.4949, allocations: 42.94 kB / 0.5672 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.4949, allocations: 0 / 0.5672 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.495, allocations: 0 / 0.5672 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.495, allocations: 0 / 0.5672 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.495, allocations: 4 kB / 0.5672 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.347e-05/0.495, allocations: 3.938 kB / 0.5672 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.495, allocations: 7.984 kB / 0.5672 GB, free: 13.2 MB / 378.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 () * 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.0001154/0.4952, allocations: 158 kB / 0.5674 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.873e-05/0.4952, allocations: 11.81 kB / 0.5674 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.059e-05/0.4952, allocations: 12.19 kB / 0.5674 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.4952, allocations: 0 / 0.5674 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4952, allocations: 3.984 kB / 0.5674 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.4952, allocations: 0 / 0.5674 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.4954, allocations: 180.4 kB / 0.5676 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.4954, allocations: 0 / 0.5676 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.4954, allocations: 0 / 0.5676 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.4954, allocations: 0 / 0.5676 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.4954, allocations: 8 kB / 0.5676 GB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.4954, allocations: 4 kB / 0.5676 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4954, allocations: 0 / 0.5676 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003211/0.4958, allocations: 282.8 kB / 0.5679 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.879e-05/0.4958, allocations: 92.89 kB / 0.568 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.4959, allocations: 4 kB / 0.568 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.835e-05/0.4959, allocations: 4 kB / 0.568 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.505e-05/0.4959, allocations: 6.859 kB / 0.568 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.4959, allocations: 8.031 kB / 0.568 GB, free: 12.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.907e-05/0.496, allocations: 103.7 kB / 0.5681 GB, free: 12.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.496, allocations: 0 / 0.5681 GB, free: 12.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008623/0.4969, allocations: 358.9 kB / 0.5684 GB, free: 11.94 MB / 378.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 () * 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.0008803/0.4978, allocations: 405.1 kB / 0.5688 GB, free: 11.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003226/0.4981, allocations: 300 kB / 0.5691 GB, free: 11.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4981, allocations: 3.938 kB / 0.5691 GB, free: 11.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.4983, allocations: 223.2 kB / 0.5693 GB, free: 11.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001274/0.4984, allocations: 12.39 kB / 0.5693 GB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003356/0.4988, allocations: 202.2 kB / 0.5695 GB, free: 10.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.4991, allocations: 0.716 MB / 0.5702 GB, free: 10.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.288e-05/0.4991, allocations: 4.078 kB / 0.5702 GB, free: 10.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.887e-06/0.4991, allocations: 11.44 kB / 0.5702 GB, free: 10.19 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4991, allocations: 0 / 0.5702 GB, free: 10.19 MB / 378.7 MB [CodegenCFunctions.tpl:5352:15-5352:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].