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.001038/0.001038, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.000961/0.000961, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.344/1.344, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.175/0.175, allocations: 38.04 MB / 329.7 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 62.73 kB / 398.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09709/0.09834, allocations: 58.06 MB / 456.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003097/0.1015, allocations: 2.148 MB / 459 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.1028, allocations: 1.068 MB / 460.1 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.866e-05/0.1029, allocations: 0 / 460.1 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000113/0.103, allocations: 19.84 kB / 460.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001024/0.1031, allocations: 51.8 kB / 460.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007315/0.1039, allocations: 287.2 kB / 460.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000134/0.104, allocations: 115.5 kB / 460.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.774e-05/0.1041, allocations: 7.984 kB / 460.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.797e-05/0.1041, allocations: 51.83 kB / 460.6 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.595e-05/0.1043, allocations: 71.72 kB / 460.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.1043, allocations: 0 / 460.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005219/0.1048, allocations: 411.2 kB / 461.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.792e-05/0.1049, allocations: 31.91 kB / 461.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.033e-05/0.1049, allocations: 47.67 kB / 461.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005167/0.1054, allocations: 0.5107 MB / 461.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1054, allocations: 0 / 461.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1055, allocations: 0 / 461.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.1055, allocations: 0 / 461.7 MB, free: 3.219 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.0004082/0.1059, allocations: 456.8 kB / 462.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.1059, allocations: 15.89 kB / 462.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.855e-05/0.106, allocations: 12.75 kB / 462.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.1061, allocations: 192.1 kB / 462.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.1061, allocations: 8.312 kB / 462.3 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.1061, allocations: 8.125 kB / 462.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001443/0.1063, allocations: 89.66 kB / 462.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.1063, allocations: 4 kB / 462.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.1063, allocations: 0 / 462.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.1063, allocations: 0 / 462.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.89e-05/0.1064, allocations: 55.97 kB / 462.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001437/0.1066, allocations: 181.5 kB / 462.7 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.1067, allocations: 138.5 kB / 462.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.1068, allocations: 127.2 kB / 462.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.218e-06/0.1068, allocations: 0 / 462.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.1069, allocations: 38.55 kB / 463 MB, free: 1.754 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 8.31e-07/0.1069, allocations: 0 / 463 MB, free: 1.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003697/0.1072, allocations: 283.5 kB / 463.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.1073, allocations: 101 kB / 463.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.1074, allocations: 133.3 kB / 463.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.1074, allocations: 25.7 kB / 463.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.165e-05/0.1075, allocations: 96.5 kB / 463.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.733e-05/0.1076, allocations: 67 kB / 463.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.614e-05/0.1076, allocations: 29.7 kB / 463.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1078, allocations: 322.8 kB / 464 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.771e-05/0.1078, allocations: 59.91 kB / 464.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.198e-05/0.1079, allocations: 55.97 kB / 464.1 MB, free: 0.543 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.1082, allocations: 227.1 kB / 464.3 MB, free: 316 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1082, allocations: 0 / 464.3 MB, free: 316 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002512/0.1084, allocations: 243 kB / 464.6 MB, free: 60 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.087e-05/0.1085, allocations: 49.67 kB / 464.6 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1085, allocations: 0 / 464.6 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.1085, allocations: 0 / 464.6 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.1085, allocations: 4 kB / 464.6 MB, free: 0 / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.1085, allocations: 0 / 464.6 MB, free: 0 / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.531e-05/0.1086, allocations: 12.09 kB / 464.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.1086, allocations: 4 kB / 464.6 MB, free: 15.98 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.0001392/0.1088, allocations: 183.4 kB / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.1088, allocations: 19.69 kB / 464.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.897e-05/0.1088, allocations: 9.172 kB / 464.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1088, allocations: 3.938 kB / 464.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.1089, allocations: 4 kB / 464.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1089, allocations: 0 / 464.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/0.109, allocations: 201.4 kB / 465.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.109, allocations: 3.984 kB / 465.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.109, allocations: 0 / 465.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.109, allocations: 0 / 465.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.1091, allocations: 8 kB / 465.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1091, allocations: 0 / 465.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1091, allocations: 4 kB / 465.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003956/0.1095, allocations: 384.8 kB / 465.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.281e-05/0.1095, allocations: 92.91 kB / 465.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.1095, allocations: 4 kB / 465.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.669e-05/0.1096, allocations: 4 kB / 465.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.895e-05/0.1096, allocations: 4 kB / 465.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.1096, allocations: 4 kB / 465.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.6e-05/0.1097, allocations: 111.3 kB / 465.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1097, allocations: 0 / 465.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003475/0.11, allocations: 131.9 kB / 465.8 MB, free: 14.73 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.0003499/0.1104, allocations: 194.1 kB / 466 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005034/0.1109, allocations: 0.5656 MB / 466.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1109, allocations: 0 / 466.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003276/0.1113, allocations: 471.3 kB / 467 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.1115, allocations: 27.94 kB / 467 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005046/0.112, allocations: 388.7 kB / 467.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.1122, allocations: 0.7197 MB / 468.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.579e-05/0.1123, allocations: 4 kB / 468.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.233e-05/0.1123, allocations: 7.438 kB / 468.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1123, allocations: 3.938 kB / 468.1 MB, free: 12.29 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].