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.0007539/0.0007539, allocations: 89.78 kB / 16.65 MB, free: 6.535 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.0009031/0.0009032, allocations: 172.9 kB / 17.56 MB, free: 6.184 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.244/1.244, allocations: 223.2 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1566/0.1566, allocations: 38.09 MB / 330.8 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000268/0.000268, allocations: 9.812 kB / 400.7 MB, free: 34.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09729, allocations: 59.16 MB / 459.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002184/0.09952, allocations: 1.807 MB / 461.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002812/0.1024, allocations: 2.125 MB / 463.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.44e-05/0.1024, allocations: 0 / 463.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.1026, allocations: 15.92 kB / 463.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.774e-05/0.1026, allocations: 23.83 kB / 463.9 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.1044, allocations: 0.6897 MB / 464.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001356/0.1046, allocations: 123.6 kB / 464.7 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.138e-05/0.1046, allocations: 4.188 kB / 464.7 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.786e-05/0.1047, allocations: 27.84 kB / 464.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.547e-05/0.1048, allocations: 51.77 kB / 464.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.1048, allocations: 4 kB / 464.8 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001684/0.1065, allocations: 1.232 MB / 466 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.261e-05/0.1066, allocations: 15.92 kB / 466 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.011e-05/0.1066, allocations: 53.5 kB / 466 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001643/0.1083, allocations: 1.279 MB / 467.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1083, allocations: 0 / 467.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1083, allocations: 4 kB / 467.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.1083, allocations: 0 / 467.3 MB, free: 15.61 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.0007864/0.1091, allocations: 0.5047 MB / 467.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.1092, allocations: 12.03 kB / 467.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.903e-05/0.1092, allocations: 4.844 kB / 467.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.1094, allocations: 199.4 kB / 468 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.1094, allocations: 0 / 468 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.1094, allocations: 3.938 kB / 468.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001447/0.1096, allocations: 65.67 kB / 468.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1096, allocations: 4 kB / 468.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.1096, allocations: 0 / 468.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.1096, allocations: 0 / 468.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.246e-05/0.1097, allocations: 31.98 kB / 468.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001493/0.1099, allocations: 173.6 kB / 468.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.358e-05/0.1099, allocations: 66.48 kB / 468.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.584e-05/0.11, allocations: 44.88 kB / 468.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.11, allocations: 224 / 468.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.1101, allocations: 38.56 kB / 468.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.02e-07/0.1101, allocations: 3.938 kB / 468.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.000308/0.1104, allocations: 187.2 kB / 468.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.1104, allocations: 93.03 kB / 468.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.1105, allocations: 135.9 kB / 468.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.1106, allocations: 25.7 kB / 468.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.639e-05/0.1106, allocations: 92.14 kB / 469 MB, free: 13.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.75e-05/0.1107, allocations: 43.42 kB / 469 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.388e-05/0.1107, allocations: 21.7 kB / 469.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1108, allocations: 322.8 kB / 469.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.601e-05/0.1109, allocations: 31.97 kB / 469.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.836e-05/0.1109, allocations: 31.98 kB / 469.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.1111, allocations: 160.2 kB / 469.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1111, allocations: 3.984 kB / 469.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001737/0.1113, allocations: 155.7 kB / 469.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.775e-05/0.1113, allocations: 41.69 kB / 469.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1113, allocations: 12 kB / 469.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.1114, allocations: 0 / 469.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.786e-06/0.1114, allocations: 3.984 kB / 469.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.1114, allocations: 0 / 469.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.374e-05/0.1114, allocations: 4 kB / 469.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.1115, allocations: 4 kB / 469.8 MB, free: 12.86 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.0001299/0.1116, allocations: 167.5 kB / 470 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.775e-05/0.1116, allocations: 11.81 kB / 470 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.793e-05/0.1116, allocations: 12.72 kB / 470 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.1116, allocations: 4 kB / 470 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1117, allocations: 3.984 kB / 470 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.1117, allocations: 0 / 470 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.1118, allocations: 177.6 kB / 470.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1118, allocations: 4 kB / 470.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1118, allocations: 0 / 470.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1118, allocations: 0 / 470.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.1118, allocations: 7.938 kB / 470.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1118, allocations: 0 / 470.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1118, allocations: 3.938 kB / 470.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003161/0.1122, allocations: 298.4 kB / 470.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.93e-05/0.1122, allocations: 84.95 kB / 470.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.1122, allocations: 11.98 kB / 470.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.811e-05/0.1123, allocations: 0 / 470.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.978e-05/0.1123, allocations: 4 kB / 470.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.1123, allocations: 4 kB / 470.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.763e-05/0.1124, allocations: 105.5 kB / 470.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1124, allocations: 4 kB / 470.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008712/0.1133, allocations: 331.9 kB / 471 MB, free: 11.54 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.001039/0.1143, allocations: 362 kB / 471.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000314/0.1146, allocations: 299.3 kB / 471.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1147, allocations: 0 / 471.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.1148, allocations: 219.3 kB / 471.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002478/0.1151, allocations: 16.06 kB / 471.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004683/0.1156, allocations: 338.9 kB / 472.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.1159, allocations: 0.716 MB / 472.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.144e-05/0.1159, allocations: 0 / 472.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.766e-05/0.1159, allocations: 7.438 kB / 472.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1159, allocations: 0 / 472.9 MB, free: 9.527 MB / 350.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].