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.001095/0.001095, allocations: 116.5 kB / 17.7 MB, free: 5.438 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.001083/0.001083, allocations: 187 kB / 18.63 MB, free: 4.512 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.35/1.35, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1736/0.1736, allocations: 38.04 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 68.53 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1119, allocations: 58.07 MB / 458.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003577/0.1155, allocations: 2.141 MB / 460.5 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003215/0.1188, allocations: 2.054 MB / 462.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.605e-05/0.1189, allocations: 0 / 462.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.1191, allocations: 7.922 kB / 462.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.1192, allocations: 51.73 kB / 462.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002278/0.1215, allocations: 0.8069 MB / 463.4 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.1217, allocations: 95.67 kB / 463.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.227e-05/0.1218, allocations: 7.984 kB / 463.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.1219, allocations: 43.78 kB / 463.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.122, allocations: 55.81 kB / 463.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.122, allocations: 0 / 463.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002021/0.1241, allocations: 1.384 MB / 465 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.938e-05/0.1241, allocations: 31.89 kB / 465 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.475e-05/0.1242, allocations: 39.73 kB / 465 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001675/0.1259, allocations: 1.325 MB / 466.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1259, allocations: 0 / 466.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1259, allocations: 4 kB / 466.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.1259, allocations: 0 / 466.4 MB, free: 15.24 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006651/0.1266, allocations: 0.5396 MB / 466.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.1266, allocations: 11.89 kB / 466.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.697e-05/0.1267, allocations: 12.75 kB / 466.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.1269, allocations: 199 kB / 467.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.1269, allocations: 4.125 kB / 467.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.127, allocations: 0 / 467.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001622/0.1271, allocations: 81.66 kB / 467.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.1272, allocations: 4 kB / 467.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.1272, allocations: 0 / 467.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.1272, allocations: 3.938 kB / 467.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.371e-05/0.1272, allocations: 43.91 kB / 467.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001815/0.1274, allocations: 177.6 kB / 467.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.1275, allocations: 74.48 kB / 467.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.1277, allocations: 64.86 kB / 467.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.098e-06/0.1277, allocations: 0 / 467.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.1277, allocations: 38.55 kB / 467.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 3.256e-06/0.1277, allocations: 0 / 467.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003819/0.1281, allocations: 233.9 kB / 467.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.1282, allocations: 89.09 kB / 467.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.1283, allocations: 150.1 kB / 468.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.1283, allocations: 25.7 kB / 468.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.034e-05/0.1284, allocations: 96.38 kB / 468.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.119e-05/0.1285, allocations: 51.3 kB / 468.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.682e-05/0.1285, allocations: 25.73 kB / 468.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1287, allocations: 326.8 kB / 468.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.446e-05/0.1288, allocations: 35.97 kB / 468.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.929e-05/0.1289, allocations: 35.98 kB / 468.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.129, allocations: 176.2 kB / 468.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1291, allocations: 3.938 kB / 468.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002186/0.1293, allocations: 182.2 kB / 469 MB, free: 12.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.373e-05/0.1294, allocations: 49.69 kB / 469.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1294, allocations: 4.062 kB / 469.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.1294, allocations: 0 / 469.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.294e-06/0.1294, allocations: 3.984 kB / 469.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.1294, allocations: 0 / 469.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.479e-05/0.1295, allocations: 7.906 kB / 469.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.1295, allocations: 4 kB / 469.1 MB, free: 12.27 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.0001254/0.1296, allocations: 171.5 kB / 469.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.165e-05/0.1297, allocations: 11.91 kB / 469.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.824e-05/0.1297, allocations: 8.828 kB / 469.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1297, allocations: 4 kB / 469.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1297, allocations: 4 kB / 469.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1297, allocations: 0 / 469.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.1299, allocations: 197.4 kB / 469.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1299, allocations: 0 / 469.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1299, allocations: 0 / 469.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.1299, allocations: 0 / 469.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.1299, allocations: 4 kB / 469.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1299, allocations: 0 / 469.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.1299, allocations: 3.984 kB / 469.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003498/0.1303, allocations: 298.5 kB / 469.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.1303, allocations: 96.86 kB / 469.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.1304, allocations: 4 kB / 469.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.89e-05/0.1304, allocations: 7.938 kB / 469.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.765e-05/0.1304, allocations: 3.984 kB / 469.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.1305, allocations: 4 kB / 469.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.594e-05/0.1305, allocations: 121.7 kB / 470 MB, free: 11.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1305, allocations: 0 / 470 MB, free: 11.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008537/0.1314, allocations: 323.9 kB / 470.3 MB, free: 10.93 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.0009035/0.1323, allocations: 360.4 kB / 470.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000417/0.1328, allocations: 339.2 kB / 471 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1328, allocations: 0 / 471 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002415/0.133, allocations: 259.3 kB / 471.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.1333, allocations: 27.28 kB / 471.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005678/0.1339, allocations: 349.4 kB / 471.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.1342, allocations: 0.7157 MB / 472.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.023e-05/0.1342, allocations: 3.984 kB / 472.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.524e-05/0.1343, allocations: 11.44 kB / 472.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1343, allocations: 0 / 472.4 MB, free: 8.809 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].