Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008129/0.000813, allocations: 92.17 kB / 16.65 MB, free: 6.535 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.001011/0.001011, allocations: 173.4 kB / 17.56 MB, free: 6.184 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.224/1.224, allocations: 223.2 MB / 241.6 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1646/0.1646, allocations: 38.1 MB / 330.8 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003012, allocations: 8 kB / 400.7 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09622/0.09654, allocations: 59.17 MB / 459.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.002299/0.09887, allocations: 1.857 MB / 461.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001433/0.1003, allocations: 1.076 MB / 462.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.073e-05/0.1004, allocations: 0 / 462.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.1005, allocations: 11.92 kB / 462.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.1006, allocations: 55.78 kB / 462.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006925/0.1013, allocations: 239.5 kB / 463.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.1016, allocations: 271.4 kB / 463.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.143e-05/0.1016, allocations: 7.984 kB / 463.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.368e-05/0.1017, allocations: 43.78 kB / 463.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.1018, allocations: 75.72 kB / 463.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.1019, allocations: 7.938 kB / 463.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005487/0.1024, allocations: 403.2 kB / 463.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.395e-05/0.1025, allocations: 43.89 kB / 464 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.403e-05/0.1025, allocations: 61.44 kB / 464 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005611/0.1031, allocations: 0.5301 MB / 464.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1031, allocations: 4 kB / 464.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1031, allocations: 0 / 464.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1031, allocations: 0 / 464.5 MB, free: 2.402 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004271/0.1036, allocations: 444.9 kB / 465 MB, free: 1.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.1036, allocations: 12.03 kB / 465 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.1037, allocations: 12.75 kB / 465 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.1038, allocations: 186.5 kB / 465.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.1038, allocations: 8.375 kB / 465.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.476e-05/0.1039, allocations: 8.062 kB / 465.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001538/0.104, allocations: 101.6 kB / 465.3 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.691e-06/0.104, allocations: 0 / 465.3 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.104, allocations: 0 / 465.3 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.104, allocations: 0 / 465.3 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.353e-05/0.1041, allocations: 55.95 kB / 465.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.1043, allocations: 185.5 kB / 465.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.1044, allocations: 130.5 kB / 465.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.1045, allocations: 120.8 kB / 465.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.1045, allocations: 8 kB / 465.8 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/0.1046, allocations: 34.56 kB / 465.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 9.42e-07/0.1046, allocations: 0 / 465.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003928/0.105, allocations: 290.5 kB / 466.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.105, allocations: 97.09 kB / 466.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.664e-05/0.1051, allocations: 129.8 kB / 466.3 MB, free: 424 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.1052, allocations: 25.7 kB / 466.4 MB, free: 392 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.814e-05/0.1052, allocations: 100.4 kB / 466.5 MB, free: 288 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.943e-05/0.1053, allocations: 71.03 kB / 466.5 MB, free: 216 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.929e-05/0.1053, allocations: 21.7 kB / 466.5 MB, free: 188 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1054, allocations: 326.8 kB / 466.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.773e-05/0.1055, allocations: 55.97 kB / 466.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.91e-05/0.1056, allocations: 55.97 kB / 467 MB, free: 15.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.1058, allocations: 224.2 kB / 467.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1058, allocations: 0 / 467.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002355/0.106, allocations: 230 kB / 467.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.954e-05/0.1061, allocations: 53.67 kB / 467.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.1061, allocations: 4.062 kB / 467.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.1061, allocations: 0 / 467.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.214e-06/0.1061, allocations: 0 / 467.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.1061, allocations: 11.88 kB / 467.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.216e-05/0.1062, allocations: 11.84 kB / 467.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.1062, allocations: 4 kB / 467.5 MB, free: 15.19 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.0001272/0.1063, allocations: 179.4 kB / 467.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/0.1064, allocations: 11.91 kB / 467.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.403e-05/0.1064, allocations: 17.17 kB / 467.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1064, allocations: 4 kB / 467.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1064, allocations: 3.938 kB / 467.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1064, allocations: 0 / 467.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.1065, allocations: 201.4 kB / 467.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1065, allocations: 0 / 467.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.793e-06/0.1065, allocations: 4 kB / 467.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.1066, allocations: 0 / 467.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.1066, allocations: 4 kB / 467.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1066, allocations: 4 kB / 467.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1066, allocations: 0 / 467.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004019/0.107, allocations: 386.4 kB / 468.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.047e-05/0.107, allocations: 92.94 kB / 468.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.1071, allocations: 4 kB / 468.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.879e-05/0.1071, allocations: 7.938 kB / 468.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.705e-05/0.1071, allocations: 4 kB / 468.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.1072, allocations: 8 kB / 468.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.701e-05/0.1072, allocations: 105.6 kB / 468.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1072, allocations: 0 / 468.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003841/0.1076, allocations: 132 kB / 468.6 MB, free: 13.94 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.0003902/0.108, allocations: 190.5 kB / 468.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005203/0.1085, allocations: 0.5656 MB / 469.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.1086, allocations: 0 / 469.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003342/0.1089, allocations: 471.3 kB / 469.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002067/0.1091, allocations: 24.06 kB / 469.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005129/0.1096, allocations: 437.3 kB / 470.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.1099, allocations: 0.7238 MB / 471 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.453e-05/0.1099, allocations: 0 / 471 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.418e-06/0.1099, allocations: 7.438 kB / 471 MB, free: 11.46 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1099, allocations: 0 / 471 MB, free: 11.46 MB / 350.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].