Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_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.001266/0.001266, allocations: 110.3 kB / 17.74 MB, free: 5.359 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.001219/0.001219, allocations: 185.4 kB / 18.67 MB, free: 4.438 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.333/1.333, 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.1681/0.1681, allocations: 38.05 MB / 330.6 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 64.08 kB / 458.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.329, allocations: 58.05 MB / 0.5048 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002927/0.3319, allocations: 2.097 MB / 0.5068 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002455/0.3344, allocations: 2.048 MB / 0.5088 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.593e-05/0.3345, allocations: 0 / 0.5088 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.3346, allocations: 10.92 kB / 0.5088 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.992e-05/0.3347, allocations: 28.25 kB / 0.5089 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00204/0.3367, allocations: 0.8316 MB / 0.5097 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00013/0.3369, allocations: 76.25 kB / 0.5097 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.718e-05/0.3369, allocations: 4.406 kB / 0.5098 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.529e-05/0.337, allocations: 35.86 kB / 0.5098 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.034e-05/0.3371, allocations: 44.83 kB / 0.5098 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.3371, allocations: 1.469 kB / 0.5098 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001906/0.339, allocations: 1.4 MB / 0.5112 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.918e-05/0.3391, allocations: 20.34 kB / 0.5112 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.691e-05/0.3391, allocations: 25.61 kB / 0.5112 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001624/0.3407, allocations: 1.331 MB / 0.5125 GB, free: 3.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3407, allocations: 0 / 0.5125 GB, free: 3.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3408, allocations: 0 / 0.5125 GB, free: 3.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.3408, allocations: 1.406 kB / 0.5125 GB, free: 3.867 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.0005051/0.3413, allocations: 0.513 MB / 0.513 GB, free: 3.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.3413, allocations: 12.61 kB / 0.5131 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.663e-05/0.3414, allocations: 8.875 kB / 0.5131 GB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.3415, allocations: 204 kB / 0.5133 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.326e-06/0.3415, allocations: 1.125 kB / 0.5133 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.3415, allocations: 5.469 kB / 0.5133 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.3416, allocations: 65.19 kB / 0.5133 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.3417, allocations: 0 / 0.5133 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.3417, allocations: 1.609 kB / 0.5133 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3417, allocations: 0 / 0.5133 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.486e-05/0.3417, allocations: 36.84 kB / 0.5134 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001047/0.3418, allocations: 174.5 kB / 0.5135 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.986e-05/0.3419, allocations: 61.39 kB / 0.5136 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.429e-05/0.342, allocations: 46.81 kB / 0.5136 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.587e-06/0.342, allocations: 1.609 kB / 0.5136 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.465e-05/0.342, allocations: 31.75 kB / 0.5137 GB, free: 2.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.022e-06/0.342, allocations: 0 / 0.5137 GB, free: 2.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002854/0.3423, allocations: 198.6 kB / 0.5139 GB, free: 2.715 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.515e-05/0.3423, allocations: 86.75 kB / 0.5139 GB, free: 2.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.512e-05/0.3424, allocations: 139.9 kB / 0.5141 GB, free: 2.508 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.358e-06/0.3425, allocations: 25.7 kB / 0.5141 GB, free: 2.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.541e-05/0.3425, allocations: 89.86 kB / 0.5142 GB, free: 2.391 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.981e-05/0.3425, allocations: 43.95 kB / 0.5142 GB, free: 2.355 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-05/0.3426, allocations: 22.58 kB / 0.5142 GB, free: 2.336 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.979e-05/0.3426, allocations: 325.4 kB / 0.5146 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.908e-05/0.3427, allocations: 31.91 kB / 0.5146 GB, free: 2.012 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.888e-05/0.3427, allocations: 31.8 kB / 0.5146 GB, free: 2.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/0.3429, allocations: 161.8 kB / 0.5148 GB, free: 1.922 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3429, allocations: 3.938 kB / 0.5148 GB, free: 1.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001825/0.3431, allocations: 157.8 kB / 0.5149 GB, free: 1.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.423e-05/0.3431, allocations: 53.81 kB / 0.515 GB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.3431, allocations: 0.9375 kB / 0.515 GB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.3431, allocations: 0.8438 kB / 0.515 GB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.3431, allocations: 5.094 kB / 0.515 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.3432, allocations: 3.984 kB / 0.515 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.957e-05/0.3432, allocations: 3.969 kB / 0.515 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.3432, allocations: 3.312 kB / 0.515 GB, free: 1.789 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.027e-05/0.3433, allocations: 169.2 kB / 0.5152 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.082e-05/0.3434, allocations: 17.97 kB / 0.5152 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.625e-05/0.3434, allocations: 8.781 kB / 0.5152 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3434, allocations: 1.312 kB / 0.5152 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.3434, allocations: 0 / 0.5152 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.252e-05/0.3434, allocations: 88.28 kB / 0.5153 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.3434, allocations: 7.281 kB / 0.5153 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.85e-05/0.3435, allocations: 2 kB / 0.5153 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.724e-05/0.3435, allocations: 7.219 kB / 0.5153 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003371/0.3438, allocations: 421.6 kB / 0.5157 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003216/0.3442, allocations: 434.8 kB / 0.5161 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001396/0.3443, allocations: 132.2 kB / 0.5162 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.304e-05/0.3444, allocations: 105.6 kB / 0.5163 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of Backend: time 4.11e-07/0.3444, allocations: 1.25 kB / 0.5163 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.3458, allocations: 0.5708 MB / 0.5169 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of SimCode: time 0.0006186/0.3465, allocations: 0.739 MB / 0.5176 GB, free: 15.91 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