Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001371/0.001372, allocations: 110.9 kB / 17.68 MB, free: 5.332 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.001606/0.001607, allocations: 192 kB / 18.62 MB, free: 4.41 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.367/1.367, allocations: 222.9 MB / 242.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1721/0.1721, allocations: 38.05 MB / 330.5 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001229, allocations: 61.72 kB / 400.3 MB, free: 33.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1106, allocations: 58.06 MB / 458.3 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003549/0.1142, allocations: 2.095 MB / 460.4 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002856/0.117, allocations: 2.039 MB / 462.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.144e-05/0.1171, allocations: 0 / 462.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.1173, allocations: 19.86 kB / 462.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.872e-05/0.1174, allocations: 27.83 kB / 462.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002276/0.1197, allocations: 0.8246 MB / 463.3 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001342/0.1198, allocations: 83.62 kB / 463.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.075e-05/0.1199, allocations: 8.172 kB / 463.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.658e-05/0.1199, allocations: 27.91 kB / 463.4 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.115e-05/0.12, allocations: 47.77 kB / 463.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.105e-05/0.12, allocations: 0 / 463.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00192/0.122, allocations: 1.404 MB / 464.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.811e-05/0.122, allocations: 23.92 kB / 464.9 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.466e-05/0.1221, allocations: 23.81 kB / 464.9 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00147/0.1236, allocations: 1.329 MB / 466.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1236, allocations: 0 / 466.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1236, allocations: 4 kB / 466.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1236, allocations: 0 / 466.3 MB, free: 15.32 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006961/0.1243, allocations: 0.5124 MB / 466.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.1244, allocations: 19.81 kB / 466.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.1244, allocations: 8.844 kB / 466.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001778/0.1246, allocations: 183.7 kB / 467 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.1246, allocations: 4 kB / 467 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.1246, allocations: 0 / 467 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/0.1248, allocations: 73.55 kB / 467.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.1248, allocations: 4 kB / 467.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.1248, allocations: 0 / 467.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.1248, allocations: 4 kB / 467.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.125, allocations: 31.98 kB / 467.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00016/0.1252, allocations: 177.4 kB / 467.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.1255, allocations: 58.56 kB / 467.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.726e-05/0.1255, allocations: 53.06 kB / 467.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.917e-06/0.1255, allocations: 0 / 467.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.1256, allocations: 42.44 kB / 467.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.62e-07/0.1256, allocations: 0 / 467.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003192/0.1259, allocations: 191.2 kB / 467.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.126, allocations: 89.09 kB / 467.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.831e-05/0.1261, allocations: 129.1 kB / 467.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.1261, allocations: 29.7 kB / 467.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.1261, allocations: 92.12 kB / 467.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.633e-05/0.1262, allocations: 39.45 kB / 468 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.261e-05/0.1262, allocations: 29.73 kB / 468 MB, free: 13.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1264, allocations: 322.8 kB / 468.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.137e-05/0.1264, allocations: 31.98 kB / 468.4 MB, free: 13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.847e-05/0.1265, allocations: 31.98 kB / 468.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.1266, allocations: 164.1 kB / 468.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1266, allocations: 4 kB / 468.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001806/0.1268, allocations: 155.2 kB / 468.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.308e-05/0.1269, allocations: 45.67 kB / 468.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1269, allocations: 4.062 kB / 468.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1269, allocations: 4 kB / 468.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.61e-07/0.1269, allocations: 0 / 468.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1269, allocations: 0 / 468.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.154e-05/0.127, allocations: 7.938 kB / 468.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.127, allocations: 4 kB / 468.8 MB, free: 12.55 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 0.0001459/0.1272, allocations: 167.5 kB / 468.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/0.1272, allocations: 7.906 kB / 468.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.808e-05/0.1272, allocations: 12.7 kB / 469 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1272, allocations: 4 kB / 469 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1272, allocations: 0 / 469 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1272, allocations: 0 / 469 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000144/0.1274, allocations: 185.4 kB / 469.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1274, allocations: 3.938 kB / 469.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.52e-07/0.1274, allocations: 4 kB / 469.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.1274, allocations: 0 / 469.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.1274, allocations: 8 kB / 469.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1274, allocations: 3.938 kB / 469.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1275, allocations: 0 / 469.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003249/0.1278, allocations: 287 kB / 469.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.689e-05/0.1278, allocations: 89 kB / 469.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.1279, allocations: 4 kB / 469.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.648e-05/0.1279, allocations: 0 / 469.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.549e-05/0.1279, allocations: 8 kB / 469.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.1279, allocations: 4 kB / 469.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.469e-05/0.128, allocations: 99.25 kB / 469.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.128, allocations: 0 / 469.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007612/0.1288, allocations: 331.9 kB / 470 MB, free: 11.25 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.0008971/0.1297, allocations: 374 kB / 470.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003755/0.1301, allocations: 303.2 kB / 470.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1301, allocations: 0 / 470.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002074/0.1303, allocations: 219.3 kB / 470.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.1306, allocations: 16.11 kB / 470.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005993/0.1312, allocations: 296.7 kB / 471.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.1315, allocations: 0.7078 MB / 471.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.461e-05/0.1316, allocations: 3.984 kB / 471.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.512e-05/0.1316, allocations: 11.44 kB / 471.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1316, allocations: 4 kB / 471.9 MB, free: 9.254 MB / 350.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].