Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001603/0.001603, allocations: 176.3 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.47/1.47, allocations: 205.4 MB / 223.5 MB, free: 9.027 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.0008201/0.0008202, allocations: 87.92 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1785/0.1785, allocations: 38.07 MB / 358.3 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003816/0.0003817, allocations: 12 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3574, allocations: 56.32 MB / 481.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1406/0.4981, allocations: 92.58 MB / 0.5607 GB, free: 9.688 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.4985, allocations: 87.8 kB / 0.5608 GB, free: 9.605 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0444/0.5429, allocations: 12.33 MB / 0.5728 GB, free: 13.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.826e-06/0.5429, allocations: 0 / 0.5728 GB, free: 13.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.811e-05/0.543, allocations: 4 kB / 0.5728 GB, free: 13.25 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001151/0.5441, allocations: 0.6288 MB / 0.5734 GB, free: 12.56 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.099e-05/0.5442, allocations: 8.031 kB / 0.5734 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.2e-05/0.5443, allocations: 16.73 kB / 0.5734 GB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.5445, allocations: 215.9 kB / 0.5737 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.5445, allocations: 4.312 kB / 0.5737 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.5446, allocations: 8.312 kB / 0.5737 GB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000232/0.5448, allocations: 131.2 kB / 0.5738 GB, free: 12.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.5448, allocations: 192 / 0.5738 GB, free: 12.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.5448, allocations: 7.938 kB / 0.5738 GB, free: 12.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.5449, allocations: 0 / 0.5738 GB, free: 12.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.545, allocations: 96.28 kB / 0.5739 GB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002266/0.5452, allocations: 206.1 kB / 0.5741 GB, free: 11.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.5454, allocations: 146.9 kB / 0.5742 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.5456, allocations: 149.1 kB / 0.5744 GB, free: 11.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.5456, allocations: 4 kB / 0.5744 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.5456, allocations: 34.56 kB / 0.5744 GB, free: 11.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 1.513e-06/0.5456, allocations: 0 / 0.5744 GB, free: 11.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.000606/0.5462, allocations: 488.8 kB / 0.5749 GB, free: 10.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.186e-05/0.5463, allocations: 105.1 kB / 0.575 GB, free: 10.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.5465, allocations: 167.9 kB / 0.5751 GB, free: 10.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.5465, allocations: 29.7 kB / 0.5752 GB, free: 10.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.751e-05/0.5466, allocations: 104.8 kB / 0.5753 GB, free: 10.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.5467, allocations: 130 kB / 0.5754 GB, free: 10.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.5467, allocations: 3.938 kB / 0.5754 GB, free: 10.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.5469, allocations: 338.8 kB / 0.5757 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.547, allocations: 99.89 kB / 0.5758 GB, free: 9.949 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.5471, allocations: 95.91 kB / 0.5759 GB, free: 9.855 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003377/0.5474, allocations: 365.4 kB / 0.5762 GB, free: 9.484 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.5474, allocations: 0 / 0.5762 GB, free: 9.484 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003761/0.5478, allocations: 327 kB / 0.5766 GB, free: 9.152 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.134e-05/0.5479, allocations: 86.41 kB / 0.5766 GB, free: 9.062 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.5479, allocations: 3.938 kB / 0.5766 GB, free: 9.059 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.548, allocations: 4 kB / 0.5766 GB, free: 9.055 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.168e-06/0.548, allocations: 8.062 kB / 0.5767 GB, free: 9.047 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.548, allocations: 0 / 0.5767 GB, free: 9.047 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.486e-05/0.5481, allocations: 19.78 kB / 0.5767 GB, free: 9.027 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.5481, allocations: 8 kB / 0.5767 GB, free: 9.02 MB / 410.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.0002201/0.5484, allocations: 239.3 kB / 0.5769 GB, free: 8.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.5484, allocations: 23.72 kB / 0.5769 GB, free: 8.746 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/0.5484, allocations: 26.58 kB / 0.577 GB, free: 8.723 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.5484, allocations: 3.938 kB / 0.577 GB, free: 8.719 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.5484, allocations: 0 / 0.577 GB, free: 8.719 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.5485, allocations: 4 kB / 0.577 GB, free: 8.715 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.5487, allocations: 233.3 kB / 0.5772 GB, free: 8.438 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.5487, allocations: 0 / 0.5772 GB, free: 8.438 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.31e-07/0.5487, allocations: 0 / 0.5772 GB, free: 8.438 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.5487, allocations: 0 / 0.5772 GB, free: 8.438 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.5487, allocations: 15.94 kB / 0.5772 GB, free: 8.422 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.5487, allocations: 0 / 0.5772 GB, free: 8.422 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5487, allocations: 0 / 0.5772 GB, free: 8.422 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.5497, allocations: 0.9043 MB / 0.5781 GB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.614e-05/0.5498, allocations: 100.8 kB / 0.5782 GB, free: 7.375 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.5498, allocations: 11.94 kB / 0.5782 GB, free: 7.363 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.956e-05/0.5499, allocations: 4 kB / 0.5782 GB, free: 7.359 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.409e-05/0.5499, allocations: 8 kB / 0.5782 GB, free: 7.352 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.55, allocations: 8 kB / 0.5782 GB, free: 7.344 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.624e-05/0.5501, allocations: 135.2 kB / 0.5783 GB, free: 7.211 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5501, allocations: 0 / 0.5783 GB, free: 7.211 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00125/0.5513, allocations: 395.6 kB / 0.5787 GB, free: 6.824 MB / 410.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.001524/0.5529, allocations: 422.1 kB / 0.5791 GB, free: 6.406 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.5543, allocations: 1.585 MB / 0.5807 GB, free: 4.809 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5543, allocations: 3.938 kB / 0.5807 GB, free: 4.805 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.5553, allocations: 1.362 MB / 0.582 GB, free: 3.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.5555, allocations: 16 kB / 0.582 GB, free: 3.414 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009675/0.5565, allocations: 0.7309 MB / 0.5827 GB, free: 2.652 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.5569, allocations: 0.752 MB / 0.5835 GB, free: 1.875 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.485e-05/0.5569, allocations: 4 kB / 0.5835 GB, free: 1.871 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.385e-05/0.5569, allocations: 7.438 kB / 0.5835 GB, free: 1.863 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5569, allocations: 0 / 0.5835 GB, free: 1.863 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].