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.0007934/0.0007935, allocations: 91.48 kB / 16.3 MB, free: 6.457 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.0007897/0.0007898, allocations: 180.6 kB / 17.2 MB, free: 6.34 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.213/1.213, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2569/0.2569, allocations: 38.07 MB / 330.3 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002722/0.0002722, allocations: 8 kB / 400 MB, free: 9.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2385, allocations: 59.16 MB / 459.1 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.001989/0.2406, allocations: 1.794 MB / 460.9 MB, free: 28.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.2427, allocations: 1.899 MB / 462.8 MB, free: 27.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.903e-05/0.2428, allocations: 1.094 kB / 462.8 MB, free: 27.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.2429, allocations: 18.05 kB / 462.8 MB, free: 27.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.685e-05/0.243, allocations: 19.61 kB / 462.9 MB, free: 27.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.2443, allocations: 0.576 MB / 463.4 MB, free: 27.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.718e-05/0.2444, allocations: 56.77 kB / 463.5 MB, free: 27.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.132e-05/0.2445, allocations: 7.734 kB / 463.5 MB, free: 27.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.112e-05/0.2446, allocations: 35.11 kB / 463.5 MB, free: 27.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.373e-05/0.2446, allocations: 33.02 kB / 463.6 MB, free: 27.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.2446, allocations: 2.188 kB / 463.6 MB, free: 27.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001345/0.246, allocations: 0.9655 MB / 464.5 MB, free: 26.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.813e-05/0.246, allocations: 26.41 kB / 464.6 MB, free: 26.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.895e-05/0.2461, allocations: 39.39 kB / 464.6 MB, free: 26.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.2472, allocations: 0.9168 MB / 465.5 MB, free: 26.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.2473, allocations: 0 / 465.5 MB, free: 26.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2473, allocations: 0 / 465.5 MB, free: 26.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.2473, allocations: 1.25 kB / 465.5 MB, free: 26.77 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005876/0.2479, allocations: 0.5286 MB / 466 MB, free: 26.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.2479, allocations: 9.875 kB / 466 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.419e-05/0.248, allocations: 9.188 kB / 466.1 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.2481, allocations: 194.5 kB / 466.2 MB, free: 26.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.2481, allocations: 5.969 kB / 466.3 MB, free: 26.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.2481, allocations: 1.125 kB / 466.3 MB, free: 26.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.2483, allocations: 78.88 kB / 466.3 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.2483, allocations: 0.9688 kB / 466.3 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.2484, allocations: 0.5156 kB / 466.3 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.2484, allocations: 0.9688 kB / 466.3 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.248e-05/0.2484, allocations: 41.23 kB / 466.4 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001327/0.2486, allocations: 181.5 kB / 466.6 MB, free: 25.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.619e-05/0.2487, allocations: 79.47 kB / 466.6 MB, free: 25.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.919e-06/0.2487, allocations: 1.156 kB / 466.6 MB, free: 25.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.2487, allocations: 32.48 kB / 466.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 9.41e-07/0.2487, allocations: 0 / 466.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003816/0.2491, allocations: 300.4 kB / 467 MB, free: 25.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.2492, allocations: 87.53 kB / 467 MB, free: 25.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.2493, allocations: 160.2 kB / 467.2 MB, free: 25.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.2493, allocations: 29.64 kB / 467.2 MB, free: 25.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.468e-05/0.2493, allocations: 106.6 kB / 467.3 MB, free: 25.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.19e-05/0.2494, allocations: 49.73 kB / 467.4 MB, free: 25.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-06/0.2494, allocations: 0 / 467.4 MB, free: 25.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.276e-05/0.2495, allocations: 322.8 kB / 467.7 MB, free: 24.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.719e-05/0.2495, allocations: 41.03 kB / 467.7 MB, free: 24.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.135e-05/0.2496, allocations: 37.77 kB / 467.8 MB, free: 24.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.831e-05/0.2497, allocations: 85.73 kB / 467.9 MB, free: 24.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2497, allocations: 0 / 467.9 MB, free: 24.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001926/0.2499, allocations: 175.7 kB / 468 MB, free: 24.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.498e-05/0.2499, allocations: 54.95 kB / 468.1 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.2499, allocations: 0 / 468.1 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.2499, allocations: 4.641 kB / 468.1 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.2499, allocations: 1.625 kB / 468.1 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.25, allocations: 0 / 468.1 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.852e-05/0.25, allocations: 7.219 kB / 468.1 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.25, allocations: 5.062 kB / 468.1 MB, free: 24.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.0001005/0.2502, allocations: 168.5 kB / 468.3 MB, free: 24.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.865e-05/0.2502, allocations: 17.95 kB / 468.3 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.564e-05/0.2502, allocations: 14.67 kB / 468.3 MB, free: 24.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.2502, allocations: 0 / 468.3 MB, free: 24.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2502, allocations: 2.469 kB / 468.3 MB, free: 24.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.2502, allocations: 0 / 468.3 MB, free: 24.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.33e-05/0.2503, allocations: 194.7 kB / 468.5 MB, free: 24.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2503, allocations: 4.516 kB / 468.5 MB, free: 24.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.2503, allocations: 0 / 468.5 MB, free: 24.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.2503, allocations: 3.953 kB / 468.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.2504, allocations: 5.547 kB / 468.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2504, allocations: 0.6562 kB / 468.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2504, allocations: 0 / 468.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003079/0.2507, allocations: 293.1 kB / 468.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.763e-05/0.2507, allocations: 89.3 kB / 468.9 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/0.2507, allocations: 6.953 kB / 468.9 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.659e-05/0.2508, allocations: 2.344 kB / 468.9 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.989e-05/0.2508, allocations: 11.31 kB / 468.9 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.2508, allocations: 4.625 kB / 468.9 MB, free: 24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.959e-05/0.2509, allocations: 116.6 kB / 469 MB, free: 23.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2509, allocations: 7.969 kB / 469 MB, free: 23.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009463/0.2518, allocations: 325.3 kB / 469.3 MB, free: 23.87 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.0007869/0.2526, allocations: 353.5 kB / 469.7 MB, free: 23.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003521/0.253, allocations: 335.5 kB / 470 MB, free: 23.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.253, allocations: 64 / 470 MB, free: 23.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.2532, allocations: 258.9 kB / 470.3 MB, free: 23.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001775/0.2534, allocations: 14.8 kB / 470.3 MB, free: 23.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004624/0.2539, allocations: 390.4 kB / 470.7 MB, free: 23.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.254, allocations: 0.7151 MB / 471.4 MB, free: 22.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.372e-05/0.254, allocations: 2.5 kB / 471.4 MB, free: 22.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.021e-05/0.254, allocations: 9.656 kB / 471.4 MB, free: 22.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2541, allocations: 0 / 471.4 MB, free: 22.48 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).