Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.001606/0.001606, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.322/1.322, 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/package.mo): time 0.1755/0.1755, allocations: 38.03 MB / 330.6 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 64.05 kB / 458.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2907, allocations: 58.06 MB / 0.5048 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002813/0.2935, allocations: 2.098 MB / 0.5068 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002436/0.296, allocations: 2.039 MB / 0.5088 GB, free: 4.984 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.798e-05/0.2961, allocations: 1.031 kB / 0.5088 GB, free: 4.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.2962, allocations: 11.25 kB / 0.5088 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.022e-05/0.2963, allocations: 35.44 kB / 0.5089 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002057/0.2983, allocations: 0.836 MB / 0.5097 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.2985, allocations: 72.73 kB / 0.5097 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.524e-05/0.2985, allocations: 4.312 kB / 0.5098 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.256e-05/0.2986, allocations: 40.47 kB / 0.5098 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.97e-05/0.2987, allocations: 32.8 kB / 0.5098 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.311e-05/0.2987, allocations: 2.219 kB / 0.5098 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002069/0.3008, allocations: 1.407 MB / 0.5112 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.287e-05/0.3008, allocations: 18.06 kB / 0.5112 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.817e-05/0.3009, allocations: 25.12 kB / 0.5112 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001722/0.3026, allocations: 1.331 MB / 0.5125 GB, free: 3.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.3026, allocations: 1.188 kB / 0.5125 GB, free: 3.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.3026, allocations: 0 / 0.5125 GB, free: 3.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.3026, allocations: 0 / 0.5125 GB, free: 3.93 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005587/0.3032, allocations: 0.5137 MB / 0.513 GB, free: 3.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.3032, allocations: 16.8 kB / 0.5131 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.3033, allocations: 8.406 kB / 0.5131 GB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.3034, allocations: 205.4 kB / 0.5133 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.3035, allocations: 5.016 kB / 0.5133 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-06/0.3035, allocations: 0 / 0.5133 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.3036, allocations: 68.81 kB / 0.5133 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.3036, allocations: 0 / 0.5133 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-06/0.3036, allocations: 1.953 kB / 0.5133 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.3036, allocations: 0 / 0.5133 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.519e-05/0.3037, allocations: 32.59 kB / 0.5134 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001067/0.3038, allocations: 178.9 kB / 0.5135 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.207e-05/0.3039, allocations: 57.55 kB / 0.5136 GB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.48e-05/0.304, allocations: 47.3 kB / 0.5136 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-06/0.304, allocations: 0 / 0.5136 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.304, allocations: 32.11 kB / 0.5137 GB, free: 2.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.304, allocations: 0 / 0.5137 GB, free: 2.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003009/0.3043, allocations: 202.9 kB / 0.5139 GB, free: 2.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.408e-05/0.3043, allocations: 86.92 kB / 0.5139 GB, free: 2.676 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.883e-05/0.3044, allocations: 131.7 kB / 0.5141 GB, free: 2.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.305e-06/0.3044, allocations: 25.7 kB / 0.5141 GB, free: 2.539 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.392e-05/0.3045, allocations: 93.95 kB / 0.5142 GB, free: 2.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.838e-05/0.3045, allocations: 42.69 kB / 0.5142 GB, free: 2.414 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.749e-05/0.3045, allocations: 24.3 kB / 0.5142 GB, free: 2.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.007e-05/0.3046, allocations: 325.5 kB / 0.5146 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.739e-05/0.3046, allocations: 34.83 kB / 0.5146 GB, free: 2.066 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.325e-05/0.3047, allocations: 32.2 kB / 0.5146 GB, free: 2.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.3048, allocations: 161.6 kB / 0.5148 GB, free: 1.977 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3048, allocations: 1.062 kB / 0.5148 GB, free: 1.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001625/0.305, allocations: 157.1 kB / 0.5149 GB, free: 1.895 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.238e-05/0.3051, allocations: 50.39 kB / 0.515 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.3051, allocations: 0 / 0.515 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.3051, allocations: 1.625 kB / 0.515 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.3051, allocations: 0.7969 kB / 0.515 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.3051, allocations: 0 / 0.515 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.462e-05/0.3052, allocations: 7.25 kB / 0.515 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.3052, allocations: 4.719 kB / 0.515 GB, free: 1.855 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 9.307e-05/0.3053, allocations: 169 kB / 0.5151 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.169e-05/0.3053, allocations: 17.91 kB / 0.5152 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.549e-05/0.3053, allocations: 15.17 kB / 0.5152 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3053, allocations: 0 / 0.5152 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3053, allocations: 0 / 0.5152 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.067e-05/0.3054, allocations: 86.73 kB / 0.5153 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.3054, allocations: 7.438 kB / 0.5153 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.004e-05/0.3054, allocations: 6.625 kB / 0.5153 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.969e-05/0.3055, allocations: 1.516 kB / 0.5153 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000338/0.3058, allocations: 422.3 kB / 0.5157 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003056/0.3061, allocations: 431.2 kB / 0.5161 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000133/0.3063, allocations: 140 kB / 0.5162 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.116e-05/0.3063, allocations: 102.3 kB / 0.5163 GB, free: 0.918 MB / 382.1 MB Notification: Performance of Backend: time 2.6e-07/0.3063, allocations: 4.062 kB / 0.5163 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.3078, allocations: 0.5718 MB / 0.5169 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of SimCode: time 0.0005644/0.3084, allocations: 0.7397 MB / 0.5176 GB, free: 15.97 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_matrixTrDat1 could not be translated