Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001028/0.001028, allocations: 108.5 kB / 16.51 MB, free: 6.707 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.001131/0.001131, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.342/1.342, allocations: 222.9 MB / 241.1 MB, free: 13.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1738/0.1738, allocations: 38.03 MB / 329.3 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 61.62 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1166, allocations: 58.06 MB / 456.1 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003423/0.1201, allocations: 2.139 MB / 458.3 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003164/0.1232, allocations: 2.168 MB / 460.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.942e-05/0.1233, allocations: 3.938 kB / 460.5 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.1234, allocations: 11.98 kB / 460.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.074e-05/0.1236, allocations: 23.83 kB / 460.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001807/0.1254, allocations: 0.6897 MB / 461.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.1255, allocations: 123.6 kB / 461.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.905e-05/0.1256, allocations: 8.172 kB / 461.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.124e-05/0.1257, allocations: 27.91 kB / 461.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.234e-05/0.1258, allocations: 47.77 kB / 461.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.1258, allocations: 4 kB / 461.4 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001735/0.1275, allocations: 1.232 MB / 462.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.9e-05/0.1276, allocations: 15.92 kB / 462.6 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.23e-05/0.1277, allocations: 31.78 kB / 462.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001472/0.1291, allocations: 1.283 MB / 464 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1292, allocations: 0 / 464 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1292, allocations: 0 / 464 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.1292, allocations: 0 / 464 MB, free: 0.6797 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.0006395/0.1298, allocations: 0.5124 MB / 464.5 MB, free: 116 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1299, allocations: 8.031 kB / 464.5 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.335e-05/0.1299, allocations: 12.78 kB / 464.5 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002096/0.1301, allocations: 191.6 kB / 464.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.1302, allocations: 0 / 464.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.23e-05/0.1302, allocations: 4 kB / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001463/0.1303, allocations: 65.67 kB / 464.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1303, allocations: 0 / 464.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.1304, allocations: 3.938 kB / 464.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1304, allocations: 3.938 kB / 464.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.521e-05/0.1304, allocations: 31.98 kB / 464.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.1306, allocations: 177.5 kB / 465 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.983e-05/0.1307, allocations: 58.55 kB / 465 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.988e-05/0.1308, allocations: 52.88 kB / 465.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-06/0.1308, allocations: 0 / 465.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.1308, allocations: 34.55 kB / 465.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 8.82e-07/0.1308, allocations: 0 / 465.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003221/0.1312, allocations: 191.2 kB / 465.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.1312, allocations: 89.09 kB / 465.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.1313, allocations: 131.9 kB / 465.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.1314, allocations: 25.7 kB / 465.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.487e-05/0.1314, allocations: 100.2 kB / 465.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.963e-05/0.1315, allocations: 39.39 kB / 465.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-05/0.1315, allocations: 25.92 kB / 465.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1317, allocations: 322.8 kB / 466 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.104e-05/0.1317, allocations: 39.91 kB / 466 MB, free: 14.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.999e-05/0.1318, allocations: 27.98 kB / 466.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.1319, allocations: 164.5 kB / 466.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.132, allocations: 4 kB / 466.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00019/0.1322, allocations: 163.2 kB / 466.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.901e-05/0.1322, allocations: 49.69 kB / 466.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1322, allocations: 0 / 466.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.1322, allocations: 0 / 466.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.998e-06/0.1323, allocations: 3.984 kB / 466.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.1323, allocations: 0 / 466.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.636e-05/0.1323, allocations: 4 kB / 466.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.1323, allocations: 4 kB / 466.4 MB, free: 13.91 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.0001293/0.1325, allocations: 163.5 kB / 466.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.199e-05/0.1325, allocations: 15.94 kB / 466.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.865e-05/0.1325, allocations: 12.66 kB / 466.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-06/0.1325, allocations: 4 kB / 466.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1325, allocations: 0 / 466.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1326, allocations: 3.984 kB / 466.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001334/0.1327, allocations: 181.5 kB / 466.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1327, allocations: 3.938 kB / 466.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-07/0.1327, allocations: 0 / 466.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.1327, allocations: 0 / 466.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.1327, allocations: 4 kB / 466.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1327, allocations: 7.938 kB / 466.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1327, allocations: 0 / 466.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003581/0.1331, allocations: 286.6 kB / 467.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.998e-05/0.1332, allocations: 88.95 kB / 467.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.1332, allocations: 3.984 kB / 467.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.003e-05/0.1332, allocations: 4 kB / 467.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.59e-05/0.1333, allocations: 0 / 467.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.1333, allocations: 4 kB / 467.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.36e-05/0.1334, allocations: 107.3 kB / 467.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1334, allocations: 0 / 467.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000857/0.1342, allocations: 335.8 kB / 467.6 MB, free: 12.6 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.0009734/0.1352, allocations: 355 kB / 468 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003778/0.1356, allocations: 299.2 kB / 468.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1356, allocations: 4.062 kB / 468.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002216/0.1359, allocations: 223.3 kB / 468.5 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.0003071/0.1362, allocations: 14.69 kB / 468.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005314/0.1367, allocations: 330.5 kB / 468.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.1371, allocations: 0.7043 MB / 469.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.286e-05/0.1371, allocations: 0 / 469.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.409e-05/0.1371, allocations: 15.38 kB / 469.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1371, allocations: 0 / 469.6 MB, free: 10.6 MB / 350.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].