Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007953/0.0007954, allocations: 91.22 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.0008693/0.0008694, allocations: 190.1 kB / 17.2 MB, free: 5.91 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.222/1.222, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2792/0.2792, allocations: 38.07 MB / 330.3 MB, free: 14.18 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002841/0.0002841, allocations: 8 kB / 400 MB, free: 9.262 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2597, allocations: 59.16 MB / 459.1 MB, free: 30.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.001981/0.2618, allocations: 1.759 MB / 460.9 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.2641, allocations: 1.9 MB / 462.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.085e-05/0.2641, allocations: 0 / 462.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.2643, allocations: 11.19 kB / 462.8 MB, free: 27.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.456e-05/0.2643, allocations: 18.41 kB / 462.8 MB, free: 27.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001534/0.2659, allocations: 0.5886 MB / 463.4 MB, free: 27.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.633e-05/0.2659, allocations: 44.8 kB / 463.4 MB, free: 27.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.037e-05/0.266, allocations: 4.172 kB / 463.4 MB, free: 27.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.372e-05/0.2661, allocations: 29.36 kB / 463.5 MB, free: 27.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.007e-05/0.2662, allocations: 43.55 kB / 463.5 MB, free: 27.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.2662, allocations: 3.438 kB / 463.5 MB, free: 27.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001627/0.2678, allocations: 0.9834 MB / 464.5 MB, free: 27.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.315e-05/0.2679, allocations: 42.36 kB / 464.5 MB, free: 27.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.508e-05/0.2679, allocations: 38.8 kB / 464.6 MB, free: 27.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001338/0.2693, allocations: 0.9449 MB / 465.5 MB, free: 27.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.2693, allocations: 0 / 465.5 MB, free: 27.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2693, allocations: 5.25 kB / 465.5 MB, free: 27.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.2693, allocations: 0 / 465.5 MB, free: 27.17 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005687/0.2699, allocations: 0.5909 MB / 466.1 MB, free: 26.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.2699, allocations: 10.25 kB / 466.1 MB, free: 26.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.213e-05/0.27, allocations: 18.06 kB / 466.2 MB, free: 26.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.2701, allocations: 214.5 kB / 466.4 MB, free: 26.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.2702, allocations: 1.375 kB / 466.4 MB, free: 26.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.2702, allocations: 5.328 kB / 466.4 MB, free: 26.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002197/0.2704, allocations: 135.6 kB / 466.5 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.2704, allocations: 4.703 kB / 466.5 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.2704, allocations: 1.312 kB / 466.5 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.2705, allocations: 0 / 466.5 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000119/0.2706, allocations: 99.81 kB / 466.6 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.2707, allocations: 202.6 kB / 466.8 MB, free: 26.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.2709, allocations: 167 kB / 467 MB, free: 26.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/0.2709, allocations: 0 / 467 MB, free: 26.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.271, allocations: 36.69 kB / 467 MB, free: 25.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 8.11e-07/0.271, allocations: 0 / 467 MB, free: 25.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008602/0.2718, allocations: 0.5755 MB / 467.6 MB, free: 25.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.2719, allocations: 108.7 kB / 467.7 MB, free: 25.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.2721, allocations: 167.7 kB / 467.8 MB, free: 25.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.2721, allocations: 26.98 kB / 467.9 MB, free: 25.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.313e-05/0.2721, allocations: 112 kB / 468 MB, free: 25.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.2722, allocations: 126.6 kB / 468.1 MB, free: 25.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/0.2723, allocations: 3.938 kB / 468.1 MB, free: 25.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.938e-05/0.2724, allocations: 337.9 kB / 468.4 MB, free: 24.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.2725, allocations: 98.95 kB / 468.5 MB, free: 24.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.2727, allocations: 95.44 kB / 468.6 MB, free: 24.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002568/0.2729, allocations: 187.8 kB / 468.8 MB, free: 24.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.273, allocations: 1.156 kB / 468.8 MB, free: 24.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004234/0.2734, allocations: 334.3 kB / 469.1 MB, free: 24.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.633e-05/0.2735, allocations: 90.5 kB / 469.2 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2735, allocations: 1.062 kB / 469.2 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2735, allocations: 0 / 469.2 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.744e-06/0.2735, allocations: 5.25 kB / 469.2 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.2735, allocations: 4.703 kB / 469.2 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.881e-05/0.2736, allocations: 24.16 kB / 469.3 MB, free: 24.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.2737, allocations: 8.719 kB / 469.3 MB, free: 24.65 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.0002146/0.2739, allocations: 233.9 kB / 469.5 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.38e-05/0.2739, allocations: 29.73 kB / 469.5 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.429e-05/0.274, allocations: 13.53 kB / 469.5 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.274, allocations: 3.938 kB / 469.5 MB, free: 24.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.274, allocations: 1.25 kB / 469.5 MB, free: 24.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.274, allocations: 4 kB / 469.6 MB, free: 24.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.2742, allocations: 236.5 kB / 469.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2742, allocations: 1.828 kB / 469.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.2742, allocations: 0 / 469.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2742, allocations: 3.953 kB / 469.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.2742, allocations: 8.516 kB / 469.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.2742, allocations: 0.75 kB / 469.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.2743, allocations: 1.188 kB / 469.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.2754, allocations: 0.9157 MB / 470.7 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.976e-05/0.2754, allocations: 107.9 kB / 470.8 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.63e-05/0.2755, allocations: 9.938 kB / 470.8 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.243e-05/0.2755, allocations: 5.906 kB / 470.8 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.825e-05/0.2756, allocations: 4.094 kB / 470.8 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.2756, allocations: 9.328 kB / 470.8 MB, free: 23.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.894e-05/0.2757, allocations: 129.1 kB / 471 MB, free: 23.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2757, allocations: 0 / 471 MB, free: 23.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001362/0.2771, allocations: 350 kB / 471.3 MB, free: 23.74 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.0008441/0.2779, allocations: 374.2 kB / 471.7 MB, free: 23.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.2793, allocations: 1.589 MB / 473.3 MB, free: 22.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2793, allocations: 0 / 473.3 MB, free: 22.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009898/0.2803, allocations: 1.372 MB / 474.6 MB, free: 21.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.2805, allocations: 17.19 kB / 474.7 MB, free: 21.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000885/0.2814, allocations: 0.7325 MB / 475.4 MB, free: 21.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.2816, allocations: 0.762 MB / 476.2 MB, free: 20.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.417e-05/0.2817, allocations: 1.672 kB / 476.2 MB, free: 20.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.188e-05/0.2817, allocations: 13.59 kB / 476.2 MB, free: 20.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2817, allocations: 0 / 476.2 MB, free: 20.94 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).