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.001458/0.001458, allocations: 105.8 kB / 16.62 MB, free: 6.812 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.001774/0.001774, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.455/1.455, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1766/0.1766, allocations: 38.04 MB / 329.4 MB, free: 9.047 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 67.02 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09154/0.09285, allocations: 58.06 MB / 456.3 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003632/0.09652, allocations: 2.139 MB / 458.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002815/0.09937, allocations: 2.053 MB / 460.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.031e-05/0.09944, allocations: 3.938 kB / 460.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.09959, allocations: 7.984 kB / 460.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.968e-05/0.09968, allocations: 27.83 kB / 460.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002083/0.1018, allocations: 0.7531 MB / 461.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.1019, allocations: 75.7 kB / 461.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.987e-05/0.102, allocations: 8.172 kB / 461.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.656e-05/0.102, allocations: 35.91 kB / 461.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.405e-05/0.1021, allocations: 51.7 kB / 461.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.058e-05/0.1022, allocations: 0 / 461.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.1039, allocations: 1.259 MB / 462.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.041e-05/0.104, allocations: 19.92 kB / 462.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.902e-05/0.104, allocations: 27.81 kB / 462.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001821/0.1059, allocations: 1.247 MB / 464.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1059, allocations: 0 / 464.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1059, allocations: 4 kB / 464.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1059, allocations: 0 / 464.1 MB, free: 0.6875 MB / 334.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.0008514/0.1068, allocations: 0.5202 MB / 464.6 MB, free: 116 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1068, allocations: 11.89 kB / 464.6 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.248e-05/0.1069, allocations: 8.844 kB / 464.6 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002367/0.1071, allocations: 183.7 kB / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.1071, allocations: 0 / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.623e-05/0.1071, allocations: 4 kB / 464.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001614/0.1073, allocations: 65.67 kB / 464.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1073, allocations: 0 / 464.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.1073, allocations: 4 kB / 464.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.1074, allocations: 3.938 kB / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.831e-05/0.1074, allocations: 27.98 kB / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001585/0.1076, allocations: 181.4 kB / 465.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.031e-05/0.1077, allocations: 62.53 kB / 465.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.827e-05/0.1077, allocations: 49.09 kB / 465.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.253e-06/0.1078, allocations: 7.938 kB / 465.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.1078, allocations: 30.56 kB / 465.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.002e-06/0.1078, allocations: 0 / 465.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003226/0.1081, allocations: 199.2 kB / 465.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.515e-05/0.1082, allocations: 85.11 kB / 465.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.1083, allocations: 127.9 kB / 465.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.1083, allocations: 25.7 kB / 465.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.449e-05/0.1084, allocations: 96.12 kB / 465.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.572e-05/0.1085, allocations: 35.5 kB / 465.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.151e-05/0.1085, allocations: 25.7 kB / 465.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1086, allocations: 326.8 kB / 466.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.161e-05/0.1087, allocations: 31.98 kB / 466.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.462e-05/0.1087, allocations: 32.31 kB / 466.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.1089, allocations: 168.1 kB / 466.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1089, allocations: 0 / 466.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001893/0.1091, allocations: 155.2 kB / 466.5 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.492e-05/0.1092, allocations: 53.67 kB / 466.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.1092, allocations: 4.062 kB / 466.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.1092, allocations: 0 / 466.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.1092, allocations: 3.938 kB / 466.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1092, allocations: 4 kB / 466.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.363e-05/0.1093, allocations: 3.938 kB / 466.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/0.1093, allocations: 4 kB / 466.6 MB, free: 13.92 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.0001214/0.1094, allocations: 163.5 kB / 466.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.013e-05/0.1095, allocations: 11.91 kB / 466.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.182e-05/0.1095, allocations: 20.7 kB / 466.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.1095, allocations: 0 / 466.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.1095, allocations: 0 / 466.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1095, allocations: 0 / 466.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.1096, allocations: 181.5 kB / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1096, allocations: 0 / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-07/0.1097, allocations: 0 / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.1097, allocations: 4 kB / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/0.1097, allocations: 11.92 kB / 466.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.1097, allocations: 3.938 kB / 466.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1097, allocations: 0 / 466.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.11, allocations: 290.6 kB / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.188e-05/0.1101, allocations: 85.02 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.1101, allocations: 0 / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.136e-05/0.1101, allocations: 4 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.046e-05/0.1102, allocations: 4 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.1102, allocations: 0 / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.229e-05/0.1103, allocations: 107.2 kB / 467.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1103, allocations: 0 / 467.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008969/0.1112, allocations: 327.9 kB / 467.7 MB, free: 12.62 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.001113/0.1123, allocations: 375.9 kB / 468.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003446/0.1127, allocations: 299.2 kB / 468.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1127, allocations: 0 / 468.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001985/0.1129, allocations: 227.4 kB / 468.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.1131, allocations: 12 kB / 468.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005251/0.1137, allocations: 324.8 kB / 469 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.114, allocations: 0.7117 MB / 469.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.446e-05/0.114, allocations: 3.938 kB / 469.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.928e-05/0.114, allocations: 7.438 kB / 469.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.114, allocations: 0 / 469.7 MB, free: 10.61 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].