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.0009612/0.0009613, allocations: 175.5 kB / 17.4 MB, free: 4.418 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.575/1.575, allocations: 205.4 MB / 223.5 MB, free: 9.016 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.0008133/0.000813, allocations: 81.55 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1748/0.1748, allocations: 38.09 MB / 358.3 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003656/0.0003656, allocations: 16 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3186, allocations: 56.32 MB / 481.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.4475, allocations: 89.49 MB / 0.5577 GB, free: 12.8 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/0.4477, allocations: 87.81 kB / 0.5578 GB, free: 12.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01926/0.467, allocations: 5.728 MB / 0.5633 GB, free: 6.977 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.467, allocations: 0 / 0.5633 GB, free: 6.977 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.4671, allocations: 4 kB / 0.5633 GB, free: 6.973 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.0005355/0.4676, allocations: 468.6 kB / 0.5638 GB, free: 6.457 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.4676, allocations: 15.98 kB / 0.5638 GB, free: 6.441 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.959e-05/0.4677, allocations: 8.844 kB / 0.5638 GB, free: 6.434 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/0.4679, allocations: 192.1 kB / 0.564 GB, free: 6.207 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.837e-06/0.4679, allocations: 384 / 0.564 GB, free: 6.207 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.468, allocations: 4.375 kB / 0.564 GB, free: 6.203 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.4682, allocations: 98.83 kB / 0.5641 GB, free: 6.102 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.543e-06/0.4682, allocations: 192 / 0.5641 GB, free: 6.102 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.4682, allocations: 7.938 kB / 0.5641 GB, free: 6.094 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.4682, allocations: 4 kB / 0.5641 GB, free: 6.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.024e-05/0.4683, allocations: 63.94 kB / 0.5642 GB, free: 6.027 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000188/0.4685, allocations: 185.5 kB / 0.5643 GB, free: 5.797 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.4686, allocations: 130.5 kB / 0.5645 GB, free: 5.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.4688, allocations: 120.8 kB / 0.5646 GB, free: 5.539 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.788e-06/0.4688, allocations: 3.938 kB / 0.5646 GB, free: 5.535 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.4688, allocations: 38.56 kB / 0.5646 GB, free: 5.488 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 2.825e-06/0.4688, allocations: 0 / 0.5646 GB, free: 5.488 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004226/0.4693, allocations: 296.1 kB / 0.5649 GB, free: 5.188 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.4693, allocations: 89.11 kB / 0.565 GB, free: 5.082 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.4694, allocations: 135.5 kB / 0.5651 GB, free: 4.941 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.4695, allocations: 25.7 kB / 0.5652 GB, free: 4.91 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.648e-05/0.4695, allocations: 92.47 kB / 0.5652 GB, free: 4.812 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.474e-05/0.4696, allocations: 67 kB / 0.5653 GB, free: 4.746 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.4696, allocations: 0 / 0.5653 GB, free: 4.746 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.4697, allocations: 326.9 kB / 0.5656 GB, free: 4.418 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.081e-05/0.4698, allocations: 59.95 kB / 0.5657 GB, free: 4.359 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.923e-05/0.4699, allocations: 63.86 kB / 0.5657 GB, free: 4.297 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002328/0.4702, allocations: 232.5 kB / 0.566 GB, free: 4.055 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.4702, allocations: 0 / 0.566 GB, free: 4.055 MB / 394.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002592/0.4704, allocations: 223.1 kB / 0.5662 GB, free: 3.824 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.159e-05/0.4705, allocations: 57.61 kB / 0.5662 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.4705, allocations: 0 / 0.5662 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.4705, allocations: 0 / 0.5662 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-06/0.4706, allocations: 8.062 kB / 0.5662 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.4706, allocations: 0 / 0.5662 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.922e-05/0.4706, allocations: 11.84 kB / 0.5662 GB, free: 3.742 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.188e-05/0.4707, allocations: 8 kB / 0.5662 GB, free: 3.734 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.0001595/0.4708, allocations: 183.4 kB / 0.5664 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.504e-05/0.4709, allocations: 19.78 kB / 0.5664 GB, free: 3.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.021e-05/0.4709, allocations: 9.188 kB / 0.5665 GB, free: 3.516 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.4709, allocations: 0 / 0.5665 GB, free: 3.516 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4709, allocations: 0 / 0.5665 GB, free: 3.516 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.4709, allocations: 7.938 kB / 0.5665 GB, free: 3.508 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.4711, allocations: 193.5 kB / 0.5666 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.4711, allocations: 0 / 0.5666 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.4711, allocations: 4 kB / 0.5666 GB, free: 3.266 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.4711, allocations: 3.938 kB / 0.5667 GB, free: 3.262 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.4711, allocations: 4 kB / 0.5667 GB, free: 3.258 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.4711, allocations: 0 / 0.5667 GB, free: 3.258 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4711, allocations: 0 / 0.5667 GB, free: 3.258 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004833/0.4716, allocations: 394.6 kB / 0.567 GB, free: 2.848 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.717e-05/0.4717, allocations: 92.86 kB / 0.5671 GB, free: 2.738 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.4717, allocations: 7.938 kB / 0.5671 GB, free: 2.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.86e-05/0.4718, allocations: 11.94 kB / 0.5671 GB, free: 2.719 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.718e-05/0.4718, allocations: 4 kB / 0.5671 GB, free: 2.715 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.537e-05/0.4718, allocations: 11.98 kB / 0.5672 GB, free: 2.703 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.717e-05/0.4719, allocations: 102.1 kB / 0.5673 GB, free: 2.605 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4719, allocations: 3.938 kB / 0.5673 GB, free: 2.602 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004834/0.4724, allocations: 143.9 kB / 0.5674 GB, free: 2.461 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.0005254/0.473, allocations: 195.1 kB / 0.5676 GB, free: 2.258 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005938/0.4736, allocations: 0.5617 MB / 0.5681 GB, free: 1.684 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4736, allocations: 0 / 0.5681 GB, free: 1.684 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.474, allocations: 471.3 kB / 0.5686 GB, free: 1.211 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.4742, allocations: 16 kB / 0.5686 GB, free: 1.195 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005976/0.4748, allocations: 436 kB / 0.569 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.4751, allocations: 0.72 MB / 0.5697 GB, free: 15.99 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.944e-05/0.4752, allocations: 0 / 0.5697 GB, free: 15.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.565e-05/0.4752, allocations: 11.44 kB / 0.5697 GB, free: 15.98 MB / 410.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4752, allocations: 0 / 0.5697 GB, free: 15.98 MB / 410.7 MB [CodegenCFunctions.tpl:5450:13-5450:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].