Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007614/0.0007614, allocations: 90.72 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.0009115/0.0009114, allocations: 177 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.272/1.272, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1628/0.1628, allocations: 38.09 MB / 330.8 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002606, allocations: 8 kB / 400.7 MB, free: 34.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08821/0.08848, allocations: 59.16 MB / 459.9 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002185/0.09071, allocations: 1.811 MB / 461.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002658/0.09339, allocations: 2.133 MB / 463.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.68e-05/0.09344, allocations: 0 / 463.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.09356, allocations: 7.922 kB / 463.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.027e-05/0.09364, allocations: 27.83 kB / 463.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.09511, allocations: 0.6866 MB / 464.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001316/0.09526, allocations: 131.5 kB / 464.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.478e-05/0.09531, allocations: 8.172 kB / 464.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.636e-05/0.09538, allocations: 23.92 kB / 464.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.402e-05/0.09547, allocations: 55.75 kB / 464.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.34e-05/0.0955, allocations: 8 kB / 464.8 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001468/0.09697, allocations: 1.236 MB / 466 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.387e-05/0.09704, allocations: 47.83 kB / 466.1 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.081e-05/0.0971, allocations: 85.19 kB / 466.1 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001237/0.09835, allocations: 1.321 MB / 467.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.09836, allocations: 0 / 467.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.09837, allocations: 4 kB / 467.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.09838, allocations: 4 kB / 467.5 MB, free: 15.47 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006304/0.09902, allocations: 0.5824 MB / 468 MB, free: 14.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.09906, allocations: 8.031 kB / 468.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.795e-05/0.0991, allocations: 20.66 kB / 468.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.09928, allocations: 211.5 kB / 468.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.0993, allocations: 4 kB / 468.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.09931, allocations: 0 / 468.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.09951, allocations: 138.6 kB / 468.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.541e-06/0.09952, allocations: 0 / 468.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.09954, allocations: 4 kB / 468.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.09955, allocations: 0 / 468.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.981e-05/0.09965, allocations: 100.2 kB / 468.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001615/0.09982, allocations: 217.9 kB / 468.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.09999, allocations: 162.8 kB / 468.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.1001, allocations: 141.2 kB / 469 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.224e-06/0.1001, allocations: 0 / 469 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.1002, allocations: 38.55 kB / 469.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 8.41e-07/0.1002, allocations: 0 / 469.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005466/0.1007, allocations: 498.9 kB / 469.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/0.1008, allocations: 109.1 kB / 469.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.1009, allocations: 170.4 kB / 469.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.101, allocations: 25.7 kB / 469.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.039e-05/0.101, allocations: 108.8 kB / 470 MB, free: 12.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.179e-05/0.1011, allocations: 129.9 kB / 470.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.371e-05/0.1012, allocations: 29.7 kB / 470.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1013, allocations: 346.8 kB / 470.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.1014, allocations: 95.95 kB / 470.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.844e-05/0.1015, allocations: 96.95 kB / 470.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.1018, allocations: 380.3 kB / 471 MB, free: 11.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.1018, allocations: 0 / 471 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003322/0.1021, allocations: 342.9 kB / 471.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.643e-05/0.1022, allocations: 85.62 kB / 471.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1022, allocations: 0 / 471.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.1023, allocations: 0 / 471.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1023, allocations: 8.062 kB / 471.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.1023, allocations: 3.938 kB / 471.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.399e-05/0.1023, allocations: 15.84 kB / 471.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.1024, allocations: 8 kB / 471.5 MB, free: 11.2 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.0001854/0.1026, allocations: 235.4 kB / 471.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.1026, allocations: 23.72 kB / 471.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.512e-05/0.1026, allocations: 14.64 kB / 471.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.1026, allocations: 0 / 471.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1026, allocations: 0 / 471.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1026, allocations: 8 kB / 471.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.1028, allocations: 245.2 kB / 472 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1028, allocations: 0 / 472 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.693e-06/0.1028, allocations: 0 / 472 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1028, allocations: 3.938 kB / 472 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.1028, allocations: 8 kB / 472 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1029, allocations: 0 / 472 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1029, allocations: 0 / 472 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000871/0.1037, allocations: 0.916 MB / 472.9 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.354e-05/0.1038, allocations: 100.8 kB / 473 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.943e-05/0.1038, allocations: 8 kB / 473 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.342e-05/0.1039, allocations: 8 kB / 473 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.374e-05/0.1039, allocations: 11.94 kB / 473 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.1039, allocations: 8 kB / 473 MB, free: 9.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.509e-05/0.104, allocations: 123.2 kB / 473.2 MB, free: 9.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.104, allocations: 0 / 473.2 MB, free: 9.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006922/0.1047, allocations: 355.9 kB / 473.5 MB, free: 9.043 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.0008353/0.1056, allocations: 385.9 kB / 473.9 MB, free: 8.656 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.1068, allocations: 1.597 MB / 475.5 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1068, allocations: 0 / 475.5 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009387/0.1078, allocations: 1.366 MB / 476.9 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.108, allocations: 16 kB / 476.9 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008301/0.1088, allocations: 0.766 MB / 477.6 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.1092, allocations: 0.752 MB / 478.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.077e-05/0.1092, allocations: 0 / 478.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.268e-05/0.1092, allocations: 7.438 kB / 478.4 MB, free: 4.078 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1092, allocations: 0 / 478.4 MB, free: 4.078 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].