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.001849/0.001849, allocations: 186.5 kB / 17.27 MB, free: 4.5 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.479/1.479, allocations: 205.1 MB / 223.1 MB, free: 8.477 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.0009987/0.0009987, allocations: 103.5 kB / 270.5 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1758/0.1758, allocations: 38.02 MB / 355.9 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009582/0.0009583, allocations: 55.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2548, allocations: 55.24 MB / 477.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002957/0.2578, allocations: 2.193 MB / 479.3 MB, free: 8.348 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002665/0.2604, allocations: 2.222 MB / 481.5 MB, free: 6.887 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.301e-05/0.2605, allocations: 3.938 kB / 481.5 MB, free: 6.883 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.2607, allocations: 9.641 kB / 481.5 MB, free: 6.879 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 9.618e-05/0.2608, allocations: 43.22 kB / 481.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.2623, allocations: 0.6737 MB / 482.2 MB, free: 6.621 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000188/0.2625, allocations: 178.9 kB / 482.4 MB, free: 6.578 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.688e-05/0.2626, allocations: 7.453 kB / 482.4 MB, free: 6.574 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.2627, allocations: 34.39 kB / 482.5 MB, free: 6.562 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.459e-05/0.2628, allocations: 61.98 kB / 482.5 MB, free: 6.543 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/0.2628, allocations: 6.281 kB / 482.5 MB, free: 6.539 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001714/0.2646, allocations: 1.213 MB / 483.7 MB, free: 6.168 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.109e-05/0.2646, allocations: 33.09 kB / 483.8 MB, free: 6.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.914e-05/0.2647, allocations: 44.84 kB / 483.8 MB, free: 6.133 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001764/0.2665, allocations: 1.28 MB / 485.1 MB, free: 5.895 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2665, allocations: 0.7031 kB / 485.1 MB, free: 5.895 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2665, allocations: 5.312 kB / 485.1 MB, free: 5.891 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.2665, allocations: 0 / 485.1 MB, free: 5.891 MB / 314.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.0005548/0.267, allocations: 0.536 MB / 485.6 MB, free: 5.391 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.2671, allocations: 10.33 kB / 485.6 MB, free: 5.391 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.99e-05/0.2671, allocations: 8.969 kB / 485.7 MB, free: 5.387 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.2673, allocations: 201.3 kB / 485.9 MB, free: 5.168 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.2673, allocations: 5.5 kB / 485.9 MB, free: 5.164 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.2673, allocations: 5.312 kB / 485.9 MB, free: 5.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/0.2675, allocations: 71.34 kB / 485.9 MB, free: 5.125 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.2675, allocations: 0 / 485.9 MB, free: 5.125 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.2675, allocations: 5.375 kB / 485.9 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.2675, allocations: 0 / 485.9 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.14e-05/0.2676, allocations: 42.72 kB / 486 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001131/0.2677, allocations: 175.8 kB / 486.1 MB, free: 4.914 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.358e-05/0.2678, allocations: 81.53 kB / 486.2 MB, free: 4.863 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.302e-05/0.2678, allocations: 58.05 kB / 486.3 MB, free: 4.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.034e-06/0.2679, allocations: 1.375 kB / 486.3 MB, free: 4.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.615e-05/0.2679, allocations: 34.56 kB / 486.3 MB, free: 4.797 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 9.02e-07/0.2679, allocations: 1.375 kB / 486.3 MB, free: 4.797 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003128/0.2682, allocations: 224.3 kB / 486.5 MB, free: 4.703 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.2682, allocations: 88.06 kB / 486.6 MB, free: 4.609 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.2684, allocations: 156 kB / 486.8 MB, free: 4.492 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.021e-05/0.2684, allocations: 29.64 kB / 486.8 MB, free: 4.457 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.322e-05/0.2684, allocations: 99.33 kB / 486.9 MB, free: 4.363 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.655e-05/0.2685, allocations: 44.14 kB / 486.9 MB, free: 4.328 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/0.2685, allocations: 29.78 kB / 487 MB, free: 4.305 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.423e-05/0.2686, allocations: 322.2 kB / 487.3 MB, free: 3.988 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.945e-05/0.2686, allocations: 36.83 kB / 487.3 MB, free: 3.984 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.278e-05/0.2687, allocations: 46.44 kB / 487.4 MB, free: 3.973 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.2689, allocations: 175.8 kB / 487.5 MB, free: 3.887 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2689, allocations: 3.938 kB / 487.5 MB, free: 3.883 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000195/0.2691, allocations: 176.3 kB / 487.7 MB, free: 3.797 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.578e-05/0.2691, allocations: 51.06 kB / 487.8 MB, free: 3.762 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2692, allocations: 0 / 487.8 MB, free: 3.762 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.2692, allocations: 4.719 kB / 487.8 MB, free: 3.758 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.234e-06/0.2692, allocations: 5.188 kB / 487.8 MB, free: 3.754 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.2692, allocations: 0 / 487.8 MB, free: 3.754 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.211e-05/0.2693, allocations: 4.375 kB / 487.8 MB, free: 3.754 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.2693, allocations: 5 kB / 487.8 MB, free: 3.754 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.2694, allocations: 174.3 kB / 488 MB, free: 3.598 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.425e-05/0.2695, allocations: 17.17 kB / 488 MB, free: 3.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.117e-05/0.2695, allocations: 9.047 kB / 488 MB, free: 3.586 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.2695, allocations: 0 / 488 MB, free: 3.586 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2695, allocations: 9.797 kB / 488 MB, free: 3.578 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.2695, allocations: 0 / 488 MB, free: 3.578 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000134/0.2697, allocations: 198.8 kB / 488.2 MB, free: 3.367 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2697, allocations: 4 kB / 488.2 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.432e-06/0.2697, allocations: 0.5625 kB / 488.2 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.2697, allocations: 1.594 kB / 488.2 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.2697, allocations: 3.484 kB / 488.2 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2697, allocations: 1.469 kB / 488.2 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2697, allocations: 0.5625 kB / 488.2 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007845/0.2705, allocations: 0.9574 MB / 489.2 MB, free: 2.609 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.182e-05/0.2705, allocations: 88.25 kB / 489.2 MB, free: 2.508 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.2706, allocations: 4.297 kB / 489.2 MB, free: 2.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.941e-05/0.2707, allocations: 1.438 kB / 489.3 MB, free: 2.508 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.2707, allocations: 11.19 kB / 489.3 MB, free: 2.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.2707, allocations: 6.797 kB / 489.3 MB, free: 2.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.481e-05/0.2708, allocations: 115.8 kB / 489.4 MB, free: 2.414 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2708, allocations: 4.031 kB / 489.4 MB, free: 2.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001795/0.2726, allocations: 332.7 kB / 489.7 MB, free: 2.367 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009869/0.2736, allocations: 372.2 kB / 490.1 MB, free: 2.207 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000361/0.274, allocations: 335.5 kB / 490.4 MB, free: 2.039 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.274, allocations: 1.156 kB / 490.4 MB, free: 2.039 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001952/0.2742, allocations: 262.3 kB / 490.7 MB, free: 1.883 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.2745, allocations: 19.22 kB / 490.7 MB, free: 1.875 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005917/0.2751, allocations: 0.5112 MB / 491.2 MB, free: 1.531 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.2752, allocations: 0.72 MB / 491.9 MB, free: 0.832 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.444e-05/0.2752, allocations: 2.359 kB / 491.9 MB, free: 0.832 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.977e-06/0.2753, allocations: 8.844 kB / 491.9 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2753, allocations: 4 kB / 491.9 MB, free: 0.8203 MB / 314.7 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].