Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 109.2 kB / 17.75 MB, free: 5.309 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.001669/0.001669, allocations: 184.3 kB / 18.67 MB, free: 4.395 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.307/1.307, 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-master/package.mo): time 0.1752/0.1752, allocations: 38.04 MB / 330.6 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 59.91 kB / 458.8 MB, free: 6.816 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3314, allocations: 58.05 MB / 0.5048 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002749/0.3342, allocations: 2.149 MB / 0.5069 GB, free: 6.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002359/0.3365, allocations: 2.041 MB / 0.5089 GB, free: 4.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.873e-05/0.3366, allocations: 5.75 kB / 0.5089 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.3367, allocations: 12.39 kB / 0.5089 GB, free: 4.828 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.062e-05/0.3368, allocations: 38.89 kB / 0.5089 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.3387, allocations: 0.8209 MB / 0.5097 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.3389, allocations: 95 kB / 0.5098 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.238e-05/0.3389, allocations: 8.75 kB / 0.5098 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.721e-05/0.339, allocations: 48.28 kB / 0.5099 GB, free: 4.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.454e-05/0.3391, allocations: 55.22 kB / 0.5099 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.3391, allocations: 6.219 kB / 0.5099 GB, free: 4.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001924/0.3411, allocations: 1.378 MB / 0.5113 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.692e-05/0.3411, allocations: 28.33 kB / 0.5113 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.868e-05/0.3412, allocations: 36.34 kB / 0.5113 GB, free: 4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001658/0.3428, allocations: 1.326 MB / 0.5126 GB, free: 3.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3429, allocations: 5.188 kB / 0.5126 GB, free: 3.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3429, allocations: 0 / 0.5126 GB, free: 3.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.3429, allocations: 0 / 0.5126 GB, free: 3.754 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000547/0.3434, allocations: 0.5406 MB / 0.5132 GB, free: 3.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.3435, allocations: 13.33 kB / 0.5132 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.3435, allocations: 17.41 kB / 0.5132 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.3437, allocations: 188.5 kB / 0.5134 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.3437, allocations: 5.531 kB / 0.5134 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.3437, allocations: 1.25 kB / 0.5134 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.3438, allocations: 76.02 kB / 0.5135 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3439, allocations: 0 / 0.5135 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.3439, allocations: 4.969 kB / 0.5135 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.3439, allocations: 3.938 kB / 0.5135 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.617e-05/0.344, allocations: 42.17 kB / 0.5135 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001128/0.3441, allocations: 181 kB / 0.5137 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.811e-05/0.3442, allocations: 81.22 kB / 0.5138 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.644e-05/0.3442, allocations: 58.09 kB / 0.5138 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-06/0.3443, allocations: 1.516 kB / 0.5138 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.469e-05/0.3443, allocations: 39.72 kB / 0.5139 GB, free: 2.645 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.3443, allocations: 0 / 0.5139 GB, free: 2.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003195/0.3446, allocations: 220.8 kB / 0.5141 GB, free: 2.555 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/0.3446, allocations: 91.3 kB / 0.5142 GB, free: 2.457 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.3447, allocations: 150.5 kB / 0.5143 GB, free: 2.348 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.3448, allocations: 27.02 kB / 0.5143 GB, free: 2.316 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.966e-05/0.3448, allocations: 98.19 kB / 0.5144 GB, free: 2.223 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.235e-05/0.3448, allocations: 45.12 kB / 0.5145 GB, free: 2.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.894e-05/0.3449, allocations: 24.23 kB / 0.5145 GB, free: 2.168 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.36e-05/0.3449, allocations: 327.1 kB / 0.5148 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.052e-05/0.345, allocations: 40.75 kB / 0.5148 GB, free: 1.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.382e-05/0.3451, allocations: 41.12 kB / 0.5149 GB, free: 1.836 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.3452, allocations: 177.9 kB / 0.515 GB, free: 1.746 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3452, allocations: 0 / 0.515 GB, free: 1.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000209/0.3454, allocations: 179.7 kB / 0.5152 GB, free: 1.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.292e-05/0.3455, allocations: 46.73 kB / 0.5153 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.3455, allocations: 1.25 kB / 0.5153 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.3455, allocations: 6.766 kB / 0.5153 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.272e-06/0.3455, allocations: 4.562 kB / 0.5153 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.3455, allocations: 1.281 kB / 0.5153 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.437e-05/0.3456, allocations: 11.05 kB / 0.5153 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.3456, allocations: 8.922 kB / 0.5153 GB, free: 1.605 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.212e-05/0.3457, allocations: 172.2 kB / 0.5155 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.3457, allocations: 14.81 kB / 0.5155 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.703e-05/0.3458, allocations: 13.97 kB / 0.5155 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3458, allocations: 1.125 kB / 0.5155 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.3458, allocations: 4.516 kB / 0.5155 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.315e-05/0.3458, allocations: 84.89 kB / 0.5156 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.3458, allocations: 4.016 kB / 0.5156 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.575e-05/0.3459, allocations: 1.5 kB / 0.5156 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.256e-05/0.3459, allocations: 7.688 kB / 0.5156 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003439/0.3463, allocations: 426.9 kB / 0.516 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003677/0.3466, allocations: 444.6 kB / 0.5164 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001884/0.3468, allocations: 174.5 kB / 0.5166 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.946e-05/0.3469, allocations: 115.7 kB / 0.5167 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of Backend: time 4.2e-07/0.3469, allocations: 1.344 kB / 0.5167 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.3484, allocations: 0.5858 MB / 0.5173 GB, free: 368 kB / 382.1 MB Notification: Performance of SimCode: time 0.0006574/0.349, allocations: 0.805 MB / 0.518 GB, free: 15.63 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.EqCircFromTransDat could not be translated