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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 109.1 kB / 17.06 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 192 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1747/0.1747, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 67.89 kB / 458.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4128, allocations: 58.05 MB / 0.5041 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.004038/0.4169, allocations: 2.155 MB / 0.5062 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003735/0.4207, allocations: 2.043 MB / 0.5082 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.257e-05/0.4208, allocations: 0 / 0.5082 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.421, allocations: 14.89 kB / 0.5082 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.4212, allocations: 42.44 kB / 0.5083 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002294/0.4235, allocations: 0.8161 MB / 0.5091 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.4237, allocations: 98.53 kB / 0.5092 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.19e-05/0.4237, allocations: 12.2 kB / 0.5092 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.462e-05/0.4238, allocations: 44.53 kB / 0.5092 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.424, allocations: 55.16 kB / 0.5093 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.424, allocations: 2.375 kB / 0.5093 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002787/0.4268, allocations: 1.378 MB / 0.5106 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.385e-05/0.4269, allocations: 31.19 kB / 0.5106 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.275e-05/0.4269, allocations: 40.7 kB / 0.5107 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002529/0.4295, allocations: 1.327 MB / 0.512 GB, free: 3.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.268e-05/0.4295, allocations: 5.125 kB / 0.512 GB, free: 3.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.4295, allocations: 0 / 0.512 GB, free: 3.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.4295, allocations: 0 / 0.512 GB, free: 3.828 MB / 382.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.001099/0.4306, allocations: 0.5333 MB / 0.5125 GB, free: 3.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.164e-05/0.4307, allocations: 13.48 kB / 0.5125 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.119e-05/0.4308, allocations: 12.62 kB / 0.5125 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.431, allocations: 196.9 kB / 0.5127 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.4311, allocations: 5.469 kB / 0.5127 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.698e-05/0.4311, allocations: 6.281 kB / 0.5127 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000241/0.4314, allocations: 78.58 kB / 0.5128 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.4314, allocations: 0 / 0.5128 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.4314, allocations: 0 / 0.5128 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.4314, allocations: 2.141 kB / 0.5128 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.4315, allocations: 45.56 kB / 0.5128 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000259/0.4318, allocations: 181.3 kB / 0.513 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/0.432, allocations: 77.23 kB / 0.5131 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.4321, allocations: 66.12 kB / 0.5132 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.35e-05/0.4321, allocations: 0 / 0.5132 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.4322, allocations: 36.44 kB / 0.5132 GB, free: 2.723 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.4322, allocations: 1.062 kB / 0.5132 GB, free: 2.723 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005473/0.4327, allocations: 219.5 kB / 0.5134 GB, free: 2.633 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/0.4328, allocations: 88.94 kB / 0.5135 GB, free: 2.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001862/0.433, allocations: 149.2 kB / 0.5136 GB, free: 2.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.433, allocations: 29.7 kB / 0.5137 GB, free: 2.395 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.222e-05/0.4331, allocations: 104.2 kB / 0.5138 GB, free: 2.297 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.709e-05/0.4332, allocations: 40.41 kB / 0.5138 GB, free: 2.266 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.075e-05/0.4332, allocations: 20.11 kB / 0.5138 GB, free: 2.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.4334, allocations: 327.6 kB / 0.5141 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.4335, allocations: 41.34 kB / 0.5142 GB, free: 1.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.112e-05/0.4336, allocations: 36.73 kB / 0.5142 GB, free: 1.918 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.4338, allocations: 184.2 kB / 0.5144 GB, free: 1.824 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.4338, allocations: 4.781 kB / 0.5144 GB, free: 1.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002615/0.4341, allocations: 175.9 kB / 0.5145 GB, free: 1.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.138e-05/0.4342, allocations: 51.05 kB / 0.5146 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.4342, allocations: 0.6562 kB / 0.5146 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.4342, allocations: 3.938 kB / 0.5146 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.263e-06/0.4342, allocations: 1.062 kB / 0.5146 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.4342, allocations: 0.75 kB / 0.5146 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.404e-05/0.4343, allocations: 11.22 kB / 0.5146 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/0.4343, allocations: 5.906 kB / 0.5146 GB, free: 1.688 MB / 382.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 () * 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.0001282/0.4345, allocations: 170.9 kB / 0.5148 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/0.4345, allocations: 20.3 kB / 0.5148 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.474e-05/0.4345, allocations: 9.188 kB / 0.5148 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.4345, allocations: 0 / 0.5148 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4345, allocations: 1.281 kB / 0.5148 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.4345, allocations: 2.859 kB / 0.5148 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001421/0.4347, allocations: 190.5 kB / 0.515 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4347, allocations: 3.938 kB / 0.515 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.904e-06/0.4347, allocations: 1.156 kB / 0.515 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4347, allocations: 4.594 kB / 0.515 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.4347, allocations: 5.578 kB / 0.515 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.4347, allocations: 4 kB / 0.515 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4348, allocations: 0 / 0.515 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003881/0.4351, allocations: 297 kB / 0.5153 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.469e-05/0.4352, allocations: 89.02 kB / 0.5154 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.4352, allocations: 4.359 kB / 0.5154 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.65e-05/0.4353, allocations: 1.969 kB / 0.5154 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.176e-05/0.4353, allocations: 7.25 kB / 0.5154 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.4353, allocations: 4.969 kB / 0.5154 GB, free: 1.059 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.944e-05/0.4354, allocations: 120.8 kB / 0.5155 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4354, allocations: 0 / 0.5155 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001437/0.4368, allocations: 328.1 kB / 0.5158 GB, free: 0.9297 MB / 382.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 () * 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.001043/0.4379, allocations: 367.6 kB / 0.5162 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004642/0.4384, allocations: 340.5 kB / 0.5165 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.4384, allocations: 1.125 kB / 0.5165 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002196/0.4386, allocations: 257.8 kB / 0.5167 GB, free: 464 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.4389, allocations: 26.02 kB / 0.5168 GB, free: 452 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005789/0.4395, allocations: 354.4 kB / 0.5171 GB, free: 256 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.4398, allocations: 0.7193 MB / 0.5178 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.709e-05/0.4398, allocations: 1 kB / 0.5178 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.355e-05/0.4398, allocations: 9.969 kB / 0.5178 GB, free: 15.54 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4399, allocations: 0 / 0.5178 GB, free: 15.54 MB / 398.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].