Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_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.001505/0.001505, allocations: 114.3 kB / 17.75 MB, free: 5.332 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.001722/0.001722, allocations: 185.3 kB / 18.68 MB, free: 4.41 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.33/1.33, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1738/0.1738, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.91 kB / 458.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3046, allocations: 58.05 MB / 0.5048 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.00286/0.3075, allocations: 2.106 MB / 0.5068 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002525/0.31, allocations: 2.041 MB / 0.5088 GB, free: 4.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.982e-05/0.3101, allocations: 0 / 0.5088 GB, free: 4.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.3102, allocations: 11.22 kB / 0.5088 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.224e-05/0.3103, allocations: 29.41 kB / 0.5089 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001918/0.3123, allocations: 0.8396 MB / 0.5097 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.3124, allocations: 82.38 kB / 0.5098 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.851e-05/0.3125, allocations: 3.859 kB / 0.5098 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.478e-05/0.3125, allocations: 35.16 kB / 0.5098 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.058e-05/0.3126, allocations: 52.94 kB / 0.5099 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.3126, allocations: 2.5 kB / 0.5099 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002033/0.3147, allocations: 1.408 MB / 0.5112 GB, free: 4.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.993e-05/0.3148, allocations: 44.86 kB / 0.5113 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.191e-05/0.3148, allocations: 47.81 kB / 0.5113 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001728/0.3165, allocations: 1.387 MB / 0.5127 GB, free: 3.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3166, allocations: 0 / 0.5127 GB, free: 3.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3166, allocations: 1.219 kB / 0.5127 GB, free: 3.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.3166, allocations: 0 / 0.5127 GB, free: 3.848 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.000594/0.3172, allocations: 0.6033 MB / 0.5133 GB, free: 3.316 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3172, allocations: 13.33 kB / 0.5133 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.881e-05/0.3173, allocations: 22.47 kB / 0.5133 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.3174, allocations: 209.3 kB / 0.5135 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.3175, allocations: 2.062 kB / 0.5135 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.3175, allocations: 2.125 kB / 0.5135 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.3177, allocations: 140.1 kB / 0.5136 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.3177, allocations: 0 / 0.5136 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.3177, allocations: 0 / 0.5136 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3177, allocations: 1.188 kB / 0.5136 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.3179, allocations: 104.1 kB / 0.5137 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001392/0.318, allocations: 215.4 kB / 0.514 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.3182, allocations: 158 kB / 0.5141 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.3183, allocations: 144.3 kB / 0.5142 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-06/0.3183, allocations: 0 / 0.5142 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.766e-05/0.3183, allocations: 36.83 kB / 0.5143 GB, free: 2.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.032e-06/0.3183, allocations: 0 / 0.5143 GB, free: 2.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.000632/0.319, allocations: 497.3 kB / 0.5147 GB, free: 2.426 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.319, allocations: 112.6 kB / 0.5149 GB, free: 2.324 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.3192, allocations: 170 kB / 0.515 GB, free: 2.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.024e-05/0.3192, allocations: 25.7 kB / 0.515 GB, free: 2.176 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.513e-05/0.3192, allocations: 108.8 kB / 0.5151 GB, free: 2.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.383e-05/0.3193, allocations: 122 kB / 0.5153 GB, free: 1.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-05/0.3194, allocations: 37.98 kB / 0.5153 GB, free: 1.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.129e-05/0.3194, allocations: 338 kB / 0.5156 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.3196, allocations: 98.84 kB / 0.5157 GB, free: 1.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/0.3197, allocations: 100.2 kB / 0.5158 GB, free: 1.586 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004168/0.3201, allocations: 383 kB / 0.5162 GB, free: 1.449 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3201, allocations: 0 / 0.5162 GB, free: 1.449 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004477/0.3206, allocations: 351.6 kB / 0.5165 GB, free: 1.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.594e-05/0.3207, allocations: 86.45 kB / 0.5166 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3207, allocations: 0 / 0.5166 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.3207, allocations: 3.938 kB / 0.5166 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.302e-06/0.3207, allocations: 0.6562 kB / 0.5166 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.3207, allocations: 1.125 kB / 0.5166 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.738e-05/0.3208, allocations: 24.19 kB / 0.5166 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.251e-05/0.3209, allocations: 9.109 kB / 0.5166 GB, free: 1.254 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.0001775/0.321, allocations: 235.1 kB / 0.5169 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.52e-05/0.3211, allocations: 24.38 kB / 0.5169 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.722e-05/0.3211, allocations: 22.42 kB / 0.5169 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3211, allocations: 0 / 0.5169 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3211, allocations: 1.188 kB / 0.5169 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.956e-05/0.3212, allocations: 98.48 kB / 0.517 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.3212, allocations: 5.844 kB / 0.517 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.65e-05/0.3213, allocations: 13.75 kB / 0.517 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.542e-05/0.3213, allocations: 10.36 kB / 0.517 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001202/0.3225, allocations: 1.315 MB / 0.5183 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009811/0.3235, allocations: 1.053 MB / 0.5193 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007022/0.3242, allocations: 0.9837 MB / 0.5203 GB, free: 15.51 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.337e-05/0.3243, allocations: 130.6 kB / 0.5204 GB, free: 15.42 MB / 398.1 MB Notification: Performance of Backend: time 2.31e-07/0.3243, allocations: 64 / 0.5204 GB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.3267, allocations: 1.72 MB / 0.5221 GB, free: 14.51 MB / 398.1 MB Notification: Performance of SimCode: time 0.001116/0.3278, allocations: 1.205 MB / 0.5233 GB, free: 13.72 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