Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 110.3 kB / 17.74 MB, free: 5.336 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.001133/0.001133, allocations: 185.4 kB / 18.67 MB, free: 4.414 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.339/1.339, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1753/0.1753, allocations: 38.04 MB / 330.6 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 63.89 kB / 458.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3294, allocations: 58.04 MB / 0.5048 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002855/0.3323, allocations: 2.108 MB / 0.5068 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002527/0.3348, allocations: 2.04 MB / 0.5088 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.363e-05/0.3349, allocations: 1.469 kB / 0.5088 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.335, allocations: 14.31 kB / 0.5088 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.058e-05/0.3351, allocations: 31.72 kB / 0.5089 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002048/0.3372, allocations: 0.8289 MB / 0.5097 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001271/0.3373, allocations: 86.27 kB / 0.5098 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.283e-05/0.3374, allocations: 9.953 kB / 0.5098 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.47e-05/0.3375, allocations: 36.08 kB / 0.5098 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.431e-05/0.3376, allocations: 44.12 kB / 0.5099 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.3376, allocations: 2.344 kB / 0.5099 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002035/0.3396, allocations: 1.4 MB / 0.5112 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.438e-05/0.3397, allocations: 30.86 kB / 0.5113 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.612e-05/0.3397, allocations: 39.62 kB / 0.5113 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001778/0.3415, allocations: 1.354 MB / 0.5126 GB, free: 3.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3415, allocations: 0 / 0.5126 GB, free: 3.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3415, allocations: 0 / 0.5126 GB, free: 3.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.3415, allocations: 0 / 0.5126 GB, free: 3.836 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006066/0.3422, allocations: 0.5612 MB / 0.5132 GB, free: 3.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3422, allocations: 9.312 kB / 0.5132 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.233e-05/0.3423, allocations: 13.84 kB / 0.5132 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.3424, allocations: 208.2 kB / 0.5134 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.372e-06/0.3424, allocations: 5.031 kB / 0.5134 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.3424, allocations: 1.094 kB / 0.5134 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001603/0.3426, allocations: 98.47 kB / 0.5135 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.3426, allocations: 0 / 0.5135 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.3426, allocations: 0 / 0.5135 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.778e-06/0.3426, allocations: 1.469 kB / 0.5135 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.143e-05/0.3427, allocations: 60.36 kB / 0.5135 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001252/0.3429, allocations: 189.3 kB / 0.5137 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.343, allocations: 108.5 kB / 0.5138 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.868e-05/0.3431, allocations: 91.62 kB / 0.5139 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.987e-06/0.3431, allocations: 0 / 0.5139 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.298e-05/0.3431, allocations: 32.42 kB / 0.5139 GB, free: 2.684 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.002e-06/0.3431, allocations: 1.156 kB / 0.5139 GB, free: 2.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.000461/0.3436, allocations: 317 kB / 0.5142 GB, free: 2.574 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.3436, allocations: 106.3 kB / 0.5143 GB, free: 2.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.3437, allocations: 153.7 kB / 0.5145 GB, free: 2.355 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.3437, allocations: 27.75 kB / 0.5145 GB, free: 2.324 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.986e-05/0.3438, allocations: 97.84 kB / 0.5146 GB, free: 2.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.068e-05/0.3438, allocations: 80.08 kB / 0.5147 GB, free: 2.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-05/0.3439, allocations: 29.05 kB / 0.5147 GB, free: 2.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.507e-05/0.344, allocations: 332.8 kB / 0.515 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.305e-05/0.344, allocations: 61.16 kB / 0.5151 GB, free: 1.812 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.46e-05/0.3441, allocations: 56.39 kB / 0.5151 GB, free: 1.805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.3444, allocations: 259.8 kB / 0.5154 GB, free: 1.699 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3444, allocations: 0 / 0.5154 GB, free: 1.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002537/0.3446, allocations: 234.3 kB / 0.5156 GB, free: 1.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.248e-05/0.3447, allocations: 68.16 kB / 0.5157 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.3447, allocations: 5.312 kB / 0.5157 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.3447, allocations: 0 / 0.5157 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.493e-06/0.3447, allocations: 1.219 kB / 0.5157 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.3447, allocations: 0.6875 kB / 0.5157 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.747e-05/0.3448, allocations: 12.69 kB / 0.5157 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.941e-05/0.3448, allocations: 5.938 kB / 0.5157 GB, free: 1.551 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.0001677/0.345, allocations: 203.6 kB / 0.5159 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.332e-05/0.345, allocations: 17.97 kB / 0.5159 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.871e-05/0.3451, allocations: 13.05 kB / 0.5159 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.3451, allocations: 0.5 kB / 0.5159 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3451, allocations: 0.5312 kB / 0.5159 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.179e-05/0.3451, allocations: 94.06 kB / 0.516 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.14e-05/0.3452, allocations: 4.156 kB / 0.516 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.322e-05/0.3452, allocations: 11.66 kB / 0.516 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.604e-05/0.3452, allocations: 7.438 kB / 0.516 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007698/0.346, allocations: 0.7287 MB / 0.5168 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005343/0.3466, allocations: 0.6583 MB / 0.5174 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000266/0.3468, allocations: 397.8 kB / 0.5178 GB, free: 432 kB / 382.1 MB Notification: Performance of sorting global known variables: time 5.942e-05/0.3469, allocations: 116.2 kB / 0.5179 GB, free: 348 kB / 382.1 MB Notification: Performance of Backend: time 2.7e-07/0.3469, allocations: 0 / 0.5179 GB, free: 348 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.3486, allocations: 0.918 MB / 0.5188 GB, free: 15.9 MB / 398.1 MB Notification: Performance of SimCode: time 0.0007854/0.3494, allocations: 0.9187 MB / 0.5197 GB, free: 15.16 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_matrixTrDat2 could not be translated