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.00162/0.00162, allocations: 111.9 kB / 17.68 MB, free: 5.473 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.001953/0.001953, allocations: 192 kB / 18.62 MB, free: 4.543 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.542/1.542, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1771/0.1771, allocations: 38.04 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 69.34 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.097/0.09826, allocations: 58.07 MB / 458.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003279/0.1016, allocations: 2.09 MB / 460.4 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002715/0.1043, allocations: 2.043 MB / 462.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.315e-05/0.1044, allocations: 0 / 462.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.1045, allocations: 15.91 kB / 462.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.114e-05/0.1046, allocations: 27.84 kB / 462.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001905/0.1065, allocations: 0.8402 MB / 463.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.1067, allocations: 83.62 kB / 463.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.7e-05/0.1067, allocations: 4.188 kB / 463.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.253e-05/0.1068, allocations: 31.91 kB / 463.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.019e-05/0.1069, allocations: 51.75 kB / 463.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.1069, allocations: 4 kB / 463.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001731/0.1086, allocations: 1.407 MB / 464.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.463e-05/0.1087, allocations: 23.92 kB / 464.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.065e-05/0.1088, allocations: 47.61 kB / 465 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.1101, allocations: 1.345 MB / 466.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1101, allocations: 4 kB / 466.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1101, allocations: 0 / 466.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.1101, allocations: 0 / 466.3 MB, free: 15.27 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.0005759/0.1107, allocations: 0.5616 MB / 466.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.1107, allocations: 12.03 kB / 466.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.066e-05/0.1108, allocations: 12.75 kB / 466.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.111, allocations: 195.6 kB / 467.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.265e-06/0.111, allocations: 4 kB / 467.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.111, allocations: 0 / 467.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001811/0.1112, allocations: 104.5 kB / 467.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.1112, allocations: 3.938 kB / 467.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/0.1112, allocations: 0 / 467.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.1112, allocations: 0 / 467.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.88e-05/0.1113, allocations: 63.83 kB / 467.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001525/0.1115, allocations: 189.4 kB / 467.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.1116, allocations: 110.5 kB / 467.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.375e-05/0.1117, allocations: 88.86 kB / 467.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-06/0.1117, allocations: 0 / 467.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.1117, allocations: 34.56 kB / 467.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 8.91e-07/0.1117, allocations: 0 / 467.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004522/0.1122, allocations: 319.5 kB / 468 MB, free: 13.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.1122, allocations: 93.11 kB / 468.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.1124, allocations: 152.5 kB / 468.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.1124, allocations: 33.73 kB / 468.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.741e-05/0.1124, allocations: 104.5 kB / 468.4 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.599e-05/0.1125, allocations: 86.73 kB / 468.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.174e-05/0.1126, allocations: 25.7 kB / 468.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.1127, allocations: 330.8 kB / 468.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.063e-05/0.1127, allocations: 59.97 kB / 468.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.464e-05/0.1128, allocations: 63.97 kB / 468.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002142/0.113, allocations: 247.6 kB / 469.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.113, allocations: 4.031 kB / 469.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002498/0.1133, allocations: 243 kB / 469.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.038e-05/0.1134, allocations: 61.66 kB / 469.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.1134, allocations: 4 kB / 469.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.1134, allocations: 0 / 469.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.425e-06/0.1134, allocations: 0 / 469.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.1134, allocations: 3.938 kB / 469.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.103e-05/0.1135, allocations: 15.78 kB / 469.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.1135, allocations: 8 kB / 469.5 MB, free: 11.83 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.0001391/0.1136, allocations: 195.5 kB / 469.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.393e-05/0.1137, allocations: 15.91 kB / 469.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.625e-05/0.1137, allocations: 17.17 kB / 469.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1137, allocations: 0 / 469.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.1137, allocations: 0 / 469.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1137, allocations: 0 / 469.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.1139, allocations: 213.3 kB / 469.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.1139, allocations: 4 kB / 470 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1139, allocations: 0 / 470 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.1139, allocations: 0 / 470 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.1139, allocations: 11.98 kB / 470 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1139, allocations: 0 / 470 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1139, allocations: 0 / 470 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005183/0.1144, allocations: 0.5168 MB / 470.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.699e-05/0.1145, allocations: 96.84 kB / 470.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.1145, allocations: 4 kB / 470.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.916e-05/0.1146, allocations: 11.94 kB / 470.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-05/0.1146, allocations: 4 kB / 470.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.1146, allocations: 8.031 kB / 470.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.664e-05/0.1147, allocations: 111.2 kB / 470.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1147, allocations: 4 kB / 470.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007894/0.1155, allocations: 328 kB / 471 MB, free: 10.2 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.0008222/0.1163, allocations: 370 kB / 471.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008663/0.1172, allocations: 0.714 MB / 472.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.1172, allocations: 0 / 472.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005332/0.1178, allocations: 0.5735 MB / 472.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.118, allocations: 12 kB / 472.7 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007782/0.1188, allocations: 469.6 kB / 473.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.1191, allocations: 0.7279 MB / 473.9 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.306e-05/0.1192, allocations: 0 / 473.9 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.237e-05/0.1192, allocations: 11.44 kB / 473.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1192, allocations: 0 / 473.9 MB, free: 7.262 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].