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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 111.8 kB / 17.75 MB, free: 5.223 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.001129/0.001129, allocations: 182.4 kB / 18.67 MB, free: 4.309 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.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1755/0.1755, allocations: 38.03 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.89 kB / 458.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2902, allocations: 58.05 MB / 0.5048 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002764/0.293, allocations: 2.098 MB / 0.5068 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.2954, allocations: 2.045 MB / 0.5088 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.523e-05/0.2955, allocations: 1.25 kB / 0.5088 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001504/0.2957, allocations: 15.3 kB / 0.5088 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.666e-05/0.2958, allocations: 27.55 kB / 0.5089 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.2977, allocations: 0.8333 MB / 0.5097 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001191/0.2978, allocations: 75.67 kB / 0.5098 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.762e-05/0.2978, allocations: 4.266 kB / 0.5098 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.325e-05/0.2979, allocations: 34.05 kB / 0.5098 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.455e-05/0.298, allocations: 48.05 kB / 0.5098 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.091e-05/0.298, allocations: 0.9375 kB / 0.5098 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.2999, allocations: 1.403 MB / 0.5112 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.464e-05/0.3, allocations: 13.95 kB / 0.5112 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.226e-05/0.3, allocations: 22.97 kB / 0.5112 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001568/0.3016, allocations: 1.31 MB / 0.5125 GB, free: 3.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3016, allocations: 0 / 0.5125 GB, free: 3.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3016, allocations: 5.031 kB / 0.5125 GB, free: 3.953 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.3016, allocations: 0 / 0.5125 GB, free: 3.953 MB / 382.1 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.0004905/0.3021, allocations: 0.5066 MB / 0.513 GB, free: 3.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.3021, allocations: 12.36 kB / 0.513 GB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.812e-05/0.3022, allocations: 13.36 kB / 0.513 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.3023, allocations: 189.4 kB / 0.5132 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.3023, allocations: 0 / 0.5132 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.3023, allocations: 2.078 kB / 0.5132 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.3025, allocations: 54.48 kB / 0.5133 GB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.974e-06/0.3025, allocations: 4 kB / 0.5133 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.3025, allocations: 5.703 kB / 0.5133 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.3025, allocations: 0 / 0.5133 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.766e-05/0.3026, allocations: 23.86 kB / 0.5133 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001028/0.3027, allocations: 171.6 kB / 0.5135 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.918e-05/0.3027, allocations: 44.28 kB / 0.5135 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.293e-05/0.3028, allocations: 37.86 kB / 0.5136 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.3028, allocations: 1.094 kB / 0.5136 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.631e-05/0.3028, allocations: 40.08 kB / 0.5136 GB, free: 2.902 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.3028, allocations: 0 / 0.5136 GB, free: 2.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002386/0.3031, allocations: 151.3 kB / 0.5137 GB, free: 2.824 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.115e-05/0.3031, allocations: 88.2 kB / 0.5138 GB, free: 2.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.04e-05/0.3032, allocations: 122.2 kB / 0.5139 GB, free: 2.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.586e-06/0.3032, allocations: 25.7 kB / 0.514 GB, free: 2.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.3e-05/0.3032, allocations: 96.2 kB / 0.5141 GB, free: 2.496 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.145e-05/0.3033, allocations: 17.53 kB / 0.5141 GB, free: 2.484 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.349e-05/0.3033, allocations: 27.03 kB / 0.5141 GB, free: 2.461 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.392e-05/0.3033, allocations: 323.5 kB / 0.5144 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.816e-05/0.3034, allocations: 18.64 kB / 0.5144 GB, free: 2.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.409e-05/0.3034, allocations: 27.08 kB / 0.5144 GB, free: 2.133 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001046/0.3035, allocations: 124.9 kB / 0.5146 GB, free: 2.055 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3036, allocations: 1.031 kB / 0.5146 GB, free: 2.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001482/0.3037, allocations: 125.8 kB / 0.5147 GB, free: 1.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.3037, allocations: 42.03 kB / 0.5147 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.626e-06/0.3038, allocations: 4.062 kB / 0.5147 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.3038, allocations: 0.75 kB / 0.5147 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.3038, allocations: 1.375 kB / 0.5147 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.363e-06/0.3038, allocations: 3.984 kB / 0.5147 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.792e-05/0.3038, allocations: 6.953 kB / 0.5147 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.3039, allocations: 2.75 kB / 0.5147 GB, free: 1.938 MB / 382.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 7.469e-05/0.3039, allocations: 160.2 kB / 0.5149 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.304, allocations: 9.312 kB / 0.5149 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.24e-05/0.304, allocations: 6.766 kB / 0.5149 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.304, allocations: 5.703 kB / 0.5149 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.304, allocations: 3.938 kB / 0.5149 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.99e-05/0.304, allocations: 83.89 kB / 0.515 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.304, allocations: 7 kB / 0.515 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.179e-05/0.3041, allocations: 1.188 kB / 0.515 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.825e-05/0.3041, allocations: 6.641 kB / 0.515 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002431/0.3043, allocations: 335.7 kB / 0.5153 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002424/0.3046, allocations: 373.4 kB / 0.5157 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.233e-05/0.3047, allocations: 68.38 kB / 0.5158 GB, free: 1.148 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.622e-05/0.3047, allocations: 99.31 kB / 0.5159 GB, free: 1.066 MB / 382.1 MB Notification: Performance of Backend: time 3.01e-07/0.3047, allocations: 0 / 0.5159 GB, free: 1.066 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.3059, allocations: 0.4909 MB / 0.5163 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of SimCode: time 0.0004714/0.3064, allocations: 0.7139 MB / 0.517 GB, free: 160 kB / 382.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]. Error: Internal error SimCode DAEmode: The model PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0 could not be translated