Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 112.1 kB / 17.06 MB, free: 5.969 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.001744/0.001744, allocations: 200 kB / 18.01 MB, free: 5.055 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.537/1.537, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1915/0.1915, allocations: 38.05 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 63.91 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.358, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003258/0.3613, allocations: 2.159 MB / 0.5057 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.363, allocations: 1.064 MB / 0.5068 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.938e-05/0.3631, allocations: 1.562 kB / 0.5068 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001595/0.3633, allocations: 15.45 kB / 0.5068 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.3635, allocations: 53.23 kB / 0.5068 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.3645, allocations: 286.9 kB / 0.5071 GB, free: 5.129 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002094/0.3647, allocations: 118.1 kB / 0.5072 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.517e-05/0.3648, allocations: 4.234 kB / 0.5072 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.3649, allocations: 48.05 kB / 0.5073 GB, free: 5.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.365, allocations: 70.98 kB / 0.5073 GB, free: 5.047 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.462e-05/0.365, allocations: 2.688 kB / 0.5073 GB, free: 5.047 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007656/0.3658, allocations: 418.8 kB / 0.5077 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.711e-05/0.3659, allocations: 37.05 kB / 0.5078 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.66e-05/0.366, allocations: 38.33 kB / 0.5078 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008611/0.3668, allocations: 0.5151 MB / 0.5083 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3669, allocations: 1.094 kB / 0.5083 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3669, allocations: 0 / 0.5083 GB, free: 4.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.3669, allocations: 3.938 kB / 0.5083 GB, free: 4.781 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004444/0.3673, allocations: 470.3 kB / 0.5088 GB, free: 4.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.3674, allocations: 9.188 kB / 0.5088 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.087e-05/0.3674, allocations: 63.22 kB / 0.5088 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.164e-05/0.3675, allocations: 16.09 kB / 0.5089 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.3677, allocations: 200.4 kB / 0.509 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.3677, allocations: 4.438 kB / 0.5091 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.3677, allocations: 13.62 kB / 0.5091 GB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.368, allocations: 128.1 kB / 0.5092 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.368, allocations: 1.062 kB / 0.5092 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.368, allocations: 1.094 kB / 0.5092 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.368, allocations: 2.125 kB / 0.5092 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.3682, allocations: 86.97 kB / 0.5093 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000386/0.3685, allocations: 351.9 kB / 0.5096 GB, free: 3.664 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.3687, allocations: 133.3 kB / 0.5097 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.3688, allocations: 120.4 kB / 0.5099 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.181e-06/0.3688, allocations: 0 / 0.5099 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.3688, allocations: 36.64 kB / 0.5099 GB, free: 3.477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.192e-06/0.3689, allocations: 0 / 0.5099 GB, free: 3.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004569/0.3693, allocations: 294.7 kB / 0.5102 GB, free: 3.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.3694, allocations: 99.72 kB / 0.5103 GB, free: 3.262 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.3695, allocations: 136.7 kB / 0.5104 GB, free: 3.152 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.3695, allocations: 26.98 kB / 0.5104 GB, free: 3.121 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.595e-05/0.3696, allocations: 109.3 kB / 0.5105 GB, free: 3.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.123e-05/0.3696, allocations: 65.38 kB / 0.5106 GB, free: 2.969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.043e-05/0.3697, allocations: 26.48 kB / 0.5106 GB, free: 2.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.58e-05/0.3698, allocations: 323.5 kB / 0.5109 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.972e-05/0.3699, allocations: 59.95 kB / 0.511 GB, free: 2.617 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.682e-05/0.3699, allocations: 57.94 kB / 0.511 GB, free: 2.605 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.3702, allocations: 232.7 kB / 0.5113 GB, free: 2.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3702, allocations: 0 / 0.5113 GB, free: 2.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002984/0.3705, allocations: 222.2 kB / 0.5115 GB, free: 2.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.986e-05/0.3706, allocations: 56.5 kB / 0.5115 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3706, allocations: 1.766 kB / 0.5115 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.3707, allocations: 0 / 0.5115 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.663e-06/0.3707, allocations: 7.938 kB / 0.5115 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.3707, allocations: 5.703 kB / 0.5115 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.083e-05/0.3708, allocations: 20.12 kB / 0.5116 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.3708, allocations: 6.266 kB / 0.5116 GB, free: 2.34 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.0001533/0.3709, allocations: 182.3 kB / 0.5117 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.371, allocations: 16.34 kB / 0.5117 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.316e-05/0.371, allocations: 13.3 kB / 0.5118 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.371, allocations: 0.5625 kB / 0.5118 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.371, allocations: 3.938 kB / 0.5118 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.371, allocations: 1.531 kB / 0.5118 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002123/0.3713, allocations: 209.5 kB / 0.512 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3713, allocations: 4.562 kB / 0.512 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.956e-06/0.3713, allocations: 5.219 kB / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.3713, allocations: 0 / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.3713, allocations: 5.672 kB / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3713, allocations: 0 / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3713, allocations: 1.984 kB / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005006/0.3718, allocations: 454 kB / 0.5124 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.432e-05/0.3719, allocations: 97.47 kB / 0.5125 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.3719, allocations: 8.219 kB / 0.5125 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.13e-05/0.372, allocations: 3.297 kB / 0.5125 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.176e-05/0.372, allocations: 11.25 kB / 0.5125 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.372, allocations: 6.844 kB / 0.5125 GB, free: 1.602 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.71e-05/0.3721, allocations: 100.2 kB / 0.5126 GB, free: 1.523 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3721, allocations: 0 / 0.5126 GB, free: 1.523 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006427/0.3727, allocations: 142.3 kB / 0.5128 GB, free: 1.504 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.001396/0.3741, allocations: 1.229 MB / 0.514 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005614/0.3747, allocations: 0.5724 MB / 0.5145 GB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3747, allocations: 0 / 0.5145 GB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.3751, allocations: 467.7 kB / 0.515 GB, free: 64 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.3754, allocations: 22.36 kB / 0.515 GB, free: 60 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00324/0.3786, allocations: 2.439 MB / 0.5174 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.379, allocations: 0.7335 MB / 0.5181 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.808e-05/0.379, allocations: 5 kB / 0.5181 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.846e-05/0.3791, allocations: 32.44 kB / 0.5181 GB, free: 13.81 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3791, allocations: 1.219 kB / 0.5181 GB, free: 13.81 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].