Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001464/0.001464, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.351/1.351, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.173/0.173, allocations: 38.03 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 64.5 kB / 398.8 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1069, allocations: 58.07 MB / 456.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003349/0.1102, allocations: 2.094 MB / 459 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002882/0.1131, allocations: 2.039 MB / 461 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.535e-05/0.1132, allocations: 0 / 461 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.1133, allocations: 11.92 kB / 461 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.468e-05/0.1134, allocations: 27.83 kB / 461 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001928/0.1154, allocations: 0.8383 MB / 461.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.1155, allocations: 83.64 kB / 462 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.451e-05/0.1155, allocations: 8.172 kB / 462 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.582e-05/0.1156, allocations: 23.92 kB / 462 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.237e-05/0.1157, allocations: 47.77 kB / 462 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.1157, allocations: 0 / 462 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001676/0.1174, allocations: 1.255 MB / 463.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.614e-05/0.1175, allocations: 15.92 kB / 463.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.752e-05/0.1175, allocations: 27.81 kB / 463.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001357/0.1189, allocations: 1.325 MB / 464.7 MB, free: 248 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1189, allocations: 4 kB / 464.7 MB, free: 244 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1189, allocations: 0 / 464.7 MB, free: 244 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1189, allocations: 0 / 464.7 MB, free: 244 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006128/0.1195, allocations: 0.5124 MB / 465.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1196, allocations: 15.89 kB / 465.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.716e-05/0.1196, allocations: 16.83 kB / 465.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.1198, allocations: 191.6 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.1198, allocations: 4 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.778e-06/0.1198, allocations: 0 / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.12, allocations: 65.67 kB / 465.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.12, allocations: 0 / 465.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.12, allocations: 0 / 465.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.12, allocations: 0 / 465.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.288e-05/0.1201, allocations: 31.98 kB / 465.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001673/0.1202, allocations: 181.4 kB / 465.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.502e-05/0.1203, allocations: 62.5 kB / 465.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.579e-05/0.1204, allocations: 49.08 kB / 465.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-06/0.1204, allocations: 7.938 kB / 465.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.1205, allocations: 30.56 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.72e-07/0.1205, allocations: 0 / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003066/0.1208, allocations: 187.6 kB / 466 MB, free: 14.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.304e-05/0.1209, allocations: 97.06 kB / 466.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.121, allocations: 132.3 kB / 466.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.121, allocations: 25.7 kB / 466.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.121, allocations: 92.14 kB / 466.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.727e-05/0.1211, allocations: 35.45 kB / 466.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/0.1211, allocations: 25.7 kB / 466.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1213, allocations: 326.8 kB / 466.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.804e-05/0.1213, allocations: 31.92 kB / 466.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.564e-05/0.1214, allocations: 39.92 kB / 466.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001568/0.1216, allocations: 164.1 kB / 467 MB, free: 13.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1216, allocations: 0 / 467 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001701/0.1217, allocations: 159.1 kB / 467.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.596e-05/0.1218, allocations: 49.67 kB / 467.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.1218, allocations: 0 / 467.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.1218, allocations: 0 / 467.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1218, allocations: 0 / 467.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.1218, allocations: 0 / 467.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.603e-05/0.1219, allocations: 7.938 kB / 467.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.1219, allocations: 11.98 kB / 467.2 MB, free: 13.46 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.0001205/0.1221, allocations: 167.5 kB / 467.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.078e-05/0.1221, allocations: 11.91 kB / 467.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.586e-05/0.1221, allocations: 12.7 kB / 467.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.1221, allocations: 0 / 467.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1221, allocations: 0 / 467.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.1221, allocations: 0 / 467.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001264/0.1223, allocations: 185.5 kB / 467.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1223, allocations: 0 / 467.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1223, allocations: 0 / 467.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1223, allocations: 4 kB / 467.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.1223, allocations: 7.938 kB / 467.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1223, allocations: 0 / 467.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1223, allocations: 0 / 467.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.1226, allocations: 290.5 kB / 467.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.946e-05/0.1227, allocations: 88.94 kB / 467.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.1227, allocations: 8 kB / 467.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.706e-05/0.1227, allocations: 4 kB / 467.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.715e-05/0.1228, allocations: 4.031 kB / 467.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.1228, allocations: 4 kB / 467.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.814e-05/0.1228, allocations: 107.2 kB / 468.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1228, allocations: 0 / 468.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006721/0.1235, allocations: 315.9 kB / 468.4 MB, free: 12.16 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.0007989/0.1243, allocations: 373.8 kB / 468.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003691/0.1247, allocations: 299.3 kB / 469 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1247, allocations: 0 / 469 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001975/0.1249, allocations: 223.3 kB / 469.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001894/0.1251, allocations: 11.94 kB / 469.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004594/0.1256, allocations: 300.8 kB / 469.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.1258, allocations: 0.7117 MB / 470.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.069e-05/0.1259, allocations: 0 / 470.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.111e-05/0.1259, allocations: 7.438 kB / 470.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1259, allocations: 0 / 470.3 MB, free: 10.18 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].