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.0017/0.0017, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001947/0.001947, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.33/1.33, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1677/0.1677, allocations: 38.03 MB / 329.7 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 60.11 kB / 398.8 MB, free: 34.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1106, allocations: 58.06 MB / 456.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.004407/0.1151, allocations: 2.098 MB / 459 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003517/0.1186, allocations: 2.039 MB / 461 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.492e-05/0.1187, allocations: 0 / 461 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.1189, allocations: 11.92 kB / 461 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.1191, allocations: 31.81 kB / 461 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002556/0.1216, allocations: 0.8516 MB / 461.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001544/0.1218, allocations: 75.7 kB / 462 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.966e-05/0.1219, allocations: 8.109 kB / 462 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.695e-05/0.122, allocations: 31.91 kB / 462 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.655e-05/0.1221, allocations: 43.77 kB / 462 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.1221, allocations: 0 / 462 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001918/0.124, allocations: 1.252 MB / 463.3 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.487e-05/0.1241, allocations: 15.86 kB / 463.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.012e-05/0.1241, allocations: 23.88 kB / 463.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00177/0.1259, allocations: 1.314 MB / 464.7 MB, free: 288 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.1259, allocations: 0 / 464.7 MB, free: 288 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1259, allocations: 0 / 464.7 MB, free: 288 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1259, allocations: 0 / 464.7 MB, free: 288 kB / 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.0007352/0.1267, allocations: 0.497 MB / 465.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1267, allocations: 15.89 kB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.612e-05/0.1268, allocations: 8.844 kB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.1269, allocations: 203.4 kB / 465.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.127, allocations: 4 kB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.127, allocations: 0 / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.1271, allocations: 53.69 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.1271, allocations: 0 / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.1271, allocations: 0 / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.1271, allocations: 0 / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.517e-05/0.1272, allocations: 19.98 kB / 465.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001386/0.1273, allocations: 169.6 kB / 465.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.296e-05/0.1274, allocations: 50.5 kB / 465.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.853e-05/0.1275, allocations: 36.88 kB / 465.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.789e-06/0.1275, allocations: 0 / 465.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.1275, allocations: 30.56 kB / 465.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.51e-07/0.1275, allocations: 0 / 465.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002534/0.1278, allocations: 147.3 kB / 465.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.1278, allocations: 89.05 kB / 466 MB, free: 14.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.419e-05/0.1279, allocations: 128.9 kB / 466.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.128, allocations: 25.7 kB / 466.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.952e-05/0.128, allocations: 96.12 kB / 466.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.731e-05/0.128, allocations: 23.56 kB / 466.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.255e-05/0.1281, allocations: 25.64 kB / 466.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.59e-05/0.1282, allocations: 322.8 kB / 466.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.623e-05/0.1282, allocations: 19.98 kB / 466.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.26e-05/0.1283, allocations: 23.98 kB / 466.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.1284, allocations: 124.4 kB / 466.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1284, allocations: 3.984 kB / 466.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001472/0.1286, allocations: 131.2 kB / 466.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.768e-05/0.1286, allocations: 41.69 kB / 466.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-06/0.1286, allocations: 0 / 466.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.1286, allocations: 4 kB / 466.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.1286, allocations: 0 / 466.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1286, allocations: 0 / 466.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.633e-05/0.1287, allocations: 0 / 466.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.1287, allocations: 4 kB / 466.9 MB, free: 13.75 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.802e-05/0.1288, allocations: 171.4 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.1288, allocations: 7.906 kB / 467.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.472e-05/0.1289, allocations: 4.375 kB / 467.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1289, allocations: 0 / 467.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.1289, allocations: 4 kB / 467.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1289, allocations: 3.984 kB / 467.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.129, allocations: 169.6 kB / 467.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.129, allocations: 0 / 467.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.083e-06/0.129, allocations: 4 kB / 467.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.129, allocations: 4 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.129, allocations: 4 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.129, allocations: 0 / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.129, allocations: 0 / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000255/0.1293, allocations: 222.5 kB / 467.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.388e-05/0.1294, allocations: 88.95 kB / 467.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.1294, allocations: 0 / 467.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.483e-05/0.1294, allocations: 4 kB / 467.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.978e-05/0.1294, allocations: 8.031 kB / 467.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.1295, allocations: 7.984 kB / 467.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.03e-05/0.1295, allocations: 95.27 kB / 467.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1295, allocations: 0 / 467.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000812/0.1303, allocations: 312 kB / 468 MB, free: 12.55 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001005/0.1313, allocations: 374 kB / 468.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002534/0.1316, allocations: 207.6 kB / 468.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1316, allocations: 3.938 kB / 468.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.1318, allocations: 147.4 kB / 468.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.132, allocations: 18.91 kB / 468.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000432/0.1325, allocations: 236.4 kB / 469 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.1327, allocations: 0.6963 MB / 469.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.139e-05/0.1327, allocations: 0 / 469.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.4e-05/0.1327, allocations: 7.438 kB / 469.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1327, allocations: 0 / 469.7 MB, free: 10.81 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].