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.001187/0.001187, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.001281/0.001281, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.316/1.316, 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.1734/0.1734, allocations: 38.05 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.91 kB / 458.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3012, allocations: 58.05 MB / 0.5048 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002855/0.3041, allocations: 2.103 MB / 0.5068 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.3066, allocations: 2.043 MB / 0.5088 GB, free: 5.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.641e-05/0.3067, allocations: 4 kB / 0.5088 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.3068, allocations: 10.56 kB / 0.5088 GB, free: 5.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.765e-05/0.3069, allocations: 28.88 kB / 0.5089 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001967/0.3089, allocations: 0.8297 MB / 0.5097 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000136/0.309, allocations: 81.67 kB / 0.5098 GB, free: 4.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.962e-05/0.3091, allocations: 3.344 kB / 0.5098 GB, free: 4.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.263e-05/0.3092, allocations: 36.41 kB / 0.5098 GB, free: 4.859 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.698e-05/0.3093, allocations: 45.77 kB / 0.5098 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.693e-05/0.3093, allocations: 9.281 kB / 0.5099 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002762/0.3121, allocations: 1.401 MB / 0.5112 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.467e-05/0.3121, allocations: 29.86 kB / 0.5113 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.374e-05/0.3122, allocations: 36.48 kB / 0.5113 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001978/0.3142, allocations: 1.354 MB / 0.5126 GB, free: 4.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3142, allocations: 0.5156 kB / 0.5126 GB, free: 4.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3142, allocations: 1.156 kB / 0.5126 GB, free: 4.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.3142, allocations: 0 / 0.5126 GB, free: 4.125 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.0005659/0.3148, allocations: 0.5629 MB / 0.5132 GB, free: 3.613 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.3148, allocations: 8.688 kB / 0.5132 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.832e-05/0.3149, allocations: 14.5 kB / 0.5132 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.315, allocations: 208.2 kB / 0.5134 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.315, allocations: 3.422 kB / 0.5134 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.3151, allocations: 1.438 kB / 0.5134 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001657/0.3152, allocations: 101.1 kB / 0.5135 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.3153, allocations: 1.875 kB / 0.5135 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.3153, allocations: 4 kB / 0.5135 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.3153, allocations: 0 / 0.5135 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.165e-05/0.3154, allocations: 62.78 kB / 0.5135 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001202/0.3155, allocations: 187.9 kB / 0.5137 GB, free: 3.109 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.3156, allocations: 100.4 kB / 0.5138 GB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.056e-05/0.3157, allocations: 91.64 kB / 0.5139 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.605e-06/0.3157, allocations: 3.938 kB / 0.5139 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.575e-05/0.3157, allocations: 40.53 kB / 0.514 GB, free: 2.965 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.3157, allocations: 0 / 0.514 GB, free: 2.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004416/0.3162, allocations: 316.5 kB / 0.5143 GB, free: 2.855 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.118e-05/0.3162, allocations: 99.3 kB / 0.5143 GB, free: 2.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.702e-05/0.3163, allocations: 151.5 kB / 0.5145 GB, free: 2.648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.398e-06/0.3163, allocations: 25.7 kB / 0.5145 GB, free: 2.617 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.573e-05/0.3164, allocations: 99.39 kB / 0.5146 GB, free: 2.523 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.783e-05/0.3164, allocations: 79.62 kB / 0.5147 GB, free: 2.461 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.465e-05/0.3165, allocations: 31.84 kB / 0.5147 GB, free: 2.438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.296e-05/0.3165, allocations: 338.7 kB / 0.515 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.544e-05/0.3166, allocations: 56.22 kB / 0.5151 GB, free: 2.102 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.396e-05/0.3167, allocations: 64.31 kB / 0.5152 GB, free: 2.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002273/0.3169, allocations: 256.8 kB / 0.5154 GB, free: 1.984 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3169, allocations: 0 / 0.5154 GB, free: 1.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002578/0.3172, allocations: 233.7 kB / 0.5156 GB, free: 1.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.028e-05/0.3173, allocations: 63.78 kB / 0.5157 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3173, allocations: 0.5625 kB / 0.5157 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.3173, allocations: 5.406 kB / 0.5157 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.683e-06/0.3173, allocations: 0.9375 kB / 0.5157 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.681e-05/0.3173, allocations: 0 / 0.5157 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.135e-05/0.3174, allocations: 12.66 kB / 0.5157 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.3174, allocations: 6.75 kB / 0.5157 GB, free: 1.84 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.000161/0.3176, allocations: 199.6 kB / 0.5159 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.374e-05/0.3176, allocations: 17.09 kB / 0.5159 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.09e-05/0.3177, allocations: 11.67 kB / 0.5159 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.3177, allocations: 3.938 kB / 0.5159 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.3177, allocations: 4.531 kB / 0.5159 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.79e-05/0.3177, allocations: 94.27 kB / 0.516 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.3178, allocations: 4.281 kB / 0.516 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.67e-05/0.3178, allocations: 7.531 kB / 0.516 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.01e-05/0.3178, allocations: 14.16 kB / 0.5161 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008652/0.3187, allocations: 0.7205 MB / 0.5168 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005531/0.3193, allocations: 0.6609 MB / 0.5174 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002779/0.3196, allocations: 401.9 kB / 0.5178 GB, free: 0.707 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.543e-05/0.3196, allocations: 113.2 kB / 0.5179 GB, free: 0.625 MB / 382.1 MB Notification: Performance of Backend: time 4.51e-07/0.3196, allocations: 0 / 0.5179 GB, free: 0.625 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.3212, allocations: 0.9163 MB / 0.5188 GB, free: 192 kB / 382.1 MB Notification: Performance of SimCode: time 0.0009044/0.3222, allocations: 0.9134 MB / 0.5197 GB, free: 15.45 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