Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007588/0.0007589, allocations: 95.23 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.0008797/0.0008798, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.262/1.262, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1658/0.1658, allocations: 38.08 MB / 330.8 MB, free: 8.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002812/0.000281, allocations: 8 kB / 400.7 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09267/0.09297, allocations: 59.16 MB / 459.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002187/0.09519, allocations: 1.814 MB / 461.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002754/0.09797, allocations: 2.129 MB / 463.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.93e-05/0.09803, allocations: 0 / 463.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.09815, allocations: 7.922 kB / 463.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.862e-05/0.09825, allocations: 35.81 kB / 463.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001659/0.09992, allocations: 0.6827 MB / 464.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.1001, allocations: 127.5 kB / 464.7 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.054e-05/0.1001, allocations: 4.188 kB / 464.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.246e-05/0.1002, allocations: 23.92 kB / 464.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.018e-05/0.1003, allocations: 55.75 kB / 464.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.1003, allocations: 4 kB / 464.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001678/0.102, allocations: 1.24 MB / 466 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.979e-05/0.102, allocations: 27.92 kB / 466 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.974e-05/0.1021, allocations: 69.31 kB / 466.1 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001483/0.1036, allocations: 1.298 MB / 467.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1036, allocations: 0 / 467.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1036, allocations: 0 / 467.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1036, allocations: 0 / 467.4 MB, free: 15.48 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006915/0.1043, allocations: 0.5475 MB / 467.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.1044, allocations: 8.031 kB / 468 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.1044, allocations: 12.75 kB / 468 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.1046, allocations: 203.6 kB / 468.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-06/0.1046, allocations: 0 / 468.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.587e-05/0.1046, allocations: 8 kB / 468.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001509/0.1048, allocations: 93.59 kB / 468.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.1048, allocations: 7.875 kB / 468.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1048, allocations: 0 / 468.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.1048, allocations: 0 / 468.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.361e-05/0.1049, allocations: 71.83 kB / 468.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000174/0.1051, allocations: 193.4 kB / 468.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001062/0.1052, allocations: 102.5 kB / 468.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.938e-05/0.1053, allocations: 84.86 kB / 468.7 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.083e-06/0.1053, allocations: 0 / 468.7 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.1053, allocations: 38.5 kB / 468.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 8.32e-07/0.1053, allocations: 0 / 468.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.000391/0.1057, allocations: 321.5 kB / 469.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.1058, allocations: 93.09 kB / 469.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.1059, allocations: 161.4 kB / 469.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.1059, allocations: 25.7 kB / 469.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.463e-05/0.106, allocations: 100.6 kB / 469.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.086e-05/0.106, allocations: 70.83 kB / 469.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.912e-05/0.1061, allocations: 21.7 kB / 469.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.1062, allocations: 330.8 kB / 469.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.094e-05/0.1063, allocations: 64 kB / 469.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.059e-05/0.1063, allocations: 63.97 kB / 470 MB, free: 12.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.1066, allocations: 252.1 kB / 470.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1066, allocations: 0 / 470.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002404/0.1068, allocations: 242.5 kB / 470.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.682e-05/0.1069, allocations: 65.66 kB / 470.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.1069, allocations: 0 / 470.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.1069, allocations: 0 / 470.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.1069, allocations: 0 / 470.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.1069, allocations: 0 / 470.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.466e-05/0.107, allocations: 15.91 kB / 470.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.107, allocations: 8 kB / 470.5 MB, free: 12.07 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.0001404/0.1072, allocations: 195.4 kB / 470.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.1072, allocations: 19.8 kB / 470.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.601e-05/0.1072, allocations: 13.19 kB / 470.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.1072, allocations: 0 / 470.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1072, allocations: 4 kB / 470.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1072, allocations: 0 / 470.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.1074, allocations: 209.4 kB / 471 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1074, allocations: 11.92 kB / 471 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1074, allocations: 0 / 471 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.1074, allocations: 0 / 471 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.1074, allocations: 4 kB / 471 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1074, allocations: 0 / 471 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1074, allocations: 3.938 kB / 471 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005202/0.1079, allocations: 0.5178 MB / 471.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.158e-05/0.108, allocations: 96.84 kB / 471.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.108, allocations: 8.031 kB / 471.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.822e-05/0.1081, allocations: 4 kB / 471.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.265e-05/0.1081, allocations: 8 kB / 471.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.1081, allocations: 4 kB / 471.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.191e-05/0.1082, allocations: 118.7 kB / 471.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1082, allocations: 0 / 471.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008709/0.1091, allocations: 339.9 kB / 472.1 MB, free: 10.43 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.001085/0.1102, allocations: 373.9 kB / 472.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000678/0.1109, allocations: 0.7139 MB / 473.2 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1109, allocations: 4 kB / 473.2 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004831/0.1114, allocations: 0.5696 MB / 473.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/0.1116, allocations: 8 kB / 473.7 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006856/0.1123, allocations: 0.5272 MB / 474.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.1125, allocations: 0.7241 MB / 475 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.489e-05/0.1126, allocations: 7.984 kB / 475 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.093e-05/0.1126, allocations: 7.438 kB / 475 MB, free: 7.422 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1126, allocations: 0 / 475 MB, free: 7.422 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].