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.001634/0.001635, allocations: 110.5 kB / 17.75 MB, free: 5.312 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.001084/0.001084, allocations: 187 kB / 18.68 MB, free: 4.391 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.325/1.325, 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.1767/0.1767, allocations: 38.04 MB / 330.6 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.89 kB / 458.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.2999, allocations: 58.05 MB / 0.5048 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002934/0.3028, allocations: 2.096 MB / 0.5068 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.3053, allocations: 2.04 MB / 0.5088 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.836e-05/0.3054, allocations: 5.281 kB / 0.5088 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.3056, allocations: 15.42 kB / 0.5088 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.807e-05/0.3057, allocations: 27.61 kB / 0.5089 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002073/0.3078, allocations: 0.8439 MB / 0.5097 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001364/0.3079, allocations: 71.95 kB / 0.5098 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.145e-05/0.308, allocations: 5.312 kB / 0.5098 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.746e-05/0.3081, allocations: 36.91 kB / 0.5098 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.836e-05/0.3082, allocations: 36.81 kB / 0.5098 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.3082, allocations: 1.25 kB / 0.5098 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002089/0.3103, allocations: 1.407 MB / 0.5112 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.849e-05/0.3103, allocations: 12.19 kB / 0.5112 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.763e-05/0.3104, allocations: 27.38 kB / 0.5112 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001781/0.3122, allocations: 1.306 MB / 0.5125 GB, free: 3.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3122, allocations: 1.406 kB / 0.5125 GB, free: 3.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3122, allocations: 0 / 0.5125 GB, free: 3.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.3122, allocations: 0 / 0.5125 GB, free: 3.91 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.0005423/0.3127, allocations: 0.5097 MB / 0.513 GB, free: 3.422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.3128, allocations: 13.42 kB / 0.513 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.079e-05/0.3128, allocations: 7.688 kB / 0.513 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.313, allocations: 196.2 kB / 0.5132 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-06/0.313, allocations: 0 / 0.5132 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.709e-06/0.313, allocations: 1.469 kB / 0.5132 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.3131, allocations: 55.2 kB / 0.5133 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.3131, allocations: 0 / 0.5133 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.3132, allocations: 0 / 0.5133 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.3132, allocations: 5.812 kB / 0.5133 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.673e-05/0.3132, allocations: 20.25 kB / 0.5133 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001108/0.3133, allocations: 171 kB / 0.5135 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.967e-05/0.3134, allocations: 48.03 kB / 0.5135 GB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.374e-05/0.3135, allocations: 34.58 kB / 0.5135 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-06/0.3135, allocations: 1.688 kB / 0.5136 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.3135, allocations: 32.95 kB / 0.5136 GB, free: 2.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.3135, allocations: 7.938 kB / 0.5136 GB, free: 2.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002428/0.3137, allocations: 146.8 kB / 0.5137 GB, free: 2.781 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/0.3138, allocations: 91.88 kB / 0.5138 GB, free: 2.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.864e-05/0.3139, allocations: 129.9 kB / 0.5139 GB, free: 2.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/0.3139, allocations: 26.31 kB / 0.514 GB, free: 2.539 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.367e-05/0.3139, allocations: 91.94 kB / 0.5141 GB, free: 2.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.3139, allocations: 22.22 kB / 0.5141 GB, free: 2.434 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.164e-05/0.314, allocations: 18.12 kB / 0.5141 GB, free: 2.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.866e-05/0.3141, allocations: 327.2 kB / 0.5144 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.857e-05/0.3141, allocations: 22.64 kB / 0.5144 GB, free: 2.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.386e-05/0.3141, allocations: 24.3 kB / 0.5144 GB, free: 2.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.3142, allocations: 124.4 kB / 0.5146 GB, free: 2.008 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3143, allocations: 0 / 0.5146 GB, free: 2.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001323/0.3144, allocations: 125.7 kB / 0.5147 GB, free: 1.934 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/0.3144, allocations: 45.81 kB / 0.5147 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3144, allocations: 0.6562 kB / 0.5147 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.3145, allocations: 1.031 kB / 0.5147 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.3145, allocations: 4.062 kB / 0.5147 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.3145, allocations: 1.766 kB / 0.5147 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.773e-05/0.3145, allocations: 6.094 kB / 0.5147 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.3145, allocations: 7.406 kB / 0.5148 GB, free: 1.887 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.752e-05/0.3146, allocations: 156.3 kB / 0.5149 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.75e-05/0.3146, allocations: 9.219 kB / 0.5149 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.316e-05/0.3147, allocations: 7.188 kB / 0.5149 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.3147, allocations: 1.125 kB / 0.5149 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3147, allocations: 0 / 0.5149 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.067e-05/0.3147, allocations: 91.8 kB / 0.515 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.3147, allocations: 6.828 kB / 0.515 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.387e-05/0.3148, allocations: 1.031 kB / 0.515 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.412e-05/0.3148, allocations: 3.109 kB / 0.515 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002447/0.315, allocations: 336.8 kB / 0.5153 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000225/0.3153, allocations: 372.4 kB / 0.5157 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.287e-05/0.3154, allocations: 70.08 kB / 0.5158 GB, free: 1.105 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.768e-05/0.3154, allocations: 107.7 kB / 0.5159 GB, free: 1.016 MB / 382.1 MB Notification: Performance of Backend: time 1.9e-07/0.3154, allocations: 0 / 0.5159 GB, free: 1.016 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.3167, allocations: 489.5 kB / 0.5163 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of SimCode: time 0.0005878/0.3173, allocations: 0.7184 MB / 0.517 GB, free: 116 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