Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001116/0.001117, allocations: 108.7 kB / 17.74 MB, free: 5.273 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.001029/0.001029, allocations: 187 kB / 18.68 MB, free: 4.348 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.315/1.315, 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.174/0.174, allocations: 38.02 MB / 330.6 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 67.89 kB / 458.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2897, allocations: 58.05 MB / 0.5048 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002978/0.2928, allocations: 2.107 MB / 0.5068 GB, free: 6.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00252/0.2953, allocations: 2.041 MB / 0.5088 GB, free: 5.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.082e-05/0.2954, allocations: 0 / 0.5088 GB, free: 5.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.2955, allocations: 16.28 kB / 0.5088 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.112e-05/0.2956, allocations: 32.48 kB / 0.5089 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002081/0.2977, allocations: 0.8243 MB / 0.5097 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00013/0.2979, allocations: 76.84 kB / 0.5098 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.722e-05/0.2979, allocations: 8.047 kB / 0.5098 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.919e-05/0.298, allocations: 37.12 kB / 0.5098 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.055e-05/0.2981, allocations: 44.92 kB / 0.5098 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.329e-05/0.2981, allocations: 1 kB / 0.5098 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002124/0.3002, allocations: 1.41 MB / 0.5112 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.782e-05/0.3003, allocations: 9.016 kB / 0.5112 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.571e-05/0.3003, allocations: 24.2 kB / 0.5112 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001765/0.3021, allocations: 1.315 MB / 0.5125 GB, free: 3.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3021, allocations: 0.875 kB / 0.5125 GB, free: 3.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.3021, allocations: 0 / 0.5125 GB, free: 3.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.3021, allocations: 0 / 0.5125 GB, free: 3.965 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.0005005/0.3026, allocations: 0.5172 MB / 0.513 GB, free: 3.473 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.3027, allocations: 12.64 kB / 0.513 GB, free: 3.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.499e-05/0.3027, allocations: 7.734 kB / 0.5131 GB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.3029, allocations: 185.7 kB / 0.5132 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.3029, allocations: 1.703 kB / 0.5132 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.3029, allocations: 1.312 kB / 0.5132 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.303, allocations: 59.38 kB / 0.5133 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.303, allocations: 0 / 0.5133 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.3031, allocations: 0 / 0.5133 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3031, allocations: 5.344 kB / 0.5133 GB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.507e-05/0.3031, allocations: 23.42 kB / 0.5133 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001017/0.3032, allocations: 163.5 kB / 0.5135 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.956e-05/0.3033, allocations: 47.36 kB / 0.5135 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.266e-05/0.3034, allocations: 33.44 kB / 0.5136 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-06/0.3034, allocations: 1.062 kB / 0.5136 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.333e-05/0.3034, allocations: 35.62 kB / 0.5136 GB, free: 2.922 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.3034, allocations: 4 kB / 0.5136 GB, free: 2.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002409/0.3036, allocations: 159.5 kB / 0.5137 GB, free: 2.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.42e-05/0.3037, allocations: 83.73 kB / 0.5138 GB, free: 2.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.626e-05/0.3038, allocations: 122.9 kB / 0.5139 GB, free: 2.633 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.956e-06/0.3038, allocations: 26.27 kB / 0.514 GB, free: 2.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.253e-05/0.3038, allocations: 87.91 kB / 0.514 GB, free: 2.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.497e-05/0.3038, allocations: 29.73 kB / 0.5141 GB, free: 2.492 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.312e-05/0.3039, allocations: 21.94 kB / 0.5141 GB, free: 2.473 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.511e-05/0.3039, allocations: 327.5 kB / 0.5144 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.057e-05/0.304, allocations: 23.84 kB / 0.5144 GB, free: 2.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.34e-05/0.304, allocations: 22.61 kB / 0.5145 GB, free: 2.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.3041, allocations: 134.1 kB / 0.5146 GB, free: 2.055 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3041, allocations: 4 kB / 0.5146 GB, free: 2.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001405/0.3043, allocations: 122.3 kB / 0.5147 GB, free: 1.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.966e-05/0.3043, allocations: 45.11 kB / 0.5147 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.3044, allocations: 0 / 0.5147 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3044, allocations: 1 kB / 0.5147 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.134e-06/0.3044, allocations: 4.719 kB / 0.5148 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3044, allocations: 1.094 kB / 0.5148 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.767e-05/0.3044, allocations: 6.031 kB / 0.5148 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.3045, allocations: 3.969 kB / 0.5148 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 8.074e-05/0.3045, allocations: 159.8 kB / 0.5149 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.3046, allocations: 9.547 kB / 0.5149 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.502e-05/0.3046, allocations: 6.672 kB / 0.5149 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3046, allocations: 1.094 kB / 0.5149 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.3046, allocations: 0 / 0.5149 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.025e-05/0.3046, allocations: 88.09 kB / 0.515 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.3046, allocations: 6.875 kB / 0.515 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.318e-05/0.3047, allocations: 5.031 kB / 0.515 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.161e-05/0.3047, allocations: 3.062 kB / 0.515 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002574/0.305, allocations: 340.2 kB / 0.5154 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002587/0.3052, allocations: 359.1 kB / 0.5157 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.047e-05/0.3053, allocations: 79.59 kB / 0.5158 GB, free: 1.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.354e-05/0.3054, allocations: 105.5 kB / 0.5159 GB, free: 1.066 MB / 382.1 MB Notification: Performance of Backend: time 3.5e-07/0.3054, allocations: 0 / 0.5159 GB, free: 1.066 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.3068, allocations: 0.492 MB / 0.5164 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of SimCode: time 0.0005031/0.3073, allocations: 0.7041 MB / 0.517 GB, free: 164 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