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.0009904/0.0009904, allocations: 93.05 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.001039/0.001039, allocations: 184.6 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.21/1.21, allocations: 223.2 MB / 241.1 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2721/0.2721, allocations: 38.07 MB / 330.3 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002744, allocations: 8 kB / 400 MB, free: 9.262 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2335, allocations: 59.16 MB / 459.1 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.001923/0.2355, allocations: 1.759 MB / 460.9 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002267/0.2378, allocations: 1.893 MB / 462.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.648e-05/0.2378, allocations: 0 / 462.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.238, allocations: 18.97 kB / 462.8 MB, free: 27.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.367e-05/0.238, allocations: 26.55 kB / 462.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.2394, allocations: 0.5816 MB / 463.4 MB, free: 27.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.151e-05/0.2395, allocations: 41.25 kB / 463.4 MB, free: 27.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.114e-05/0.2395, allocations: 6.875 kB / 463.5 MB, free: 27.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.535e-05/0.2396, allocations: 29.86 kB / 463.5 MB, free: 27.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.464e-05/0.2397, allocations: 36.02 kB / 463.5 MB, free: 27.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.2397, allocations: 2.062 kB / 463.5 MB, free: 27.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001415/0.2411, allocations: 0.9799 MB / 464.5 MB, free: 27.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.031e-05/0.2412, allocations: 35.56 kB / 464.5 MB, free: 27.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.535e-05/0.2412, allocations: 38.95 kB / 464.6 MB, free: 27.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001239/0.2425, allocations: 0.9233 MB / 465.5 MB, free: 27.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.2425, allocations: 1.219 kB / 465.5 MB, free: 27.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2425, allocations: 0 / 465.5 MB, free: 27.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.2425, allocations: 0 / 465.5 MB, free: 27.21 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005276/0.243, allocations: 0.5507 MB / 466 MB, free: 26.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.2431, allocations: 8.781 kB / 466.1 MB, free: 26.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.875e-05/0.2431, allocations: 16.53 kB / 466.1 MB, free: 26.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.2433, allocations: 195.7 kB / 466.3 MB, free: 26.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.2433, allocations: 1.25 kB / 466.3 MB, free: 26.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.2433, allocations: 1.219 kB / 466.3 MB, free: 26.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.2435, allocations: 104.8 kB / 466.4 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.2435, allocations: 0 / 466.4 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.2435, allocations: 1.094 kB / 466.4 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.2435, allocations: 0 / 466.4 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.197e-05/0.2436, allocations: 61.39 kB / 466.4 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001256/0.2437, allocations: 200.3 kB / 466.6 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.2438, allocations: 109.3 kB / 466.7 MB, free: 26.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.2439, allocations: 0 / 466.7 MB, free: 26.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.2439, allocations: 32.52 kB / 466.8 MB, free: 26.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.072e-06/0.2439, allocations: 0 / 466.8 MB, free: 26.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004499/0.2443, allocations: 401.7 kB / 467.2 MB, free: 25.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.2444, allocations: 100.3 kB / 467.3 MB, free: 25.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.615e-05/0.2445, allocations: 155.1 kB / 467.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.2445, allocations: 27.02 kB / 467.4 MB, free: 25.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.372e-05/0.2446, allocations: 99.3 kB / 467.5 MB, free: 25.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.617e-05/0.2446, allocations: 86.73 kB / 467.6 MB, free: 25.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/0.2446, allocations: 0.875 kB / 467.6 MB, free: 25.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.653e-05/0.2447, allocations: 328.9 kB / 467.9 MB, free: 25.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.066e-05/0.2448, allocations: 61.28 kB / 468 MB, free: 25.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.979e-05/0.2448, allocations: 60.95 kB / 468.1 MB, free: 25.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.245, allocations: 125.8 kB / 468.2 MB, free: 25.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.245, allocations: 7.969 kB / 468.2 MB, free: 25.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002329/0.2452, allocations: 240.6 kB / 468.4 MB, free: 24.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.943e-05/0.2453, allocations: 64.36 kB / 468.5 MB, free: 24.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.2453, allocations: 0 / 468.5 MB, free: 24.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.2453, allocations: 2.109 kB / 468.5 MB, free: 24.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.2453, allocations: 0 / 468.5 MB, free: 24.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.2453, allocations: 0 / 468.5 MB, free: 24.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.276e-05/0.2454, allocations: 12.78 kB / 468.5 MB, free: 24.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.2454, allocations: 7.578 kB / 468.5 MB, free: 24.93 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.0001293/0.2455, allocations: 198.5 kB / 468.7 MB, free: 24.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.2456, allocations: 20.42 kB / 468.7 MB, free: 24.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.496e-05/0.2456, allocations: 14.59 kB / 468.7 MB, free: 24.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.2456, allocations: 0 / 468.7 MB, free: 24.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2456, allocations: 1.062 kB / 468.7 MB, free: 24.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.2456, allocations: 0 / 468.7 MB, free: 24.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.2457, allocations: 209.5 kB / 468.9 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.2457, allocations: 0 / 468.9 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.2457, allocations: 0 / 468.9 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.2457, allocations: 5.703 kB / 468.9 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.2458, allocations: 4.922 kB / 468.9 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.2458, allocations: 5.156 kB / 469 MB, free: 24.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2458, allocations: 0 / 469 MB, free: 24.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005307/0.2463, allocations: 0.5083 MB / 469.5 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.695e-05/0.2463, allocations: 89.8 kB / 469.6 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.615e-05/0.2464, allocations: 7.391 kB / 469.6 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.771e-05/0.2464, allocations: 4.438 kB / 469.6 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.726e-05/0.2465, allocations: 6.125 kB / 469.6 MB, free: 24.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.2465, allocations: 13.14 kB / 469.6 MB, free: 24.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.544e-05/0.2465, allocations: 118.4 kB / 469.7 MB, free: 24.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.102e-06/0.2465, allocations: 0 / 469.7 MB, free: 24.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008442/0.2474, allocations: 335.5 kB / 470 MB, free: 24.12 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.0007672/0.2482, allocations: 354.9 kB / 470.4 MB, free: 23.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000618/0.2488, allocations: 0.7128 MB / 471.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2488, allocations: 0 / 471.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003993/0.2492, allocations: 0.5714 MB / 471.7 MB, free: 23.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.2494, allocations: 7.844 kB / 471.7 MB, free: 23.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00062/0.25, allocations: 0.5034 MB / 472.2 MB, free: 23.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.2502, allocations: 0.734 MB / 472.9 MB, free: 22.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.192e-05/0.2502, allocations: 6.016 kB / 472.9 MB, free: 22.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.817e-06/0.2502, allocations: 12.28 kB / 472.9 MB, free: 22.38 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2502, allocations: 0 / 472.9 MB, free: 22.38 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).