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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.001198/0.001198, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001229/0.001229, allocations: 195 kB / 18 MB, free: 5.074 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.578/1.578, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1829/0.1829, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 67.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4321/0.4335, allocations: 58.06 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.004229/0.4378, allocations: 2.15 MB / 0.5057 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003392/0.4413, allocations: 2.045 MB / 0.5077 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.307e-05/0.4414, allocations: 0 / 0.5077 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001868/0.4416, allocations: 11.41 kB / 0.5077 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001471/0.4418, allocations: 45.7 kB / 0.5078 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002898/0.4447, allocations: 0.8156 MB / 0.5086 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002075/0.4449, allocations: 99.47 kB / 0.5087 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.617e-05/0.445, allocations: 9.547 kB / 0.5087 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.4451, allocations: 45.86 kB / 0.5087 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.994e-05/0.4452, allocations: 54.34 kB / 0.5088 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.4452, allocations: 3.188 kB / 0.5088 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002547/0.4478, allocations: 1.378 MB / 0.5101 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.51e-05/0.4478, allocations: 28.33 kB / 0.5102 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.077e-05/0.4479, allocations: 44.27 kB / 0.5102 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002385/0.4503, allocations: 1.322 MB / 0.5115 GB, free: 3.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.4503, allocations: 4 kB / 0.5115 GB, free: 3.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4503, allocations: 1.062 kB / 0.5115 GB, free: 3.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.4504, allocations: 0 / 0.5115 GB, free: 3.539 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.0007618/0.4511, allocations: 0.5513 MB / 0.512 GB, free: 3.023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.4512, allocations: 13.11 kB / 0.512 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.848e-05/0.4513, allocations: 59.81 kB / 0.5121 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.4513, allocations: 24.12 kB / 0.5121 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.4515, allocations: 207.1 kB / 0.5123 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.4515, allocations: 7.766 kB / 0.5123 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.4516, allocations: 4.438 kB / 0.5123 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.4518, allocations: 133.9 kB / 0.5125 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.4518, allocations: 0.6562 kB / 0.5125 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.4519, allocations: 5.344 kB / 0.5125 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.4519, allocations: 1.125 kB / 0.5125 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00012/0.452, allocations: 72.05 kB / 0.5125 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000421/0.4524, allocations: 356.1 kB / 0.5129 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001053/0.4525, allocations: 80.45 kB / 0.513 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.784e-05/0.4526, allocations: 66.31 kB / 0.513 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.4526, allocations: 3.938 kB / 0.513 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.4527, allocations: 31.91 kB / 0.5131 GB, free: 2.227 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.4527, allocations: 0 / 0.5131 GB, free: 2.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003904/0.4531, allocations: 225.4 kB / 0.5133 GB, free: 2.133 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.4531, allocations: 91.94 kB / 0.5134 GB, free: 2.035 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.4532, allocations: 152.7 kB / 0.5135 GB, free: 1.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.4533, allocations: 31.69 kB / 0.5135 GB, free: 1.887 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.582e-05/0.4533, allocations: 114.8 kB / 0.5136 GB, free: 1.781 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.525e-05/0.4534, allocations: 52.83 kB / 0.5137 GB, free: 1.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.942e-05/0.4534, allocations: 25.06 kB / 0.5137 GB, free: 1.719 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.371e-05/0.4535, allocations: 323 kB / 0.514 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.09e-05/0.4536, allocations: 40.66 kB / 0.5141 GB, free: 1.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.036e-05/0.4536, allocations: 42.83 kB / 0.5141 GB, free: 1.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.4538, allocations: 174.9 kB / 0.5143 GB, free: 1.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4538, allocations: 4.688 kB / 0.5143 GB, free: 1.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002225/0.4541, allocations: 176.2 kB / 0.5144 GB, free: 1.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.553e-05/0.4541, allocations: 46.36 kB / 0.5145 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.4541, allocations: 3.984 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.4542, allocations: 1.469 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.4542, allocations: 0 / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.4542, allocations: 1.281 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.604e-05/0.4542, allocations: 7.766 kB / 0.5145 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.4543, allocations: 8.125 kB / 0.5145 GB, free: 1.168 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.0001272/0.4544, allocations: 176.7 kB / 0.5147 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.976e-05/0.4545, allocations: 24.64 kB / 0.5147 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.4545, allocations: 15.2 kB / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.4545, allocations: 0.7031 kB / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.4545, allocations: 0 / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.4545, allocations: 0 / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.4547, allocations: 212.7 kB / 0.5149 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4547, allocations: 3.938 kB / 0.5149 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.333e-06/0.4547, allocations: 0.7031 kB / 0.5149 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.4547, allocations: 1.156 kB / 0.5149 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.4547, allocations: 4.219 kB / 0.5149 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4547, allocations: 4 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4548, allocations: 1.25 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003526/0.4551, allocations: 371.5 kB / 0.5153 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.237e-05/0.4552, allocations: 86.17 kB / 0.5154 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.4552, allocations: 1.469 kB / 0.5154 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.878e-05/0.4553, allocations: 3.438 kB / 0.5154 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.4553, allocations: 6.25 kB / 0.5154 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.4553, allocations: 10.28 kB / 0.5154 GB, free: 468 kB / 382.1 MB Notification: Performance of sorting global known variables: time 6.966e-05/0.4554, allocations: 116 kB / 0.5155 GB, free: 384 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4554, allocations: 3.938 kB / 0.5155 GB, free: 380 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001548/0.4569, allocations: 345.9 kB / 0.5158 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.002076/0.459, allocations: 1.281 MB / 0.5171 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004445/0.4595, allocations: 336.7 kB / 0.5174 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4595, allocations: 1.312 kB / 0.5174 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002788/0.4598, allocations: 262.1 kB / 0.5177 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.4602, allocations: 10.52 kB / 0.5177 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.463, allocations: 2.324 MB / 0.5199 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.4634, allocations: 0.7283 MB / 0.5206 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.771e-05/0.4634, allocations: 1.969 kB / 0.5207 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.371e-05/0.4634, allocations: 36.45 kB / 0.5207 GB, free: 12.92 MB / 398.1 MB Notification: Performance of SimCode: time 2.585e-06/0.4635, allocations: 0 / 0.5207 GB, free: 12.92 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].