Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 110.2 kB / 17.06 MB, free: 5.82 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.001493/0.001493, allocations: 195 kB / 18 MB, free: 4.965 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.442/1.442, 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/package.mo): time 0.1849/0.1849, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 59.91 kB / 458.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4823/0.4837, allocations: 58.06 MB / 0.5041 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003408/0.4872, allocations: 2.105 MB / 0.5062 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002928/0.4901, allocations: 2.033 MB / 0.5081 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.628e-05/0.4902, allocations: 1.094 kB / 0.5082 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.4904, allocations: 13.44 kB / 0.5082 GB, free: 5.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.4905, allocations: 29.55 kB / 0.5082 GB, free: 5.301 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002816/0.4933, allocations: 0.8279 MB / 0.509 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001666/0.4935, allocations: 81.73 kB / 0.5091 GB, free: 4.992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.832e-05/0.4936, allocations: 5.922 kB / 0.5091 GB, free: 4.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.951e-05/0.4937, allocations: 36.66 kB / 0.5091 GB, free: 4.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.686e-05/0.4938, allocations: 48.77 kB / 0.5092 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.4938, allocations: 6.375 kB / 0.5092 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002472/0.4963, allocations: 1.4 MB / 0.5105 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.602e-05/0.4964, allocations: 25.95 kB / 0.5106 GB, free: 4.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.631e-05/0.4964, allocations: 39.55 kB / 0.5106 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002098/0.4985, allocations: 1.36 MB / 0.5119 GB, free: 4.238 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.4985, allocations: 0 / 0.5119 GB, free: 4.238 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.4986, allocations: 0 / 0.5119 GB, free: 4.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.587e-06/0.4986, allocations: 5.406 kB / 0.5119 GB, free: 4.234 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009295/0.4995, allocations: 0.5737 MB / 0.5125 GB, free: 3.707 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.4996, allocations: 13.61 kB / 0.5125 GB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.4996, allocations: 13.28 kB / 0.5125 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/0.4998, allocations: 205 kB / 0.5127 GB, free: 3.473 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.4999, allocations: 0.8438 kB / 0.5127 GB, free: 3.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.4999, allocations: 5.094 kB / 0.5127 GB, free: 3.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/0.5001, allocations: 101.7 kB / 0.5128 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.5001, allocations: 5.797 kB / 0.5128 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.5001, allocations: 0 / 0.5128 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.5001, allocations: 1.062 kB / 0.5128 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.895e-05/0.5002, allocations: 64.89 kB / 0.5129 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001558/0.5004, allocations: 184.7 kB / 0.5131 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001234/0.5005, allocations: 101.9 kB / 0.5132 GB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.5006, allocations: 94.52 kB / 0.5132 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.5007, allocations: 0 / 0.5132 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.5007, allocations: 35.97 kB / 0.5133 GB, free: 3.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 7.31e-07/0.5007, allocations: 0 / 0.5133 GB, free: 3.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005884/0.5013, allocations: 318.3 kB / 0.5136 GB, free: 2.949 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.5014, allocations: 94.64 kB / 0.5137 GB, free: 2.855 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.5015, allocations: 153.9 kB / 0.5138 GB, free: 2.742 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.5015, allocations: 26.92 kB / 0.5139 GB, free: 2.711 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.07e-05/0.5016, allocations: 98.77 kB / 0.5139 GB, free: 2.617 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.7e-05/0.5016, allocations: 87.69 kB / 0.514 GB, free: 2.547 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.465e-05/0.5017, allocations: 33.25 kB / 0.5141 GB, free: 2.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.542e-05/0.5018, allocations: 332.7 kB / 0.5144 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.5019, allocations: 64.69 kB / 0.5144 GB, free: 2.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.407e-05/0.502, allocations: 61.45 kB / 0.5145 GB, free: 2.172 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.5023, allocations: 253.9 kB / 0.5147 GB, free: 2.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.5023, allocations: 0 / 0.5147 GB, free: 2.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000319/0.5026, allocations: 239 kB / 0.515 GB, free: 1.973 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.572e-05/0.5027, allocations: 63.31 kB / 0.515 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.5027, allocations: 0.625 kB / 0.515 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.5027, allocations: 4.5 kB / 0.515 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.244e-06/0.5028, allocations: 1.234 kB / 0.515 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.5028, allocations: 4 kB / 0.515 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.367e-05/0.5028, allocations: 13.17 kB / 0.515 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.5029, allocations: 7.359 kB / 0.5151 GB, free: 1.922 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.0001906/0.5031, allocations: 202.7 kB / 0.5153 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.5031, allocations: 18.22 kB / 0.5153 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.844e-05/0.5032, allocations: 10.11 kB / 0.5153 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.5032, allocations: 4.531 kB / 0.5153 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.5032, allocations: 0.5938 kB / 0.5153 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.5032, allocations: 0.6562 kB / 0.5153 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.5034, allocations: 209 kB / 0.5155 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.5034, allocations: 0 / 0.5155 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-06/0.5034, allocations: 2.812 kB / 0.5155 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.5034, allocations: 0 / 0.5155 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.5034, allocations: 4.625 kB / 0.5155 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.5034, allocations: 3.938 kB / 0.5155 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5034, allocations: 2.672 kB / 0.5155 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007727/0.5042, allocations: 0.5232 MB / 0.516 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.59e-05/0.5042, allocations: 92.89 kB / 0.5161 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.353e-05/0.5043, allocations: 6.891 kB / 0.5161 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.324e-05/0.5043, allocations: 3.875 kB / 0.5161 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.502e-05/0.5044, allocations: 2.406 kB / 0.5161 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.5044, allocations: 6.219 kB / 0.5161 GB, free: 1.234 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.757e-05/0.5045, allocations: 115.5 kB / 0.5162 GB, free: 1.148 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5045, allocations: 1.438 kB / 0.5162 GB, free: 1.148 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001469/0.5059, allocations: 344.1 kB / 0.5166 GB, free: 1.098 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.001003/0.507, allocations: 374.5 kB / 0.5169 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00081/0.5078, allocations: 0.7135 MB / 0.5176 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.5078, allocations: 0 / 0.5176 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004936/0.5083, allocations: 0.5723 MB / 0.5182 GB, free: 304 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002243/0.5085, allocations: 19.78 kB / 0.5182 GB, free: 296 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007345/0.5093, allocations: 474 kB / 0.5186 GB, free: 76 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.5097, allocations: 0.7261 MB / 0.5193 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.249e-05/0.5097, allocations: 1.531 kB / 0.5193 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.257e-05/0.5097, allocations: 7.438 kB / 0.5194 GB, free: 15.37 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.5097, allocations: 5.438 kB / 0.5194 GB, free: 15.37 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].