Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 110.5 kB / 17.74 MB, free: 5.328 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.00167/0.00167, allocations: 187 kB / 18.68 MB, free: 4.398 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.307/1.307, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1777/0.1777, allocations: 38.02 MB / 330.6 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 67.89 kB / 458.8 MB, free: 6.812 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2921, allocations: 58.06 MB / 0.5048 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002787/0.2949, allocations: 2.099 MB / 0.5068 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002501/0.2974, allocations: 2.049 MB / 0.5088 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.658e-05/0.2975, allocations: 1.188 kB / 0.5088 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.2976, allocations: 10.33 kB / 0.5088 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.067e-05/0.2977, allocations: 30.09 kB / 0.5089 GB, free: 4.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001969/0.2997, allocations: 0.8276 MB / 0.5097 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001238/0.2998, allocations: 81.62 kB / 0.5098 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.165e-05/0.2999, allocations: 8.328 kB / 0.5098 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.83e-05/0.3, allocations: 36.12 kB / 0.5098 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.034e-05/0.3001, allocations: 52.31 kB / 0.5099 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.3001, allocations: 3.25 kB / 0.5099 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001963/0.3021, allocations: 1.4 MB / 0.5112 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.033e-05/0.3021, allocations: 43.78 kB / 0.5113 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.416e-05/0.3022, allocations: 51.64 kB / 0.5113 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001653/0.3038, allocations: 1.391 MB / 0.5127 GB, free: 3.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3039, allocations: 0 / 0.5127 GB, free: 3.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.3039, allocations: 0 / 0.5127 GB, free: 3.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.3039, allocations: 1.438 kB / 0.5127 GB, free: 3.859 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005706/0.3045, allocations: 0.621 MB / 0.5133 GB, free: 3.309 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.3045, allocations: 13.92 kB / 0.5133 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.637e-05/0.3046, allocations: 18.92 kB / 0.5133 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.3047, allocations: 211.8 kB / 0.5135 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/0.3047, allocations: 4.562 kB / 0.5135 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.19e-05/0.3047, allocations: 1.438 kB / 0.5135 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.3049, allocations: 135.2 kB / 0.5136 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.3049, allocations: 1.891 kB / 0.5137 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.305, allocations: 0 / 0.5137 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.297e-06/0.305, allocations: 0 / 0.5137 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.3051, allocations: 99.81 kB / 0.5137 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001331/0.3052, allocations: 207.9 kB / 0.5139 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.3054, allocations: 168.5 kB / 0.5141 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.3055, allocations: 147.2 kB / 0.5142 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.215e-06/0.3055, allocations: 2.031 kB / 0.5142 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.59e-05/0.3055, allocations: 31.72 kB / 0.5143 GB, free: 2.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.032e-06/0.3056, allocations: 0 / 0.5143 GB, free: 2.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006077/0.3062, allocations: 498.2 kB / 0.5148 GB, free: 2.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.3062, allocations: 108.1 kB / 0.5149 GB, free: 2.324 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.3063, allocations: 168.9 kB / 0.515 GB, free: 2.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.3064, allocations: 31.02 kB / 0.515 GB, free: 2.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.461e-05/0.3064, allocations: 108.4 kB / 0.5152 GB, free: 2.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.699e-05/0.3065, allocations: 138.9 kB / 0.5153 GB, free: 1.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.406e-05/0.3065, allocations: 38.45 kB / 0.5153 GB, free: 1.938 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.641e-05/0.3066, allocations: 337.8 kB / 0.5156 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.3068, allocations: 98.84 kB / 0.5157 GB, free: 1.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.3069, allocations: 95.81 kB / 0.5158 GB, free: 1.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.3073, allocations: 384.1 kB / 0.5162 GB, free: 1.434 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3073, allocations: 4.031 kB / 0.5162 GB, free: 1.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004165/0.3077, allocations: 341.8 kB / 0.5165 GB, free: 1.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.804e-05/0.3078, allocations: 86.28 kB / 0.5166 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.3078, allocations: 1.438 kB / 0.5166 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.3078, allocations: 0 / 0.5166 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.412e-06/0.3079, allocations: 0.75 kB / 0.5166 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.3079, allocations: 1.438 kB / 0.5166 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.12e-05/0.3079, allocations: 19.22 kB / 0.5166 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.308, allocations: 10 kB / 0.5166 GB, free: 1.25 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 0.0001631/0.3081, allocations: 240.3 kB / 0.5169 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.258e-05/0.3082, allocations: 26.47 kB / 0.5169 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.734e-05/0.3082, allocations: 17.55 kB / 0.5169 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.3082, allocations: 0 / 0.5169 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3082, allocations: 0.8438 kB / 0.5169 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.712e-05/0.3083, allocations: 103 kB / 0.517 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.3083, allocations: 7.141 kB / 0.517 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.193e-05/0.3083, allocations: 14.25 kB / 0.517 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.018e-05/0.3084, allocations: 7.656 kB / 0.517 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001172/0.3096, allocations: 1.325 MB / 0.5183 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009235/0.3105, allocations: 1.053 MB / 0.5194 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006703/0.3112, allocations: 0.9828 MB / 0.5203 GB, free: 15.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.741e-05/0.3113, allocations: 127.2 kB / 0.5204 GB, free: 15.4 MB / 398.1 MB Notification: Performance of Backend: time 4.41e-07/0.3113, allocations: 0 / 0.5204 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002221/0.3135, allocations: 1.728 MB / 0.5221 GB, free: 14.49 MB / 398.1 MB Notification: Performance of SimCode: time 0.001002/0.3145, allocations: 1.206 MB / 0.5233 GB, free: 13.7 MB / 398.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_matrixTrDat3 could not be translated