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.00102/0.00102, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.506/1.506, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009006/0.0009007, allocations: 86.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.158/0.158, allocations: 37.98 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.925e-05/2.927e-05, allocations: 0 / 417.7 MB, free: 29.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1132, allocations: 56.33 MB / 474.1 MB, free: 4.785 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3773/0.4906, allocations: 89.35 MB / 0.5502 GB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001918/0.4908, allocations: 83.41 kB / 0.5503 GB, free: 10.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01769/0.5085, allocations: 5.7 MB / 0.5559 GB, free: 7.312 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5085, allocations: 0 / 0.5559 GB, free: 7.312 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.5085, allocations: 0 / 0.5559 GB, free: 7.312 MB / 362.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.0002754/0.5088, allocations: 451.3 kB / 0.5563 GB, free: 6.828 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.5089, allocations: 11.98 kB / 0.5563 GB, free: 6.816 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.819e-05/0.5089, allocations: 11.84 kB / 0.5563 GB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.5091, allocations: 201.5 kB / 0.5565 GB, free: 6.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.5091, allocations: 4 kB / 0.5565 GB, free: 6.566 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.556e-05/0.5091, allocations: 0 / 0.5565 GB, free: 6.566 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001447/0.5092, allocations: 104.4 kB / 0.5566 GB, free: 6.473 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.5093, allocations: 0 / 0.5566 GB, free: 6.473 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.5093, allocations: 4 kB / 0.5566 GB, free: 6.469 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.5093, allocations: 0 / 0.5566 GB, free: 6.469 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.762e-05/0.5094, allocations: 62.67 kB / 0.5567 GB, free: 6.418 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/0.5095, allocations: 184.2 kB / 0.5568 GB, free: 6.195 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.5096, allocations: 128 kB / 0.557 GB, free: 6.117 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.578e-05/0.5097, allocations: 118.3 kB / 0.5571 GB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.5097, allocations: 0 / 0.5571 GB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.513e-05/0.5097, allocations: 34.56 kB / 0.5571 GB, free: 6.008 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 9.51e-07/0.5097, allocations: 0 / 0.5571 GB, free: 6.008 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0002553/0.51, allocations: 224.3 kB / 0.5573 GB, free: 5.801 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.51, allocations: 96.97 kB / 0.5574 GB, free: 5.691 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.582e-05/0.5101, allocations: 117.3 kB / 0.5575 GB, free: 5.574 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.5101, allocations: 25.7 kB / 0.5575 GB, free: 5.543 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.292e-05/0.5101, allocations: 96.08 kB / 0.5576 GB, free: 5.449 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.46e-05/0.5102, allocations: 65.72 kB / 0.5577 GB, free: 5.395 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-06/0.5102, allocations: 0 / 0.5577 GB, free: 5.395 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.421e-05/0.5103, allocations: 326.3 kB / 0.558 GB, free: 5.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.22e-05/0.5103, allocations: 57.03 kB / 0.5581 GB, free: 5.027 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.398e-05/0.5104, allocations: 58.84 kB / 0.5581 GB, free: 4.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.577e-05/0.5105, allocations: 111.5 kB / 0.5582 GB, free: 4.879 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.5105, allocations: 4 kB / 0.5582 GB, free: 4.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000195/0.5107, allocations: 223.4 kB / 0.5584 GB, free: 4.668 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/0.5107, allocations: 57.5 kB / 0.5585 GB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.5107, allocations: 0 / 0.5585 GB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.5108, allocations: 0 / 0.5585 GB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.463e-06/0.5108, allocations: 64 / 0.5585 GB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.5108, allocations: 7.938 kB / 0.5585 GB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.448e-05/0.5108, allocations: 11.94 kB / 0.5585 GB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.809e-05/0.5109, allocations: 8 kB / 0.5585 GB, free: 4.582 MB / 362.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 () * 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 6.963e-05/0.5109, allocations: 157.8 kB / 0.5587 GB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.882e-05/0.511, allocations: 19.8 kB / 0.5587 GB, free: 4.398 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.648e-05/0.511, allocations: 16.64 kB / 0.5587 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.511, allocations: 0 / 0.5587 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.511, allocations: 0 / 0.5587 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.511, allocations: 0 / 0.5587 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.692e-05/0.5111, allocations: 200.3 kB / 0.5589 GB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.5111, allocations: 0 / 0.5589 GB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.5111, allocations: 7.938 kB / 0.5589 GB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.5111, allocations: 0 / 0.5589 GB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.5111, allocations: 7.953 kB / 0.5589 GB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.5111, allocations: 0 / 0.5589 GB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.5111, allocations: 0 / 0.5589 GB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003225/0.5115, allocations: 388.2 kB / 0.5593 GB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.382e-05/0.5115, allocations: 100.9 kB / 0.5594 GB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.5115, allocations: 4 kB / 0.5594 GB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.729e-05/0.5116, allocations: 4 kB / 0.5594 GB, free: 3.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.689e-05/0.5116, allocations: 4 kB / 0.5594 GB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.5116, allocations: 8 kB / 0.5594 GB, free: 3.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.802e-05/0.5117, allocations: 106.7 kB / 0.5595 GB, free: 3.551 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5117, allocations: 0 / 0.5595 GB, free: 3.551 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003181/0.512, allocations: 139.8 kB / 0.5596 GB, free: 3.418 MB / 362.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 () * 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.0003187/0.5123, allocations: 194.7 kB / 0.5598 GB, free: 3.227 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000416/0.5127, allocations: 0.5696 MB / 0.5604 GB, free: 2.902 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5128, allocations: 0 / 0.5604 GB, free: 2.902 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.513, allocations: 469 kB / 0.5608 GB, free: 2.664 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000151/0.5132, allocations: 11.98 kB / 0.5608 GB, free: 2.652 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003379/0.5135, allocations: 289.5 kB / 0.5611 GB, free: 2.383 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.5136, allocations: 0.724 MB / 0.5618 GB, free: 1.633 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.471e-05/0.5137, allocations: 4 kB / 0.5618 GB, free: 1.629 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.456e-06/0.5137, allocations: 7.438 kB / 0.5618 GB, free: 1.621 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5137, allocations: 0 / 0.5618 GB, free: 1.621 MB / 362.7 MB [CodegenCFunctions.tpl:5352:15-5352:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].