Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007404/0.0007405, allocations: 88.14 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.0008584/0.0008584, allocations: 173.5 kB / 17.56 MB, free: 6.184 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.319/1.319, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1644/0.1644, allocations: 38.09 MB / 330.8 MB, free: 8.621 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003327, allocations: 8 kB / 400.7 MB, free: 34.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1106, allocations: 59.17 MB / 459.9 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002535/0.1132, allocations: 1.807 MB / 461.7 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002751/0.1159, allocations: 2.122 MB / 463.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.386e-05/0.116, allocations: 4 kB / 463.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001347/0.1161, allocations: 11.92 kB / 463.8 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.427e-05/0.1162, allocations: 31.81 kB / 463.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001472/0.1177, allocations: 0.6788 MB / 464.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.1178, allocations: 139.5 kB / 464.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.921e-05/0.1179, allocations: 192 / 464.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.844e-05/0.118, allocations: 27.91 kB / 464.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.181e-05/0.118, allocations: 47.77 kB / 464.8 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.527e-06/0.1181, allocations: 0 / 464.8 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001517/0.1196, allocations: 1.236 MB / 466 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.731e-05/0.1196, allocations: 19.91 kB / 466 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.314e-05/0.1197, allocations: 41.58 kB / 466 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001239/0.1209, allocations: 1.267 MB / 467.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1209, allocations: 0 / 467.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1209, allocations: 0 / 467.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.1209, allocations: 0 / 467.3 MB, free: 15.61 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005313/0.1215, allocations: 0.4892 MB / 467.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1215, allocations: 8.031 kB / 467.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.417e-05/0.1216, allocations: 8.938 kB / 467.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001558/0.1217, allocations: 199.4 kB / 468 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.1217, allocations: 0 / 468 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.1218, allocations: 0 / 468 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.1219, allocations: 61.61 kB / 468.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.1219, allocations: 0 / 468.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.1219, allocations: 4 kB / 468.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1219, allocations: 0 / 468.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.288e-05/0.122, allocations: 23.98 kB / 468.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.1221, allocations: 169.6 kB / 468.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.1222, allocations: 46.5 kB / 468.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.43e-05/0.1223, allocations: 36.88 kB / 468.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.815e-06/0.1223, allocations: 0 / 468.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.1223, allocations: 30.56 kB / 468.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 8.82e-07/0.1223, allocations: 0 / 468.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002706/0.1226, allocations: 163.2 kB / 468.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.1227, allocations: 81.11 kB / 468.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.862e-05/0.1228, allocations: 128.6 kB / 468.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.1228, allocations: 25.7 kB / 468.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.088e-05/0.1228, allocations: 88.14 kB / 468.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/0.1229, allocations: 23.64 kB / 468.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.35e-05/0.1229, allocations: 13.72 kB / 468.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.123, allocations: 326.8 kB / 469.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.48e-05/0.1231, allocations: 28.02 kB / 469.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.727e-05/0.1231, allocations: 16 kB / 469.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.1232, allocations: 124.2 kB / 469.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.1232, allocations: 4 kB / 469.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001491/0.1234, allocations: 131.4 kB / 469.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.1234, allocations: 45.69 kB / 469.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1234, allocations: 0 / 469.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.1234, allocations: 0 / 469.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.1234, allocations: 0 / 469.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.217e-06/0.1235, allocations: 320 / 469.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.57e-05/0.1235, allocations: 11.97 kB / 469.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.1235, allocations: 0 / 469.6 MB, free: 13.09 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.0001105/0.1236, allocations: 163.4 kB / 469.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.526e-05/0.1237, allocations: 4 kB / 469.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.56e-05/0.1237, allocations: 16.31 kB / 469.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1237, allocations: 0 / 469.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1237, allocations: 0 / 469.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1237, allocations: 0 / 469.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.1238, allocations: 177.5 kB / 469.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1238, allocations: 8 kB / 469.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1238, allocations: 0 / 469.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.1238, allocations: 0 / 469.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.1238, allocations: 0 / 469.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.1239, allocations: 15.92 kB / 469.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1239, allocations: 0 / 469.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002369/0.1241, allocations: 222.5 kB / 470.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.118e-05/0.1242, allocations: 81.02 kB / 470.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.1242, allocations: 12.03 kB / 470.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.162e-05/0.1242, allocations: 0 / 470.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.019e-05/0.1242, allocations: 4 kB / 470.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.1243, allocations: 4 kB / 470.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.989e-05/0.1243, allocations: 99.25 kB / 470.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1243, allocations: 0 / 470.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007292/0.125, allocations: 319.9 kB / 470.7 MB, free: 11.88 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.0008497/0.1259, allocations: 373.9 kB / 471 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002488/0.1262, allocations: 199.3 kB / 471.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1262, allocations: 0 / 471.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.1263, allocations: 155.3 kB / 471.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.1265, allocations: 11.94 kB / 471.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004152/0.127, allocations: 270.6 kB / 471.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.1273, allocations: 0.6965 MB / 472.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.172e-05/0.1273, allocations: 0 / 472.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.188e-05/0.1273, allocations: 7.438 kB / 472.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1273, allocations: 0 / 472.4 MB, free: 10.1 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].