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.001363/0.001364, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001502/0.001502, allocations: 191 kB / 18.63 MB, free: 4.367 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.395/1.395, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1742/0.1742, allocations: 38.04 MB / 330.5 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001256, allocations: 67.12 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1022, allocations: 58.06 MB / 458.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003681/0.1059, allocations: 2.098 MB / 460.4 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003107/0.1091, allocations: 2.039 MB / 462.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.827e-05/0.1091, allocations: 0 / 462.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.1093, allocations: 15.86 kB / 462.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.61e-05/0.1094, allocations: 31.83 kB / 462.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002074/0.1115, allocations: 0.8419 MB / 463.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.1116, allocations: 79.69 kB / 463.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.034e-05/0.1117, allocations: 4.188 kB / 463.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.686e-05/0.1117, allocations: 35.84 kB / 463.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.324e-05/0.1118, allocations: 47.81 kB / 463.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.1119, allocations: 4 kB / 463.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001912/0.1138, allocations: 1.411 MB / 464.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.816e-05/0.1139, allocations: 43.84 kB / 465 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.773e-05/0.1139, allocations: 51.48 kB / 465 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001905/0.1158, allocations: 1.384 MB / 466.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1158, allocations: 0 / 466.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1159, allocations: 4 kB / 466.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.1159, allocations: 0 / 466.4 MB, free: 15.2 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.0007635/0.1166, allocations: 0.5941 MB / 467 MB, free: 14.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1167, allocations: 15.83 kB / 467 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.487e-05/0.1167, allocations: 24.66 kB / 467 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.1169, allocations: 220 kB / 467.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-06/0.117, allocations: 0 / 467.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.117, allocations: 3.984 kB / 467.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002018/0.1172, allocations: 142.5 kB / 467.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.1172, allocations: 0 / 467.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.1172, allocations: 4 kB / 467.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.1172, allocations: 0 / 467.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.1174, allocations: 100.3 kB / 467.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001808/0.1175, allocations: 210 kB / 467.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.1177, allocations: 158.9 kB / 467.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.1179, allocations: 145.2 kB / 468 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.073e-06/0.1179, allocations: 0 / 468 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.1179, allocations: 42.5 kB / 468 MB, free: 13.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 9.22e-07/0.1179, allocations: 0 / 468 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006094/0.1185, allocations: 490.8 kB / 468.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/0.1186, allocations: 113.1 kB / 468.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1188, allocations: 166.4 kB / 468.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.1188, allocations: 29.7 kB / 468.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.667e-05/0.1189, allocations: 104.8 kB / 468.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.333e-05/0.119, allocations: 126.1 kB / 469.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-05/0.119, allocations: 37.7 kB / 469.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1191, allocations: 338.8 kB / 469.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.1192, allocations: 95.95 kB / 469.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.552e-05/0.1193, allocations: 100.9 kB / 469.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.1197, allocations: 384.2 kB / 470 MB, free: 11.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1197, allocations: 0 / 470 MB, free: 11.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003581/0.1201, allocations: 338.9 kB / 470.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.637e-05/0.1201, allocations: 89.62 kB / 470.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.1202, allocations: 0 / 470.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.1202, allocations: 0 / 470.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.1202, allocations: 0 / 470.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1202, allocations: 0 / 470.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.231e-05/0.1203, allocations: 31.56 kB / 470.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.716e-05/0.1203, allocations: 16.05 kB / 470.5 MB, free: 10.89 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.0002118/0.1205, allocations: 231.4 kB / 470.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.931e-05/0.1206, allocations: 23.81 kB / 470.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.181e-05/0.1206, allocations: 18.64 kB / 470.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1206, allocations: 0 / 470.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1206, allocations: 0 / 470.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1206, allocations: 0 / 470.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/0.1209, allocations: 237.2 kB / 471 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1209, allocations: 3.938 kB / 471 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.1209, allocations: 0 / 471 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.1209, allocations: 4 kB / 471 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.1209, allocations: 8 kB / 471 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.1209, allocations: 4 kB / 471 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/0.1209, allocations: 0 / 471 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.122, allocations: 0.9198 MB / 471.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.749e-05/0.122, allocations: 100.7 kB / 472 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.1221, allocations: 8 kB / 472 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.135e-05/0.1221, allocations: 4 kB / 472 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.634e-05/0.1222, allocations: 12.03 kB / 472 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.1222, allocations: 8 kB / 472 MB, free: 9.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001121/0.1223, allocations: 128.2 kB / 472.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1223, allocations: 0 / 472.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001015/0.1234, allocations: 352 kB / 472.5 MB, free: 8.742 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.001124/0.1245, allocations: 379.5 kB / 472.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001388/0.1259, allocations: 1.6 MB / 474.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1259, allocations: 0 / 474.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.1269, allocations: 1.374 MB / 475.8 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.1272, allocations: 12 kB / 475.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009028/0.1281, allocations: 0.6701 MB / 476.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.1284, allocations: 0.7596 MB / 477.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.184e-05/0.1284, allocations: 0 / 477.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.359e-05/0.1284, allocations: 7.438 kB / 477.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1284, allocations: 4 kB / 477.3 MB, free: 3.859 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].