Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 114.5 kB / 17.07 MB, free: 6.016 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.001006/0.001006, allocations: 191 kB / 18 MB, free: 5.098 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1739/0.1739, allocations: 38.03 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 59.91 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4837/0.4849, allocations: 58.06 MB / 0.5041 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003627/0.4885, allocations: 2.1 MB / 0.5062 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003042/0.4916, allocations: 2.038 MB / 0.5082 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.794e-05/0.4917, allocations: 5.188 kB / 0.5082 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002311/0.4919, allocations: 15.25 kB / 0.5082 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001036/0.4921, allocations: 28.72 kB / 0.5082 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002812/0.4949, allocations: 0.8308 MB / 0.509 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.4951, allocations: 72.5 kB / 0.5091 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.096e-05/0.4952, allocations: 5.312 kB / 0.5091 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.4953, allocations: 41.86 kB / 0.5091 GB, free: 4.574 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.4954, allocations: 36.02 kB / 0.5092 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.397e-05/0.4954, allocations: 5.312 kB / 0.5092 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003024/0.4984, allocations: 1.404 MB / 0.5105 GB, free: 4.125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.326e-05/0.4985, allocations: 15.98 kB / 0.5105 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.971e-05/0.4986, allocations: 22.8 kB / 0.5106 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002962/0.5015, allocations: 1.319 MB / 0.5119 GB, free: 3.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.5016, allocations: 0 / 0.5119 GB, free: 3.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.5016, allocations: 1.062 kB / 0.5119 GB, free: 3.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.5016, allocations: 0 / 0.5119 GB, free: 3.871 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0009087/0.5025, allocations: 0.5093 MB / 0.5124 GB, free: 3.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.5026, allocations: 12.86 kB / 0.5124 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.255e-05/0.5026, allocations: 8.953 kB / 0.5124 GB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001961/0.5028, allocations: 198.2 kB / 0.5126 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.5029, allocations: 1.094 kB / 0.5126 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.5029, allocations: 1.094 kB / 0.5126 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.503, allocations: 54.7 kB / 0.5126 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.5031, allocations: 0.6562 kB / 0.5126 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.5031, allocations: 1.125 kB / 0.5126 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.5031, allocations: 0 / 0.5126 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.594e-05/0.5032, allocations: 19.52 kB / 0.5126 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001441/0.5033, allocations: 172.3 kB / 0.5128 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.698e-05/0.5034, allocations: 52.02 kB / 0.5129 GB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.428e-05/0.5035, allocations: 34.36 kB / 0.5129 GB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.421e-06/0.5035, allocations: 0 / 0.5129 GB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.5035, allocations: 32.3 kB / 0.5129 GB, free: 2.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 8.02e-07/0.5035, allocations: 0 / 0.5129 GB, free: 2.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003146/0.5038, allocations: 147.8 kB / 0.5131 GB, free: 2.746 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.5039, allocations: 88.06 kB / 0.5131 GB, free: 2.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.504, allocations: 130.7 kB / 0.5133 GB, free: 2.535 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.504, allocations: 29.7 kB / 0.5133 GB, free: 2.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.497e-05/0.504, allocations: 87.91 kB / 0.5134 GB, free: 2.414 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.635e-05/0.5041, allocations: 30.83 kB / 0.5134 GB, free: 2.391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.86e-05/0.5041, allocations: 17.77 kB / 0.5134 GB, free: 2.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.367e-05/0.5042, allocations: 323.5 kB / 0.5137 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.324e-05/0.5043, allocations: 22.8 kB / 0.5138 GB, free: 2.051 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.097e-05/0.5043, allocations: 23.94 kB / 0.5138 GB, free: 2.047 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.5045, allocations: 128.4 kB / 0.5139 GB, free: 1.965 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.5045, allocations: 0 / 0.5139 GB, free: 1.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001628/0.5046, allocations: 126.1 kB / 0.514 GB, free: 1.891 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.879e-05/0.5047, allocations: 43.08 kB / 0.5141 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.5047, allocations: 0 / 0.5141 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.5047, allocations: 0 / 0.5141 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.094e-06/0.5047, allocations: 5.25 kB / 0.5141 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.5047, allocations: 4.547 kB / 0.5141 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.372e-05/0.5048, allocations: 9.375 kB / 0.5141 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.5048, allocations: 5.016 kB / 0.5141 GB, free: 1.844 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.000104/0.5049, allocations: 163.6 kB / 0.5142 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.9e-05/0.505, allocations: 9.109 kB / 0.5143 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.89e-05/0.505, allocations: 7.391 kB / 0.5143 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.505, allocations: 0 / 0.5143 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.505, allocations: 0 / 0.5143 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.505, allocations: 2.375 kB / 0.5143 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001006/0.5051, allocations: 176.9 kB / 0.5144 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.5051, allocations: 0 / 0.5144 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.5051, allocations: 0 / 0.5144 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.5051, allocations: 6.328 kB / 0.5144 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.5051, allocations: 6.562 kB / 0.5144 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.5052, allocations: 0.5625 kB / 0.5144 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.5052, allocations: 0 / 0.5144 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002805/0.5054, allocations: 218 kB / 0.5146 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.536e-05/0.5055, allocations: 87.75 kB / 0.5147 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.5055, allocations: 1.531 kB / 0.5147 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.326e-05/0.5055, allocations: 2.094 kB / 0.5147 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.097e-05/0.5056, allocations: 12.62 kB / 0.5147 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.5056, allocations: 7.188 kB / 0.5148 GB, free: 1.238 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.129e-05/0.5056, allocations: 97.8 kB / 0.5148 GB, free: 1.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5056, allocations: 0 / 0.5148 GB, free: 1.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001464/0.5071, allocations: 325.1 kB / 0.5152 GB, free: 1.109 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.001083/0.5082, allocations: 359.1 kB / 0.5155 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003766/0.5086, allocations: 202.9 kB / 0.5157 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5086, allocations: 0 / 0.5157 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.5088, allocations: 153.3 kB / 0.5158 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.509, allocations: 8.656 kB / 0.5158 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005374/0.5096, allocations: 241.6 kB / 0.5161 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.5098, allocations: 0.6972 MB / 0.5168 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.648e-05/0.5098, allocations: 5.812 kB / 0.5168 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.415e-05/0.5098, allocations: 8.469 kB / 0.5168 GB, free: 15.9 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.5098, allocations: 0.625 kB / 0.5168 GB, free: 15.9 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].