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.001197/0.001197, allocations: 108.1 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.001446/0.001446, 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.361/1.361, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1757/0.1757, allocations: 38.03 MB / 329.3 MB, free: 9.074 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 66.09 kB / 398.1 MB, free: 34.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1093, allocations: 58.06 MB / 456.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003845/0.1132, allocations: 2.139 MB / 458.3 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003222/0.1164, allocations: 2.168 MB / 460.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.109e-05/0.1165, allocations: 0 / 460.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.1167, allocations: 23.86 kB / 460.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.1168, allocations: 23.89 kB / 460.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001938/0.1188, allocations: 0.6826 MB / 461.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001674/0.1189, allocations: 127.7 kB / 461.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.509e-05/0.119, allocations: 4.188 kB / 461.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.624e-05/0.1191, allocations: 35.73 kB / 461.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.096e-05/0.1192, allocations: 55.81 kB / 461.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.1192, allocations: 4 kB / 461.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00183/0.1211, allocations: 1.236 MB / 462.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.403e-05/0.1212, allocations: 47.84 kB / 462.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.951e-05/0.1212, allocations: 51.48 kB / 462.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001474/0.1227, allocations: 1.337 MB / 464.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1227, allocations: 0 / 464.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1227, allocations: 0 / 464.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1227, allocations: 0 / 464.1 MB, free: 0.5586 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.000711/0.1235, allocations: 0.5979 MB / 464.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1235, allocations: 8.031 kB / 464.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.372e-05/0.1236, allocations: 28.66 kB / 464.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.1238, allocations: 203.5 kB / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-06/0.1238, allocations: 0 / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.1239, allocations: 4 kB / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002041/0.1241, allocations: 142.5 kB / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.1241, allocations: 0 / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.1241, allocations: 3.984 kB / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.1241, allocations: 0 / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/0.1242, allocations: 92.3 kB / 465.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002263/0.1245, allocations: 225.5 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.1246, allocations: 158.5 kB / 465.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.1248, allocations: 148.8 kB / 465.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.778e-06/0.1248, allocations: 3.938 kB / 465.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001273/0.1249, allocations: 30.56 kB / 465.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.392e-06/0.1249, allocations: 0 / 465.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006483/0.1256, allocations: 495.6 kB / 466.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/0.1257, allocations: 105.1 kB / 466.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.1258, allocations: 174.9 kB / 466.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.1258, allocations: 25.7 kB / 466.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.597e-05/0.1259, allocations: 108.8 kB / 466.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.798e-05/0.126, allocations: 122.1 kB / 466.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.045e-05/0.1261, allocations: 37.69 kB / 466.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1262, allocations: 338.8 kB / 467.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.1263, allocations: 95.95 kB / 467.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.1264, allocations: 112.9 kB / 467.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.1268, allocations: 380.3 kB / 467.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1268, allocations: 0 / 467.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003667/0.1272, allocations: 342.9 kB / 468 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.605e-05/0.1273, allocations: 81.64 kB / 468.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.1273, allocations: 4 kB / 468.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1273, allocations: 7.875 kB / 468.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.256e-06/0.1273, allocations: 3.984 kB / 468.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.1273, allocations: 0 / 468.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.077e-05/0.1274, allocations: 19.75 kB / 468.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.903e-05/0.1274, allocations: 12.06 kB / 468.1 MB, free: 12.25 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.0002297/0.1277, allocations: 235.4 kB / 468.4 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.571e-05/0.1277, allocations: 19.81 kB / 468.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.715e-05/0.1277, allocations: 14.59 kB / 468.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1277, allocations: 0 / 468.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1277, allocations: 4 kB / 468.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1278, allocations: 0 / 468.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.128, allocations: 245.2 kB / 468.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.128, allocations: 0 / 468.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.12e-07/0.128, allocations: 4 kB / 468.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.128, allocations: 0 / 468.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.128, allocations: 11.98 kB / 468.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.128, allocations: 0 / 468.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.128, allocations: 0 / 468.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009412/0.129, allocations: 0.912 MB / 469.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.294e-05/0.129, allocations: 100.8 kB / 469.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.196e-05/0.1291, allocations: 8 kB / 469.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.936e-05/0.1291, allocations: 8.031 kB / 469.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.897e-05/0.1292, allocations: 11.98 kB / 469.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.1292, allocations: 8 kB / 469.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.065e-05/0.1293, allocations: 124.2 kB / 469.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.755e-06/0.1293, allocations: 0 / 469.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001093/0.1304, allocations: 363.8 kB / 470.2 MB, free: 10.1 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.0009658/0.1314, allocations: 381.9 kB / 470.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.1332, allocations: 1.593 MB / 472.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1332, allocations: 0 / 472.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.1343, allocations: 1.374 MB / 473.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.1345, allocations: 16 kB / 473.5 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008466/0.1353, allocations: 0.7345 MB / 474.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.1357, allocations: 0.7558 MB / 475 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.398e-06/0.1357, allocations: 0 / 475 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.23e-05/0.1357, allocations: 11.44 kB / 475 MB, free: 5.156 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1357, allocations: 0 / 475 MB, free: 5.156 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].