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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.00125/0.00125, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008274/0.0008274, allocations: 100.1 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1934/0.1934, allocations: 38.06 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002863/0.0002863, allocations: 15.98 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2674, allocations: 56.31 MB / 480.3 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1181/0.3855, allocations: 89.46 MB / 0.5564 GB, free: 12.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.3858, allocations: 83.95 kB / 0.5565 GB, free: 12.9 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01926/0.4051, allocations: 5.715 MB / 0.5621 GB, free: 7.176 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4051, allocations: 0 / 0.5621 GB, free: 7.176 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.4051, allocations: 0 / 0.5621 GB, free: 7.176 MB / 394.7 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.000441/0.4056, allocations: 468.4 kB / 0.5625 GB, free: 6.664 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.4056, allocations: 15.98 kB / 0.5625 GB, free: 6.648 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.785e-05/0.4057, allocations: 7.906 kB / 0.5625 GB, free: 6.641 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.4059, allocations: 193.5 kB / 0.5627 GB, free: 6.414 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.4059, allocations: 0 / 0.5627 GB, free: 6.414 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.412e-05/0.4059, allocations: 4 kB / 0.5627 GB, free: 6.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.4061, allocations: 97.64 kB / 0.5628 GB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.4061, allocations: 0 / 0.5628 GB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.4061, allocations: 0 / 0.5628 GB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.4061, allocations: 0 / 0.5628 GB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.347e-05/0.4062, allocations: 59.92 kB / 0.5629 GB, free: 6.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001526/0.4064, allocations: 189.5 kB / 0.5631 GB, free: 6.016 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.4065, allocations: 134.5 kB / 0.5632 GB, free: 5.875 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.569e-06/0.4065, allocations: 0 / 0.5632 GB, free: 5.875 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.4065, allocations: 38.56 kB / 0.5632 GB, free: 5.828 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 1.092e-06/0.4065, allocations: 0 / 0.5632 GB, free: 5.828 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004816/0.407, allocations: 388.5 kB / 0.5636 GB, free: 5.418 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.4071, allocations: 93.05 kB / 0.5637 GB, free: 5.309 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.976e-05/0.4072, allocations: 121.2 kB / 0.5638 GB, free: 5.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.4072, allocations: 25.7 kB / 0.5638 GB, free: 5.148 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.39e-05/0.4073, allocations: 96.45 kB / 0.5639 GB, free: 5.047 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.344e-05/0.4073, allocations: 63 kB / 0.564 GB, free: 4.984 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-06/0.4073, allocations: 4.031 kB / 0.564 GB, free: 4.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.408e-05/0.4074, allocations: 326.8 kB / 0.5643 GB, free: 4.652 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.951e-05/0.4075, allocations: 59.89 kB / 0.5643 GB, free: 4.594 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.6e-05/0.4076, allocations: 59.92 kB / 0.5644 GB, free: 4.535 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.4077, allocations: 113.6 kB / 0.5645 GB, free: 4.418 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4077, allocations: 0 / 0.5645 GB, free: 4.418 MB / 394.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002401/0.4079, allocations: 219.2 kB / 0.5647 GB, free: 4.191 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.344e-05/0.408, allocations: 53.67 kB / 0.5648 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.408, allocations: 0 / 0.5648 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.408, allocations: 4.062 kB / 0.5648 GB, free: 4.129 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.213e-06/0.408, allocations: 3.938 kB / 0.5648 GB, free: 4.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.4081, allocations: 4 kB / 0.5648 GB, free: 4.121 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.602e-05/0.4081, allocations: 11.84 kB / 0.5648 GB, free: 4.109 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.4081, allocations: 11.98 kB / 0.5648 GB, free: 4.098 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001246/0.4083, allocations: 175.5 kB / 0.565 GB, free: 3.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.201e-05/0.4083, allocations: 15.86 kB / 0.565 GB, free: 3.895 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.541e-05/0.4083, allocations: 9.188 kB / 0.565 GB, free: 3.887 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.4083, allocations: 0 / 0.565 GB, free: 3.887 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4083, allocations: 4 kB / 0.565 GB, free: 3.883 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.4083, allocations: 3.938 kB / 0.565 GB, free: 3.879 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.4085, allocations: 193.5 kB / 0.5652 GB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.4085, allocations: 0 / 0.5652 GB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.8e-07/0.4085, allocations: 0 / 0.5652 GB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.4085, allocations: 4 kB / 0.5652 GB, free: 3.637 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.4085, allocations: 11.94 kB / 0.5652 GB, free: 3.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.4085, allocations: 0 / 0.5652 GB, free: 3.625 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4085, allocations: 4 kB / 0.5652 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004118/0.4089, allocations: 391 kB / 0.5656 GB, free: 3.215 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.927e-05/0.409, allocations: 88.95 kB / 0.5657 GB, free: 3.109 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.409, allocations: 4 kB / 0.5657 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.976e-05/0.4091, allocations: 4 kB / 0.5657 GB, free: 3.102 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.784e-05/0.4091, allocations: 7.938 kB / 0.5657 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.4091, allocations: 15.98 kB / 0.5657 GB, free: 3.078 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.687e-05/0.4092, allocations: 97.3 kB / 0.5658 GB, free: 2.984 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4092, allocations: 4 kB / 0.5658 GB, free: 2.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003603/0.4096, allocations: 139.9 kB / 0.5659 GB, free: 2.844 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000372/0.4099, allocations: 202.8 kB / 0.5661 GB, free: 2.641 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005195/0.4105, allocations: 0.5695 MB / 0.5667 GB, free: 2.059 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4105, allocations: 0 / 0.5667 GB, free: 2.059 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003744/0.4109, allocations: 471.3 kB / 0.5671 GB, free: 1.586 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001474/0.411, allocations: 12 kB / 0.5671 GB, free: 1.574 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005422/0.4116, allocations: 439.9 kB / 0.5676 GB, free: 1.113 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.4119, allocations: 0.7238 MB / 0.5683 GB, free: 372 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.644e-05/0.4119, allocations: 4 kB / 0.5683 GB, free: 368 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.758e-06/0.4119, allocations: 7.438 kB / 0.5683 GB, free: 360 kB / 394.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4119, allocations: 0 / 0.5683 GB, free: 360 kB / 394.7 MB [CodegenCFunctions.tpl:5437:13-5437:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].