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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 108.1 kB / 17.06 MB, free: 6.137 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.001552/0.001552, allocations: 187.1 kB / 18 MB, free: 5.219 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.441/1.441, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1786/0.1786, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001138, allocations: 63.91 kB / 458.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4251/0.4263, allocations: 58.05 MB / 0.5041 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003949/0.4302, allocations: 2.097 MB / 0.5062 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003244/0.4335, allocations: 2.047 MB / 0.5082 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.162e-05/0.4336, allocations: 0 / 0.5082 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.4338, allocations: 11.56 kB / 0.5082 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.4339, allocations: 29.23 kB / 0.5082 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002238/0.4361, allocations: 0.8415 MB / 0.509 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.4363, allocations: 78.77 kB / 0.5091 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.12e-05/0.4364, allocations: 3.25 kB / 0.5091 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.061e-05/0.4365, allocations: 36.84 kB / 0.5091 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.589e-05/0.4366, allocations: 55.88 kB / 0.5092 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.4366, allocations: 2.312 kB / 0.5092 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002246/0.4388, allocations: 1.405 MB / 0.5106 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.917e-05/0.4389, allocations: 43.53 kB / 0.5106 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.961e-05/0.439, allocations: 55.02 kB / 0.5107 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002362/0.4414, allocations: 1.381 MB / 0.512 GB, free: 3.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4414, allocations: 0 / 0.512 GB, free: 3.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4414, allocations: 1.25 kB / 0.512 GB, free: 3.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.4414, allocations: 0 / 0.512 GB, free: 3.824 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0007343/0.4421, allocations: 0.6075 MB / 0.5126 GB, free: 3.289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.4422, allocations: 13.7 kB / 0.5126 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.3e-05/0.4423, allocations: 22.88 kB / 0.5126 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.4424, allocations: 212.1 kB / 0.5128 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.4425, allocations: 1.469 kB / 0.5128 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.4425, allocations: 1.438 kB / 0.5128 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.4428, allocations: 135.1 kB / 0.513 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.4428, allocations: 0 / 0.513 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.4428, allocations: 1.484 kB / 0.513 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.4428, allocations: 1.625 kB / 0.513 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.443, allocations: 99.27 kB / 0.5131 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002072/0.4433, allocations: 218.5 kB / 0.5133 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001997/0.4435, allocations: 158.2 kB / 0.5134 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.4436, allocations: 148.2 kB / 0.5136 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.4436, allocations: 3.938 kB / 0.5136 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.4437, allocations: 32.8 kB / 0.5136 GB, free: 2.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.603e-06/0.4437, allocations: 0 / 0.5136 GB, free: 2.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007674/0.4444, allocations: 497.8 kB / 0.5141 GB, free: 2.398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.99e-05/0.4445, allocations: 113.5 kB / 0.5142 GB, free: 2.297 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.4447, allocations: 167.6 kB / 0.5143 GB, free: 2.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.4447, allocations: 27.3 kB / 0.5144 GB, free: 2.148 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.456e-05/0.4448, allocations: 105.3 kB / 0.5145 GB, free: 2.051 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.4449, allocations: 129.6 kB / 0.5146 GB, free: 1.949 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.792e-05/0.4449, allocations: 34.52 kB / 0.5146 GB, free: 1.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.402e-05/0.445, allocations: 337.2 kB / 0.515 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.4452, allocations: 99.53 kB / 0.515 GB, free: 1.582 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.4454, allocations: 99.69 kB / 0.5151 GB, free: 1.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004981/0.4459, allocations: 383 kB / 0.5155 GB, free: 1.422 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4459, allocations: 0.5 kB / 0.5155 GB, free: 1.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005145/0.4464, allocations: 349.5 kB / 0.5158 GB, free: 1.289 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.925e-05/0.4465, allocations: 83.45 kB / 0.5159 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.4465, allocations: 0 / 0.5159 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.4465, allocations: 2.719 kB / 0.5159 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.4465, allocations: 4.906 kB / 0.5159 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.4465, allocations: 0 / 0.5159 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.342e-05/0.4466, allocations: 20.16 kB / 0.5159 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/0.4467, allocations: 12.66 kB / 0.516 GB, free: 1.23 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.000188/0.4469, allocations: 232.8 kB / 0.5162 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.4469, allocations: 29.62 kB / 0.5162 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.037e-05/0.4469, allocations: 13 kB / 0.5162 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.4469, allocations: 1.125 kB / 0.5162 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4469, allocations: 0 / 0.5162 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.4469, allocations: 0 / 0.5162 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.4471, allocations: 245.9 kB / 0.5165 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4471, allocations: 1.188 kB / 0.5165 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.4471, allocations: 4 kB / 0.5165 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.4471, allocations: 0 / 0.5165 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.4472, allocations: 8.609 kB / 0.5165 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.4472, allocations: 0 / 0.5165 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4472, allocations: 0.8438 kB / 0.5165 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.4483, allocations: 0.915 MB / 0.5174 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.869e-05/0.4483, allocations: 100.1 kB / 0.5175 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.474e-05/0.4484, allocations: 10.66 kB / 0.5175 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.913e-05/0.4484, allocations: 9.906 kB / 0.5175 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.4485, allocations: 3.703 kB / 0.5175 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.4485, allocations: 9.688 kB / 0.5175 GB, free: 460 kB / 382.1 MB Notification: Performance of sorting global known variables: time 8.92e-05/0.4486, allocations: 130.9 kB / 0.5176 GB, free: 368 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4486, allocations: 0 / 0.5176 GB, free: 368 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001295/0.4499, allocations: 356 kB / 0.518 GB, free: 324 kB / 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.0009296/0.4508, allocations: 373.8 kB / 0.5183 GB, free: 160 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.4525, allocations: 1.603 MB / 0.5199 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4525, allocations: 0 / 0.5199 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.4539, allocations: 1.371 MB / 0.5212 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.4541, allocations: 19.16 kB / 0.5212 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.4553, allocations: 0.6678 MB / 0.5219 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.4557, allocations: 0.7526 MB / 0.5226 GB, free: 13.58 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.5e-05/0.4558, allocations: 2.188 kB / 0.5226 GB, free: 13.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.814e-05/0.4558, allocations: 8.875 kB / 0.5226 GB, free: 13.57 MB / 398.1 MB Notification: Performance of SimCode: time 3.6e-07/0.4558, allocations: 0 / 0.5226 GB, free: 13.57 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].