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.001291/0.001291, allocations: 110.2 kB / 17.06 MB, free: 5.785 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.001458/0.001458, allocations: 193.4 kB / 18.01 MB, free: 4.941 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.464/1.464, 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-master/package.mo): time 0.1847/0.1847, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 67.89 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3552, allocations: 58.06 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003183/0.3585, allocations: 2.145 MB / 0.5057 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002612/0.3611, allocations: 2.044 MB / 0.5077 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.169e-05/0.3612, allocations: 1.062 kB / 0.5077 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.3613, allocations: 14 kB / 0.5077 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001171/0.3615, allocations: 46.72 kB / 0.5078 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002443/0.3639, allocations: 0.8142 MB / 0.5086 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.3641, allocations: 98.73 kB / 0.5087 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.85e-05/0.3642, allocations: 10.81 kB / 0.5087 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.55e-05/0.3643, allocations: 37.11 kB / 0.5087 GB, free: 4.207 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.692e-05/0.3644, allocations: 51.33 kB / 0.5088 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.704e-05/0.3644, allocations: 6.672 kB / 0.5088 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002395/0.3668, allocations: 1.38 MB / 0.5101 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.844e-05/0.3669, allocations: 32.84 kB / 0.5102 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.493e-05/0.367, allocations: 43.27 kB / 0.5102 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002472/0.3694, allocations: 1.323 MB / 0.5115 GB, free: 3.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3695, allocations: 0 / 0.5115 GB, free: 3.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3695, allocations: 1.031 kB / 0.5115 GB, free: 3.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.3695, allocations: 0 / 0.5115 GB, free: 3.484 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.0007885/0.3703, allocations: 0.5515 MB / 0.512 GB, free: 2.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.3703, allocations: 9.469 kB / 0.512 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.272e-05/0.3704, allocations: 67.47 kB / 0.5121 GB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.801e-05/0.3705, allocations: 23.83 kB / 0.5121 GB, free: 2.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.3707, allocations: 203.3 kB / 0.5123 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.3707, allocations: 15.5 kB / 0.5123 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.3707, allocations: 5.344 kB / 0.5123 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002467/0.371, allocations: 123.9 kB / 0.5125 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.371, allocations: 0 / 0.5125 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.371, allocations: 9.062 kB / 0.5125 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.371, allocations: 6.312 kB / 0.5125 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.3712, allocations: 74.44 kB / 0.5125 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000426/0.3716, allocations: 356.8 kB / 0.5129 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.3717, allocations: 77.06 kB / 0.513 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.884e-05/0.3718, allocations: 62.23 kB / 0.513 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.435e-06/0.3718, allocations: 5.281 kB / 0.513 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.3718, allocations: 36.48 kB / 0.5131 GB, free: 2.164 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.213e-06/0.3718, allocations: 0 / 0.5131 GB, free: 2.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004017/0.3723, allocations: 224.9 kB / 0.5133 GB, free: 2.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.3723, allocations: 87.97 kB / 0.5134 GB, free: 1.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.3724, allocations: 149.2 kB / 0.5135 GB, free: 1.867 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.3724, allocations: 26.77 kB / 0.5135 GB, free: 1.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.311e-05/0.3725, allocations: 119.6 kB / 0.5136 GB, free: 1.727 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.757e-05/0.3725, allocations: 48.62 kB / 0.5137 GB, free: 1.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.35e-05/0.3726, allocations: 29.34 kB / 0.5137 GB, free: 1.664 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.946e-05/0.3726, allocations: 322.5 kB / 0.514 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.22e-05/0.3727, allocations: 36.77 kB / 0.5141 GB, free: 1.344 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.368e-05/0.3728, allocations: 46.3 kB / 0.5141 GB, free: 1.332 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.3729, allocations: 174.9 kB / 0.5143 GB, free: 1.246 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.373, allocations: 0 / 0.5143 GB, free: 1.246 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001992/0.3732, allocations: 172.9 kB / 0.5144 GB, free: 1.164 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.665e-05/0.3732, allocations: 49.55 kB / 0.5145 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.3732, allocations: 1.406 kB / 0.5145 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.3732, allocations: 4.062 kB / 0.5145 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-06/0.3733, allocations: 0.6562 kB / 0.5145 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.3733, allocations: 1.344 kB / 0.5145 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.279e-05/0.3733, allocations: 6.766 kB / 0.5145 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.3733, allocations: 5.219 kB / 0.5145 GB, free: 1.121 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.0001075/0.3735, allocations: 177.1 kB / 0.5147 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.704e-05/0.3735, allocations: 19.16 kB / 0.5147 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.943e-05/0.3735, allocations: 14.38 kB / 0.5147 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.3735, allocations: 4 kB / 0.5147 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.3735, allocations: 0.9062 kB / 0.5147 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.3736, allocations: 0.8438 kB / 0.5147 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.3737, allocations: 208.8 kB / 0.5149 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.3737, allocations: 3.938 kB / 0.5149 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.573e-06/0.3737, allocations: 1.703 kB / 0.5149 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-06/0.3737, allocations: 0 / 0.5149 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.3738, allocations: 4.281 kB / 0.5149 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3738, allocations: 0.9844 kB / 0.5149 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3738, allocations: 1.219 kB / 0.5149 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003724/0.3742, allocations: 382.3 kB / 0.5153 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.559e-05/0.3742, allocations: 84.05 kB / 0.5154 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.3742, allocations: 11.48 kB / 0.5154 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.575e-05/0.3743, allocations: 3.406 kB / 0.5154 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.674e-05/0.3743, allocations: 3.516 kB / 0.5154 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.3743, allocations: 5.031 kB / 0.5154 GB, free: 420 kB / 382.1 MB Notification: Performance of sorting global known variables: time 7.213e-05/0.3744, allocations: 116.1 kB / 0.5155 GB, free: 336 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3744, allocations: 3.938 kB / 0.5155 GB, free: 332 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.00153/0.376, allocations: 349 kB / 0.5158 GB, free: 272 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.002205/0.3782, allocations: 1.275 MB / 0.5171 GB, free: 15.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004562/0.3787, allocations: 345.8 kB / 0.5174 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3787, allocations: 0 / 0.5174 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000252/0.3789, allocations: 258.3 kB / 0.5177 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003877/0.3793, allocations: 19.83 kB / 0.5177 GB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002799/0.3821, allocations: 2.314 MB / 0.5199 GB, free: 13.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.3826, allocations: 0.733 MB / 0.5206 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.496e-05/0.3826, allocations: 1.188 kB / 0.5206 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.62e-05/0.3826, allocations: 35.86 kB / 0.5207 GB, free: 12.87 MB / 398.1 MB Notification: Performance of SimCode: time 2.214e-06/0.3827, allocations: 1.062 kB / 0.5207 GB, free: 12.87 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].