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.001407/0.001407, allocations: 107.4 kB / 16.51 MB, free: 6.715 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.001493/0.001493, 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.389/1.389, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1743/0.1743, allocations: 38.04 MB / 329.3 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 60.73 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1093, allocations: 58.07 MB / 456.2 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.006283/0.1156, allocations: 2.135 MB / 458.3 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005231/0.1209, allocations: 2.18 MB / 460.5 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.523e-05/0.121, allocations: 0 / 460.5 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.1212, allocations: 11.92 kB / 460.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.1215, allocations: 23.91 kB / 460.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003069/0.1245, allocations: 0.6904 MB / 461.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002207/0.1248, allocations: 123.6 kB / 461.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.102e-05/0.1249, allocations: 4.188 kB / 461.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.125, allocations: 31.84 kB / 461.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.1251, allocations: 47.83 kB / 461.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.256e-05/0.1252, allocations: 4 kB / 461.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002928/0.1281, allocations: 1.232 MB / 462.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.102e-05/0.1282, allocations: 39.83 kB / 462.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.122e-05/0.1283, allocations: 39.67 kB / 462.7 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002737/0.1311, allocations: 1.306 MB / 464 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.1311, allocations: 0 / 464 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1311, allocations: 0 / 464 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.1311, allocations: 0 / 464 MB, free: 0.6055 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001377/0.1325, allocations: 0.5553 MB / 464.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.847e-05/0.1326, allocations: 8.031 kB / 464.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.903e-05/0.1327, allocations: 12.75 kB / 464.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.133, allocations: 207.5 kB / 464.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.133, allocations: 8 kB / 464.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.1331, allocations: 0 / 464.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.1333, allocations: 96.5 kB / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1333, allocations: 0 / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.1334, allocations: 0 / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.1334, allocations: 4 kB / 464.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.1335, allocations: 63.77 kB / 465 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002626/0.1338, allocations: 193.4 kB / 465.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.134, allocations: 106.5 kB / 465.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.1342, allocations: 84.86 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.1342, allocations: 0 / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.1342, allocations: 38.56 kB / 465.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.004e-06/0.1342, allocations: 0 / 465.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007875/0.135, allocations: 319.4 kB / 465.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.559e-05/0.1351, allocations: 93.09 kB / 465.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.1353, allocations: 168.5 kB / 466 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.1354, allocations: 25.7 kB / 466 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.377e-05/0.1354, allocations: 96.58 kB / 466.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.1356, allocations: 78.8 kB / 466.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.319e-05/0.1356, allocations: 29.7 kB / 466.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1358, allocations: 330.8 kB / 466.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.1359, allocations: 59.98 kB / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.1361, allocations: 59.97 kB / 466.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.1364, allocations: 259.4 kB / 466.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1364, allocations: 0 / 466.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004211/0.1369, allocations: 238.9 kB / 467.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.691e-05/0.137, allocations: 65.66 kB / 467.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.137, allocations: 3.984 kB / 467.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.137, allocations: 0 / 467.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-06/0.137, allocations: 3.938 kB / 467.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1371, allocations: 0 / 467.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.796e-05/0.1372, allocations: 15.84 kB / 467.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.1372, allocations: 4 kB / 467.2 MB, free: 13.17 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.0002258/0.1374, allocations: 203.4 kB / 467.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.797e-05/0.1375, allocations: 15.91 kB / 467.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.459e-05/0.1375, allocations: 9.188 kB / 467.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1375, allocations: 0 / 467.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.847e-05/0.1376, allocations: 0 / 467.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1376, allocations: 0 / 467.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002131/0.1378, allocations: 217.4 kB / 467.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1378, allocations: 0 / 467.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.1378, allocations: 0 / 467.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.1378, allocations: 0 / 467.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/0.1379, allocations: 8 kB / 467.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1379, allocations: 4 kB / 467.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1379, allocations: 0 / 467.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008664/0.1388, allocations: 0.525 MB / 468.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/0.1388, allocations: 92.86 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.1389, allocations: 4 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.377e-05/0.139, allocations: 4 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.644e-05/0.139, allocations: 4 kB / 468.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/0.139, allocations: 12.03 kB / 468.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.1392, allocations: 115.2 kB / 468.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1392, allocations: 0 / 468.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001615/0.1408, allocations: 335.9 kB / 468.7 MB, free: 11.54 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.001612/0.1424, allocations: 375.5 kB / 469.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.1435, allocations: 0.7139 MB / 469.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1435, allocations: 0 / 469.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007326/0.1442, allocations: 0.5734 MB / 470.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.1446, allocations: 12 kB / 470.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.1456, allocations: 0.5034 MB / 470.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.146, allocations: 0.7241 MB / 471.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.743e-05/0.1461, allocations: 7.922 kB / 471.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.442e-05/0.1461, allocations: 11.44 kB / 471.6 MB, free: 8.547 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.1461, allocations: 0 / 471.6 MB, free: 8.547 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].