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.001376/0.001376, allocations: 180.5 kB / 16.39 MB, free: 5.762 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.258/1.258, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007677/0.0007679, allocations: 93.78 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1694/0.1694, allocations: 38.05 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.0002877, allocations: 12 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2757, allocations: 56.32 MB / 480.3 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1124/0.3881, allocations: 92.83 MB / 0.5597 GB, free: 9.605 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.3884, allocations: 83.95 kB / 0.5598 GB, free: 9.523 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04048/0.4289, allocations: 12.11 MB / 0.5716 GB, free: 13.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4289, allocations: 0 / 0.5716 GB, free: 13.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.429, allocations: 4 kB / 0.5716 GB, free: 13.39 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009029/0.4299, allocations: 0.5587 MB / 0.5722 GB, free: 12.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.4299, allocations: 8.031 kB / 0.5722 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.82e-05/0.43, allocations: 11.91 kB / 0.5722 GB, free: 12.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.4301, allocations: 198.8 kB / 0.5724 GB, free: 12.53 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-06/0.4302, allocations: 0 / 0.5724 GB, free: 12.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.4302, allocations: 0 / 0.5724 GB, free: 12.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001236/0.4303, allocations: 73.66 kB / 0.5724 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.8e-06/0.4303, allocations: 0 / 0.5724 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.4303, allocations: 0 / 0.5724 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.4303, allocations: 4 kB / 0.5724 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.593e-05/0.4304, allocations: 43.91 kB / 0.5725 GB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.4305, allocations: 185.5 kB / 0.5727 GB, free: 12.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.019e-05/0.4306, allocations: 71.23 kB / 0.5727 GB, free: 12.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-06/0.4306, allocations: 3.938 kB / 0.5727 GB, free: 12.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.4307, allocations: 30.56 kB / 0.5728 GB, free: 12.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 9.72e-07/0.4307, allocations: 0 / 0.5728 GB, free: 12.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003291/0.431, allocations: 300.5 kB / 0.573 GB, free: 11.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.4311, allocations: 89.11 kB / 0.5731 GB, free: 11.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.968e-05/0.4312, allocations: 141.3 kB / 0.5733 GB, free: 11.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.4312, allocations: 25.7 kB / 0.5733 GB, free: 11.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.413e-05/0.4312, allocations: 96.38 kB / 0.5734 GB, free: 11.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.197e-05/0.4313, allocations: 47.27 kB / 0.5734 GB, free: 11.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-06/0.4313, allocations: 0 / 0.5734 GB, free: 11.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.027e-05/0.4314, allocations: 330.8 kB / 0.5737 GB, free: 10.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.94e-05/0.4314, allocations: 35.97 kB / 0.5738 GB, free: 10.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.422e-05/0.4315, allocations: 43.34 kB / 0.5738 GB, free: 10.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.69e-05/0.4316, allocations: 73.67 kB / 0.5739 GB, free: 10.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.4316, allocations: 8.031 kB / 0.5739 GB, free: 10.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001826/0.4318, allocations: 167.2 kB / 0.5741 GB, free: 10.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.17e-05/0.4318, allocations: 49.67 kB / 0.5741 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.4318, allocations: 3.938 kB / 0.5741 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.4319, allocations: 0 / 0.5741 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.4319, allocations: 4 kB / 0.5741 GB, free: 10.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.4319, allocations: 0 / 0.5741 GB, free: 10.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.575e-05/0.4319, allocations: 11.84 kB / 0.5741 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.4319, allocations: 4 kB / 0.5741 GB, free: 10.55 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.0001115/0.4321, allocations: 175.5 kB / 0.5743 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.4321, allocations: 11.91 kB / 0.5743 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.689e-05/0.4321, allocations: 8.844 kB / 0.5743 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.4321, allocations: 0 / 0.5743 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.4321, allocations: 0 / 0.5743 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.4321, allocations: 0 / 0.5743 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.4323, allocations: 197.5 kB / 0.5745 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4323, allocations: 4 kB / 0.5745 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.4323, allocations: 0 / 0.5745 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.4323, allocations: 0 / 0.5745 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.4323, allocations: 4 kB / 0.5745 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.4323, allocations: 4 kB / 0.5745 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4323, allocations: 0 / 0.5745 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003618/0.4327, allocations: 290.5 kB / 0.5748 GB, free: 9.777 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.4327, allocations: 96.81 kB / 0.5749 GB, free: 9.664 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.4328, allocations: 4 kB / 0.5749 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.759e-05/0.4328, allocations: 0 / 0.5749 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-05/0.4329, allocations: 7.984 kB / 0.5749 GB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.4329, allocations: 4 kB / 0.5749 GB, free: 9.648 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.611e-05/0.433, allocations: 119.3 kB / 0.575 GB, free: 9.531 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.433, allocations: 0 / 0.575 GB, free: 9.531 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008718/0.4338, allocations: 359.6 kB / 0.5754 GB, free: 9.18 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.0008029/0.4347, allocations: 418 kB / 0.5758 GB, free: 8.766 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003119/0.435, allocations: 323.3 kB / 0.5761 GB, free: 8.438 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.435, allocations: 8.062 kB / 0.5761 GB, free: 8.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001858/0.4352, allocations: 251.3 kB / 0.5763 GB, free: 8.172 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000146/0.4353, allocations: 15.98 kB / 0.5763 GB, free: 8.156 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004635/0.4358, allocations: 385.4 kB / 0.5767 GB, free: 7.754 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.436, allocations: 0.716 MB / 0.5774 GB, free: 7.012 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.385e-05/0.4361, allocations: 3.953 kB / 0.5774 GB, free: 7.008 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.618e-06/0.4361, allocations: 11.44 kB / 0.5774 GB, free: 7 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4361, allocations: 7.938 kB / 0.5774 GB, free: 6.992 MB / 410.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].