Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 113.7 kB / 16.63 MB, free: 6.816 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.001694/0.001694, allocations: 190 kB / 17.55 MB, free: 5.93 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.373/1.373, allocations: 222.9 MB / 241.2 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.1708/0.1708, allocations: 38.03 MB / 329.4 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 64.94 kB / 398.3 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1039, allocations: 58.06 MB / 456.3 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003473/0.1074, allocations: 2.182 MB / 458.5 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.1103, allocations: 2.062 MB / 460.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.995e-05/0.1104, allocations: 0 / 460.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.1106, allocations: 15.92 kB / 460.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.1107, allocations: 35.81 kB / 460.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002079/0.1128, allocations: 0.7414 MB / 461.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001688/0.113, allocations: 99.69 kB / 461.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.108e-05/0.113, allocations: 0 / 461.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.1131, allocations: 51.75 kB / 461.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.1132, allocations: 59.81 kB / 461.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.1133, allocations: 0 / 461.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001831/0.1151, allocations: 1.24 MB / 462.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.92e-05/0.1152, allocations: 35.89 kB / 462.9 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.693e-05/0.1152, allocations: 39.69 kB / 462.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001656/0.1169, allocations: 1.247 MB / 464.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1169, allocations: 0 / 464.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1169, allocations: 0 / 464.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1169, allocations: 4 kB / 464.2 MB, free: 0.582 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007652/0.1177, allocations: 0.5435 MB / 464.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.1177, allocations: 11.89 kB / 464.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.351e-05/0.1178, allocations: 16.75 kB / 464.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002014/0.118, allocations: 188.1 kB / 464.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.118, allocations: 12.09 kB / 464.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.67e-05/0.118, allocations: 4 kB / 464.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001715/0.1182, allocations: 71.42 kB / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.1182, allocations: 0 / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.1183, allocations: 4 kB / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1183, allocations: 3.984 kB / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.123e-05/0.1184, allocations: 35.98 kB / 465 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000175/0.1185, allocations: 185.5 kB / 465.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.1187, allocations: 78.42 kB / 465.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.101e-05/0.1187, allocations: 56.88 kB / 465.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.354e-06/0.1187, allocations: 0 / 465.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.1188, allocations: 34.56 kB / 465.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.052e-06/0.1188, allocations: 4 kB / 465.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000369/0.1192, allocations: 219.1 kB / 465.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.1192, allocations: 93.14 kB / 465.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.1194, allocations: 156.9 kB / 465.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.1194, allocations: 25.7 kB / 465.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.024e-05/0.1195, allocations: 100.4 kB / 466 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.588e-05/0.1195, allocations: 47.3 kB / 466 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.324e-05/0.1196, allocations: 21.72 kB / 466 MB, free: 14.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1197, allocations: 322.8 kB / 466.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.215e-05/0.1198, allocations: 39.97 kB / 466.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.092e-05/0.1198, allocations: 47.91 kB / 466.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.12, allocations: 179.6 kB / 466.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.12, allocations: 7.938 kB / 466.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002106/0.1202, allocations: 167.2 kB / 466.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.991e-05/0.1203, allocations: 49.67 kB / 466.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.1203, allocations: 0 / 466.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.1203, allocations: 0 / 466.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.1203, allocations: 3.938 kB / 466.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.1203, allocations: 0 / 466.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.766e-05/0.1204, allocations: 7.906 kB / 466.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.1204, allocations: 8.062 kB / 466.9 MB, free: 13.62 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.0001281/0.1206, allocations: 179.4 kB / 467 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.1206, allocations: 11.91 kB / 467 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.023e-05/0.1206, allocations: 12.84 kB / 467.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1206, allocations: 0 / 467.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.1206, allocations: 0 / 467.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1206, allocations: 0 / 467.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.1208, allocations: 197.4 kB / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1208, allocations: 3.984 kB / 467.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1208, allocations: 4 kB / 467.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1208, allocations: 0 / 467.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.1208, allocations: 4 kB / 467.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1208, allocations: 0 / 467.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1208, allocations: 0 / 467.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003466/0.1212, allocations: 298.5 kB / 467.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.587e-05/0.1212, allocations: 92.84 kB / 467.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.1213, allocations: 4 kB / 467.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.028e-05/0.1213, allocations: 8.031 kB / 467.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.99e-05/0.1213, allocations: 0 / 467.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.1214, allocations: 12 kB / 467.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.171e-05/0.1214, allocations: 113.7 kB / 467.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1214, allocations: 0 / 467.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008995/0.1224, allocations: 327.9 kB / 468.1 MB, free: 12.27 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.001212/0.1236, allocations: 374 kB / 468.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004323/0.124, allocations: 331.3 kB / 468.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.124, allocations: 0 / 468.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002394/0.1243, allocations: 259.3 kB / 469 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.1246, allocations: 15.94 kB / 469.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006468/0.1253, allocations: 385.5 kB / 469.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.1256, allocations: 0.7158 MB / 470.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.165e-05/0.1256, allocations: 4 kB / 470.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.785e-05/0.1257, allocations: 7.438 kB / 470.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1257, allocations: 0 / 470.2 MB, free: 10.12 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].