Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_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.002035/0.002036, allocations: 109 kB / 17.06 MB, free: 6.02 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.00227/0.00227, allocations: 191 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.581/2.581, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2686/0.2686, allocations: 38.03 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002797/0.002797, allocations: 59.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.014/1.017, allocations: 58.06 MB / 0.5036 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.008653/1.025, allocations: 2.15 MB / 0.5057 GB, free: 5.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005341/1.031, allocations: 2.048 MB / 0.5077 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/1.031, allocations: 0 / 0.5077 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002314/1.031, allocations: 14.95 kB / 0.5077 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001994/1.032, allocations: 42.12 kB / 0.5078 GB, free: 4.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005121/1.037, allocations: 0.8129 MB / 0.5086 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003811/1.037, allocations: 98.36 kB / 0.5087 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.769e-05/1.037, allocations: 10.61 kB / 0.5087 GB, free: 4.207 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/1.037, allocations: 41.03 kB / 0.5087 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/1.038, allocations: 55.84 kB / 0.5088 GB, free: 4.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/1.038, allocations: 6.562 kB / 0.5088 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005416/1.043, allocations: 1.381 MB / 0.5101 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/1.043, allocations: 27.5 kB / 0.5102 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/1.043, allocations: 45 kB / 0.5102 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005667/1.049, allocations: 1.322 MB / 0.5115 GB, free: 3.469 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.109e-05/1.049, allocations: 5 kB / 0.5115 GB, free: 3.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.687e-06/1.049, allocations: 0 / 0.5115 GB, free: 3.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/1.049, allocations: 4 kB / 0.5115 GB, free: 3.461 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.001884/1.051, allocations: 0.5475 MB / 0.512 GB, free: 2.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.251e-05/1.051, allocations: 14.38 kB / 0.512 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001364/1.051, allocations: 62.47 kB / 0.5121 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/1.051, allocations: 20.17 kB / 0.5121 GB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003896/1.052, allocations: 218.8 kB / 0.5123 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/1.052, allocations: 6.844 kB / 0.5123 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/1.052, allocations: 8.25 kB / 0.5123 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004488/1.052, allocations: 124.8 kB / 0.5125 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/1.052, allocations: 4 kB / 0.5125 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.17e-05/1.052, allocations: 1.062 kB / 0.5125 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/1.053, allocations: 2.219 kB / 0.5125 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002338/1.053, allocations: 71.23 kB / 0.5125 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007911/1.054, allocations: 355.5 kB / 0.5129 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/1.054, allocations: 85.48 kB / 0.513 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/1.054, allocations: 58.44 kB / 0.513 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/1.054, allocations: 5.156 kB / 0.513 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/1.054, allocations: 31.31 kB / 0.513 GB, free: 2.148 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.675e-06/1.054, allocations: 1 kB / 0.513 GB, free: 2.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0007462/1.055, allocations: 228.9 kB / 0.5133 GB, free: 2.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/1.055, allocations: 87.03 kB / 0.5133 GB, free: 1.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/1.055, allocations: 152.3 kB / 0.5135 GB, free: 1.844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/1.055, allocations: 25.7 kB / 0.5135 GB, free: 1.812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.173e-05/1.055, allocations: 120.8 kB / 0.5136 GB, free: 1.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.042e-05/1.055, allocations: 48.2 kB / 0.5137 GB, free: 1.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.685e-05/1.055, allocations: 25.5 kB / 0.5137 GB, free: 1.645 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.936e-05/1.055, allocations: 322.3 kB / 0.514 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.572e-05/1.056, allocations: 41.8 kB / 0.5141 GB, free: 1.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.5e-05/1.056, allocations: 37.09 kB / 0.5141 GB, free: 1.316 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/1.056, allocations: 176.8 kB / 0.5143 GB, free: 1.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/1.056, allocations: 0 / 0.5143 GB, free: 1.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003284/1.056, allocations: 184.5 kB / 0.5144 GB, free: 1.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.156e-05/1.056, allocations: 50.14 kB / 0.5145 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/1.056, allocations: 1.312 kB / 0.5145 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/1.056, allocations: 0 / 0.5145 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.406e-06/1.056, allocations: 0.5156 kB / 0.5145 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/1.056, allocations: 0.5 kB / 0.5145 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/1.057, allocations: 7.797 kB / 0.5145 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/1.057, allocations: 9.438 kB / 0.5145 GB, free: 1.098 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.0002136/1.057, allocations: 172.3 kB / 0.5147 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.794e-05/1.057, allocations: 16.81 kB / 0.5147 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.315e-05/1.057, allocations: 20.67 kB / 0.5147 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/1.057, allocations: 2.297 kB / 0.5147 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/1.057, allocations: 0 / 0.5147 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/1.057, allocations: 0 / 0.5147 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003258/1.057, allocations: 212.4 kB / 0.5149 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/1.057, allocations: 1.812 kB / 0.5149 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.864e-06/1.057, allocations: 0 / 0.5149 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/1.057, allocations: 0.9375 kB / 0.5149 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/1.057, allocations: 7.969 kB / 0.5149 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/1.057, allocations: 4 kB / 0.5149 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.057, allocations: 4.797 kB / 0.5149 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000704/1.058, allocations: 376.3 kB / 0.5153 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.358e-05/1.058, allocations: 84.38 kB / 0.5154 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.043e-05/1.058, allocations: 3.297 kB / 0.5154 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/1.058, allocations: 2.844 kB / 0.5154 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.248e-05/1.058, allocations: 7.734 kB / 0.5154 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/1.058, allocations: 5.344 kB / 0.5154 GB, free: 396 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001322/1.059, allocations: 115.4 kB / 0.5155 GB, free: 312 kB / 382.1 MB Notification: Performance of sort global known variables: time 7.51e-07/1.059, allocations: 5.531 kB / 0.5155 GB, free: 308 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.002749/1.061, allocations: 344.9 kB / 0.5158 GB, free: 252 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.004218/1.066, allocations: 1.279 MB / 0.5171 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007866/1.066, allocations: 340.6 kB / 0.5174 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/1.067, allocations: 0 / 0.5174 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004159/1.067, allocations: 258.4 kB / 0.5176 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006303/1.068, allocations: 13.89 kB / 0.5177 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005343/1.073, allocations: 2.311 MB / 0.5199 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004614/1.073, allocations: 0.7357 MB / 0.5206 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.827e-05/1.074, allocations: 3.203 kB / 0.5206 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.951e-05/1.074, allocations: 40.25 kB / 0.5207 GB, free: 12.85 MB / 398.1 MB Notification: Performance of SimCode: time 1.543e-06/1.074, allocations: 0 / 0.5207 GB, free: 12.85 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].