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.0008384/0.0008384, allocations: 95.47 kB / 16.3 MB, free: 5.996 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.000809/0.0008091, allocations: 182.4 kB / 17.2 MB, free: 5.914 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.162/1.162, allocations: 223.2 MB / 241.1 MB, free: 300 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.155/0.155, allocations: 38.08 MB / 330.3 MB, free: 8.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002774, allocations: 9.281 kB / 400 MB, free: 34.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09048, allocations: 59.16 MB / 459.1 MB, free: 7.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002169/0.0927, allocations: 1.752 MB / 460.9 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002558/0.09527, allocations: 1.901 MB / 462.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.22e-05/0.09533, allocations: 4 kB / 462.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.09553, allocations: 15.91 kB / 462.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.318e-05/0.09558, allocations: 15.97 kB / 462.8 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.09698, allocations: 0.5929 MB / 463.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.189e-05/0.09707, allocations: 39.94 kB / 463.4 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.665e-05/0.09712, allocations: 8.172 kB / 463.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.176e-05/0.0972, allocations: 27.84 kB / 463.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.503e-05/0.09726, allocations: 19.92 kB / 463.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.09728, allocations: 4 kB / 463.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001198/0.09848, allocations: 0.9827 MB / 464.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.09852, allocations: 11.92 kB / 464.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.366e-05/0.09856, allocations: 33.7 kB / 464.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008828/0.09945, allocations: 0.9008 MB / 465.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.09946, allocations: 0 / 465.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09947, allocations: 0 / 465.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.09947, allocations: 0 / 465.4 MB, free: 1.129 MB / 334.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.0004993/0.09998, allocations: 0.4968 MB / 465.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.1, allocations: 12.03 kB / 465.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.782e-05/0.1001, allocations: 0 / 465.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.1002, allocations: 190.8 kB / 466.1 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.1002, allocations: 0 / 466.1 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.1003, allocations: 8 kB / 466.1 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.1004, allocations: 53.67 kB / 466.2 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.691e-06/0.1004, allocations: 7.938 kB / 466.2 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.1004, allocations: 3.984 kB / 466.2 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1004, allocations: 0 / 466.2 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.204e-05/0.1005, allocations: 23.98 kB / 466.2 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001465/0.1006, allocations: 165.6 kB / 466.4 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.645e-05/0.1007, allocations: 46.5 kB / 466.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.1007, allocations: 8 kB / 466.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.1008, allocations: 34.59 kB / 466.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.1008, allocations: 0 / 466.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002812/0.101, allocations: 228.4 kB / 466.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.1011, allocations: 81.11 kB / 466.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.019e-05/0.1012, allocations: 132.8 kB / 466.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.1012, allocations: 25.7 kB / 466.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.923e-05/0.1013, allocations: 96.11 kB / 467 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.1013, allocations: 31.69 kB / 467.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.1013, allocations: 0 / 467.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1014, allocations: 322.8 kB / 467.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.233e-05/0.1015, allocations: 20 kB / 467.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.979e-05/0.1015, allocations: 27.92 kB / 467.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.539e-05/0.1016, allocations: 57.67 kB / 467.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1016, allocations: 0 / 467.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001391/0.1017, allocations: 131.2 kB / 467.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.1018, allocations: 44.19 kB / 467.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.1018, allocations: 4.062 kB / 467.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.1018, allocations: 7.984 kB / 467.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-07/0.1018, allocations: 0 / 467.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.1018, allocations: 0 / 467.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.318e-05/0.1018, allocations: 0 / 467.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.1019, allocations: 4 kB / 467.7 MB, free: 14.64 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.102, allocations: 155.5 kB / 467.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.521e-05/0.102, allocations: 15.8 kB / 467.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.446e-05/0.102, allocations: 12.36 kB / 467.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.102, allocations: 12 kB / 467.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.102, allocations: 0 / 467.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.102, allocations: 0 / 467.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.1022, allocations: 161.7 kB / 468 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1022, allocations: 0 / 468 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1022, allocations: 0 / 468 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.1022, allocations: 11.94 kB / 468 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.1022, allocations: 0 / 468 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1022, allocations: 0 / 468 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1022, allocations: 0 / 468 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.1024, allocations: 222.6 kB / 468.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/0.1025, allocations: 89 kB / 468.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.1025, allocations: 7.953 kB / 468.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.142e-05/0.1025, allocations: 0 / 468.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.831e-05/0.1026, allocations: 0 / 468.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.1026, allocations: 4 kB / 468.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.598e-05/0.1026, allocations: 95.27 kB / 468.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1026, allocations: 3.938 kB / 468.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000604/0.1032, allocations: 315.9 kB / 468.7 MB, free: 13.45 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000717/0.104, allocations: 364.5 kB / 469.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002254/0.1042, allocations: 195.3 kB / 469.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1042, allocations: 0 / 469.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.1043, allocations: 151.4 kB / 469.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.1045, allocations: 8.062 kB / 469.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003703/0.1049, allocations: 270.3 kB / 469.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.1051, allocations: 0.7043 MB / 470.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.858e-06/0.1052, allocations: 0 / 470.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.01e-05/0.1052, allocations: 7.438 kB / 470.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1052, allocations: 0 / 470.4 MB, free: 11.68 MB / 350.1 MB [CodegenCFunctions.tpl:5389:13-5389:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2]. [CodegenCFunctions.tpl:7266:14-7266:14:writable] Error: Template error: Code generation does not support multiple iterators: array(abs((v[:,fill(1, n)] - v[:,2:n + 1])[$i1, $i2]) for $i2 in 1:max(n + 1 - 2 + 1, 0), $i1 in 1:n).