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.001497/0.001497, allocations: 111.4 kB / 17.68 MB, free: 5.496 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.001647/0.001647, allocations: 192 kB / 18.62 MB, free: 4.562 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.397/1.397, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1745/0.1745, allocations: 38.04 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002402/0.002403, allocations: 66.97 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1448, allocations: 58.07 MB / 458.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.004669/0.1495, allocations: 2.094 MB / 460.4 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003486/0.1531, allocations: 2.039 MB / 462.4 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.088e-05/0.1532, allocations: 0 / 462.4 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002496/0.1535, allocations: 15.92 kB / 462.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.1536, allocations: 31.77 kB / 462.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0024/0.156, allocations: 0.8364 MB / 463.3 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00016/0.1562, allocations: 79.62 kB / 463.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.631e-05/0.1562, allocations: 12.17 kB / 463.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.96e-05/0.1563, allocations: 31.91 kB / 463.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.198e-05/0.1564, allocations: 39.77 kB / 463.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.1565, allocations: 4 kB / 463.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002075/0.1586, allocations: 1.407 MB / 464.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.091e-05/0.1586, allocations: 11.94 kB / 464.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.511e-05/0.1587, allocations: 19.86 kB / 464.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001913/0.1606, allocations: 1.321 MB / 466.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1606, allocations: 0 / 466.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1606, allocations: 0 / 466.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1606, allocations: 0 / 466.3 MB, free: 15.34 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.0007785/0.1614, allocations: 0.4892 MB / 466.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.1614, allocations: 15.89 kB / 466.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.181e-05/0.1615, allocations: 12.84 kB / 466.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001892/0.1617, allocations: 191.5 kB / 467 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.1617, allocations: 4 kB / 467 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.227e-06/0.1617, allocations: 0 / 467 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.1619, allocations: 65.52 kB / 467 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.1619, allocations: 0 / 467 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.1619, allocations: 0 / 467 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1619, allocations: 0 / 467 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.298e-05/0.162, allocations: 19.98 kB / 467 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001514/0.1621, allocations: 173.6 kB / 467.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.601e-05/0.1622, allocations: 42.61 kB / 467.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.508e-05/0.1623, allocations: 36.84 kB / 467.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.187e-06/0.1623, allocations: 0 / 467.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.1623, allocations: 34.5 kB / 467.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 8.81e-07/0.1623, allocations: 0 / 467.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002556/0.1626, allocations: 155.2 kB / 467.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.1626, allocations: 81.11 kB / 467.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.1627, allocations: 125.8 kB / 467.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.1627, allocations: 25.7 kB / 467.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.015e-05/0.1628, allocations: 92.17 kB / 467.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.241e-05/0.1628, allocations: 35.48 kB / 467.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-05/0.1629, allocations: 13.72 kB / 467.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.163, allocations: 326.8 kB / 468.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.053e-05/0.1631, allocations: 23.98 kB / 468.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.145e-05/0.1631, allocations: 23.92 kB / 468.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001238/0.1632, allocations: 124.4 kB / 468.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1633, allocations: 0 / 468.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001587/0.1634, allocations: 135.3 kB / 468.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.152e-05/0.1635, allocations: 41.69 kB / 468.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1635, allocations: 4 kB / 468.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.1635, allocations: 0 / 468.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.1635, allocations: 0 / 468.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.1635, allocations: 0 / 468.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.373e-05/0.1636, allocations: 0 / 468.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.1636, allocations: 4 kB / 468.5 MB, free: 12.82 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.0001214/0.1637, allocations: 159.5 kB / 468.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.845e-05/0.1637, allocations: 7.906 kB / 468.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.684e-05/0.1638, allocations: 16.34 kB / 468.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.696e-06/0.1638, allocations: 4 kB / 468.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1638, allocations: 3.938 kB / 468.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1638, allocations: 0 / 468.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.164, allocations: 169.6 kB / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.164, allocations: 0 / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.164, allocations: 0 / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.164, allocations: 4 kB / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-06/0.164, allocations: 0 / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.164, allocations: 0 / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.164, allocations: 4 kB / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002472/0.1643, allocations: 230.9 kB / 469.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.1643, allocations: 84.95 kB / 469.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.1643, allocations: 4 kB / 469.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.358e-05/0.1644, allocations: 0 / 469.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.586e-05/0.1644, allocations: 3.984 kB / 469.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.878e-06/0.1644, allocations: 8 kB / 469.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.228e-05/0.1645, allocations: 98.39 kB / 469.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1645, allocations: 4.031 kB / 469.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008796/0.1654, allocations: 316 kB / 469.6 MB, free: 11.61 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.001038/0.1664, allocations: 377.2 kB / 470 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002759/0.1667, allocations: 199.3 kB / 470.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1667, allocations: 0 / 470.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.1669, allocations: 151.4 kB / 470.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.1671, allocations: 12 kB / 470.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000424/0.1675, allocations: 240.2 kB / 470.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002531/0.1678, allocations: 0.6924 MB / 471.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.175e-05/0.1678, allocations: 0 / 471.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.606e-05/0.1679, allocations: 11.5 kB / 471.3 MB, free: 9.871 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1679, allocations: 0 / 471.3 MB, free: 9.871 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].