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.001002/0.001002, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.436/1.436, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000929/0.000929, allocations: 89.64 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1663/0.1663, allocations: 37.99 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.071e-05/2.071e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1101, allocations: 56.33 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3688/0.4789, allocations: 92.05 MB / 0.5459 GB, free: 2.895 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.4793, allocations: 83.94 kB / 0.5459 GB, free: 2.812 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04278/0.5221, allocations: 12.03 MB / 0.5577 GB, free: 6.785 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5221, allocations: 4 kB / 0.5577 GB, free: 6.781 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.5221, allocations: 4 kB / 0.5577 GB, free: 6.777 MB / 395.1 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.0009063/0.5231, allocations: 0.5391 MB / 0.5582 GB, free: 6.188 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.5231, allocations: 8.031 kB / 0.5582 GB, free: 6.18 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.287e-05/0.5232, allocations: 8.656 kB / 0.5582 GB, free: 6.172 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002211/0.5234, allocations: 198.8 kB / 0.5584 GB, free: 5.938 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.5234, allocations: 0 / 0.5584 GB, free: 5.938 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.5234, allocations: 7.938 kB / 0.5584 GB, free: 5.93 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.823e-05/0.5235, allocations: 31.98 kB / 0.5585 GB, free: 5.898 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.5237, allocations: 73.66 kB / 0.5585 GB, free: 5.82 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.5237, allocations: 4 kB / 0.5585 GB, free: 5.816 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.5237, allocations: 0 / 0.5585 GB, free: 5.816 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.5237, allocations: 3.938 kB / 0.5585 GB, free: 5.812 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000172/0.5239, allocations: 158 kB / 0.5587 GB, free: 5.621 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.732e-05/0.524, allocations: 67.23 kB / 0.5587 GB, free: 5.547 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.475e-05/0.5241, allocations: 56.86 kB / 0.5588 GB, free: 5.488 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.5241, allocations: 0 / 0.5588 GB, free: 5.488 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.5241, allocations: 46.5 kB / 0.5588 GB, free: 5.434 MB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 7.51e-07/0.5241, allocations: 0 / 0.5588 GB, free: 5.434 MB / 395.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003715/0.5245, allocations: 125.8 kB / 0.559 GB, free: 5.305 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.5246, allocations: 85.11 kB / 0.559 GB, free: 5.203 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.5247, allocations: 133.3 kB / 0.5592 GB, free: 5.062 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.5247, allocations: 25.7 kB / 0.5592 GB, free: 5.031 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.917e-05/0.5248, allocations: 104.4 kB / 0.5593 GB, free: 4.922 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.5248, allocations: 43.27 kB / 0.5593 GB, free: 4.879 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.5249, allocations: 8.031 kB / 0.5593 GB, free: 4.871 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.525, allocations: 326.8 kB / 0.5597 GB, free: 4.543 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.728e-05/0.525, allocations: 31.98 kB / 0.5597 GB, free: 4.512 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.381e-05/0.5251, allocations: 33.86 kB / 0.5597 GB, free: 4.48 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.5252, allocations: 47.95 kB / 0.5598 GB, free: 4.434 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.5252, allocations: 3.953 kB / 0.5598 GB, free: 4.43 MB / 395.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002557/0.5255, allocations: 129.5 kB / 0.5599 GB, free: 4.297 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.638e-05/0.5255, allocations: 45.69 kB / 0.5599 GB, free: 4.246 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.5255, allocations: 4 kB / 0.5599 GB, free: 4.242 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.5255, allocations: 64 / 0.5599 GB, free: 4.242 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.5256, allocations: 4 kB / 0.5599 GB, free: 4.238 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.5256, allocations: 0 / 0.5599 GB, free: 4.238 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.807e-05/0.5256, allocations: 11.84 kB / 0.56 GB, free: 4.227 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.991e-05/0.5257, allocations: 7.984 kB / 0.56 GB, free: 4.219 MB / 395.1 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 0.0001075/0.5258, allocations: 150.7 kB / 0.5601 GB, free: 4.059 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.339e-05/0.5258, allocations: 15.86 kB / 0.5601 GB, free: 4.043 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.833e-05/0.5258, allocations: 8.734 kB / 0.5601 GB, free: 4.035 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.5258, allocations: 4 kB / 0.5601 GB, free: 4.031 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.5258, allocations: 0 / 0.5601 GB, free: 4.031 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.5258, allocations: 4 kB / 0.5601 GB, free: 4.027 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.526, allocations: 158.1 kB / 0.5603 GB, free: 3.836 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.526, allocations: 7.984 kB / 0.5603 GB, free: 3.828 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.526, allocations: 0 / 0.5603 GB, free: 3.828 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.526, allocations: 3.953 kB / 0.5603 GB, free: 3.824 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.526, allocations: 4 kB / 0.5603 GB, free: 3.82 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.526, allocations: 4 kB / 0.5603 GB, free: 3.816 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.526, allocations: 0 / 0.5603 GB, free: 3.816 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.5263, allocations: 236.1 kB / 0.5605 GB, free: 3.57 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.5264, allocations: 88.86 kB / 0.5606 GB, free: 3.465 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.5264, allocations: 11.89 kB / 0.5606 GB, free: 3.453 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.824e-05/0.5265, allocations: 4 kB / 0.5606 GB, free: 3.449 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.541e-05/0.5265, allocations: 0 / 0.5606 GB, free: 3.449 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.5265, allocations: 8 kB / 0.5606 GB, free: 3.441 MB / 395.1 MB Notification: Performance of sorting global known variables: time 6.858e-05/0.5266, allocations: 115.2 kB / 0.5608 GB, free: 3.328 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5266, allocations: 0 / 0.5608 GB, free: 3.328 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0009182/0.5275, allocations: 359.5 kB / 0.5611 GB, free: 2.977 MB / 395.1 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.0008625/0.5284, allocations: 416.6 kB / 0.5615 GB, free: 2.562 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0003414/0.5288, allocations: 323.2 kB / 0.5618 GB, free: 2.234 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5288, allocations: 4 kB / 0.5618 GB, free: 2.23 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.529, allocations: 247.3 kB / 0.562 GB, free: 1.977 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001646/0.5291, allocations: 16.12 kB / 0.5621 GB, free: 1.961 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000399/0.5295, allocations: 231.9 kB / 0.5623 GB, free: 1.719 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.5298, allocations: 0.7119 MB / 0.563 GB, free: 0.9805 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 1.532e-05/0.5299, allocations: 0 / 0.563 GB, free: 0.9805 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.196e-05/0.5299, allocations: 11.44 kB / 0.563 GB, free: 0.9727 MB / 395.1 MB Notification: Performance of SimCode: time 2.51e-07/0.5299, allocations: 0 / 0.563 GB, free: 0.9727 MB / 395.1 MB [CodegenCFunctions.tpl:4892:15-4892:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].