Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00156/0.00156, allocations: 175.1 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.574/1.574, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008071/0.0008071, allocations: 78.67 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1923/0.1923, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.407e-05/3.41e-05, allocations: 0 / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1149, allocations: 56.31 MB / 474.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3425/0.4575, allocations: 92.72 MB / 0.5535 GB, free: 9.391 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.4578, allocations: 79.39 kB / 0.5536 GB, free: 9.348 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04011/0.4979, allocations: 12.09 MB / 0.5654 GB, free: 15.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.498, allocations: 0 / 0.5654 GB, free: 15.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.498, allocations: 0 / 0.5654 GB, free: 15.33 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008109/0.4988, allocations: 0.5496 MB / 0.5659 GB, free: 14.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.4988, allocations: 8.031 kB / 0.5659 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.083e-05/0.4989, allocations: 11.91 kB / 0.5659 GB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.4991, allocations: 194.4 kB / 0.5661 GB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-06/0.4991, allocations: 0 / 0.5661 GB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.4991, allocations: 0 / 0.5661 GB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001414/0.4993, allocations: 73.03 kB / 0.5662 GB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.4993, allocations: 4 kB / 0.5662 GB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.4993, allocations: 0 / 0.5662 GB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.4993, allocations: 0 / 0.5662 GB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.303e-05/0.4994, allocations: 42.28 kB / 0.5662 GB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001631/0.4996, allocations: 180.2 kB / 0.5664 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.675e-05/0.4997, allocations: 75.11 kB / 0.5665 GB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.398e-05/0.4997, allocations: 59.06 kB / 0.5665 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.359e-06/0.4998, allocations: 0 / 0.5665 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.4998, allocations: 30.56 kB / 0.5666 GB, free: 14.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.4998, allocations: 0 / 0.5666 GB, free: 14.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002937/0.5001, allocations: 168.1 kB / 0.5667 GB, free: 13.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.5002, allocations: 92.78 kB / 0.5668 GB, free: 13.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.5003, allocations: 144 kB / 0.5669 GB, free: 13.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.5003, allocations: 25.7 kB / 0.567 GB, free: 13.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.416e-05/0.5004, allocations: 95.06 kB / 0.5671 GB, free: 13.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.839e-05/0.5004, allocations: 46.94 kB / 0.5671 GB, free: 13.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.563e-06/0.5004, allocations: 0 / 0.5671 GB, free: 13.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.5006, allocations: 332.9 kB / 0.5674 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.523e-05/0.5006, allocations: 45.56 kB / 0.5675 GB, free: 13.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.555e-05/0.5007, allocations: 38.55 kB / 0.5675 GB, free: 13.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.302e-05/0.5008, allocations: 80.34 kB / 0.5676 GB, free: 12.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5008, allocations: 0 / 0.5676 GB, free: 12.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001935/0.501, allocations: 160.4 kB / 0.5677 GB, free: 12.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.472e-05/0.501, allocations: 45.69 kB / 0.5678 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.5011, allocations: 3.984 kB / 0.5678 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.5011, allocations: 0 / 0.5678 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.144e-06/0.5011, allocations: 4 kB / 0.5678 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.5011, allocations: 0 / 0.5678 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.616e-05/0.5011, allocations: 15.91 kB / 0.5678 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.5012, allocations: 7.188 kB / 0.5678 GB, free: 12.73 MB / 378.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 9.674e-05/0.5013, allocations: 154.2 kB / 0.5679 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.07e-05/0.5013, allocations: 15.89 kB / 0.568 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.634e-05/0.5013, allocations: 8.75 kB / 0.568 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.5013, allocations: 0 / 0.568 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.5013, allocations: 0 / 0.568 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.5013, allocations: 3.938 kB / 0.568 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001303/0.5015, allocations: 191 kB / 0.5682 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.5015, allocations: 4 kB / 0.5682 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.5015, allocations: 0 / 0.5682 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.5015, allocations: 4 kB / 0.5682 GB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.5015, allocations: 7.984 kB / 0.5682 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5015, allocations: 0 / 0.5682 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.5015, allocations: 0 / 0.5682 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003322/0.5019, allocations: 283.5 kB / 0.5684 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.686e-05/0.5019, allocations: 96.81 kB / 0.5685 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.502, allocations: 4 kB / 0.5685 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.919e-05/0.502, allocations: 8.031 kB / 0.5685 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.912e-05/0.502, allocations: 3.5 kB / 0.5685 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.5021, allocations: 8 kB / 0.5686 GB, free: 11.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.393e-05/0.5021, allocations: 111.6 kB / 0.5687 GB, free: 11.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5021, allocations: 0 / 0.5687 GB, free: 11.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001043/0.5032, allocations: 366.3 kB / 0.569 GB, free: 11.45 MB / 378.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.0009885/0.5042, allocations: 421.8 kB / 0.5694 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003531/0.5045, allocations: 325.4 kB / 0.5697 GB, free: 10.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5046, allocations: 0 / 0.5697 GB, free: 10.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001974/0.5048, allocations: 258.7 kB / 0.57 GB, free: 10.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001568/0.5049, allocations: 14.52 kB / 0.57 GB, free: 10.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000374/0.5053, allocations: 238.3 kB / 0.5702 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.5056, allocations: 0.7239 MB / 0.5709 GB, free: 9.645 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.452e-05/0.5056, allocations: 4 kB / 0.5709 GB, free: 9.641 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.034e-05/0.5056, allocations: 7.438 kB / 0.5709 GB, free: 9.637 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5056, allocations: 0 / 0.5709 GB, free: 9.637 MB / 378.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].