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.001261/0.001261, allocations: 112.6 kB / 17.06 MB, free: 5.992 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.001224/0.001224, allocations: 196 kB / 18.01 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.41/1.41, 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/package.mo): time 0.1803/0.1803, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 75.83 kB / 457.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3556, allocations: 58.05 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003523/0.3592, allocations: 2.148 MB / 0.5057 GB, free: 5.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002858/0.3621, allocations: 2.043 MB / 0.5077 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.458e-05/0.3621, allocations: 5.062 kB / 0.5077 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.771e-05/0.3622, allocations: 13.59 kB / 0.5077 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.232e-05/0.3623, allocations: 39.09 kB / 0.5078 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002328/0.3647, allocations: 0.8153 MB / 0.5086 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001856/0.3649, allocations: 101.6 kB / 0.5087 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.118e-05/0.3649, allocations: 9.438 kB / 0.5087 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.732e-05/0.365, allocations: 41.17 kB / 0.5087 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.714e-05/0.3651, allocations: 54.89 kB / 0.5088 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.3651, allocations: 6.391 kB / 0.5088 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002303/0.3675, allocations: 1.378 MB / 0.5101 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.403e-05/0.3675, allocations: 28.39 kB / 0.5101 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.033e-05/0.3676, allocations: 43.88 kB / 0.5102 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002229/0.3698, allocations: 1.324 MB / 0.5115 GB, free: 3.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3698, allocations: 3.938 kB / 0.5115 GB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3699, allocations: 5.188 kB / 0.5115 GB, free: 3.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.3699, allocations: 0 / 0.5115 GB, free: 3.527 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.0007272/0.3706, allocations: 0.5472 MB / 0.512 GB, free: 3.016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.3707, allocations: 13.58 kB / 0.512 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.246e-05/0.3707, allocations: 59.69 kB / 0.5121 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.3708, allocations: 23.17 kB / 0.5121 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.371, allocations: 216.5 kB / 0.5123 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.371, allocations: 7.281 kB / 0.5123 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.3711, allocations: 11.19 kB / 0.5123 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.3713, allocations: 124.2 kB / 0.5125 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3713, allocations: 3.938 kB / 0.5125 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.3714, allocations: 1.656 kB / 0.5125 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.3714, allocations: 2.156 kB / 0.5125 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.3715, allocations: 71.36 kB / 0.5125 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.372, allocations: 355.8 kB / 0.5129 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/0.3721, allocations: 81.05 kB / 0.513 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.013e-05/0.3722, allocations: 62.94 kB / 0.513 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.966e-06/0.3722, allocations: 0 / 0.513 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.545e-05/0.3722, allocations: 36.45 kB / 0.513 GB, free: 2.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 8.82e-07/0.3722, allocations: 0 / 0.513 GB, free: 2.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003821/0.3726, allocations: 225.5 kB / 0.5133 GB, free: 2.121 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.3727, allocations: 87.98 kB / 0.5133 GB, free: 2.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.3728, allocations: 153.9 kB / 0.5135 GB, free: 1.914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/0.3728, allocations: 25.73 kB / 0.5135 GB, free: 1.883 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.789e-05/0.3729, allocations: 121.3 kB / 0.5136 GB, free: 1.773 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.796e-05/0.3729, allocations: 47.78 kB / 0.5137 GB, free: 1.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.317e-05/0.373, allocations: 24.92 kB / 0.5137 GB, free: 1.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.674e-05/0.373, allocations: 322.7 kB / 0.514 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.6e-05/0.3731, allocations: 40.81 kB / 0.5141 GB, free: 1.391 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.883e-05/0.3732, allocations: 38.28 kB / 0.5141 GB, free: 1.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.3734, allocations: 180.4 kB / 0.5143 GB, free: 1.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3734, allocations: 0 / 0.5143 GB, free: 1.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002125/0.3736, allocations: 181.5 kB / 0.5144 GB, free: 1.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.195e-05/0.3737, allocations: 46.3 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3737, allocations: 0 / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.3737, allocations: 0 / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.153e-06/0.3737, allocations: 1.594 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.3737, allocations: 0 / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.485e-05/0.3738, allocations: 15.11 kB / 0.5145 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.3738, allocations: 6.906 kB / 0.5145 GB, free: 1.164 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.0001324/0.3739, allocations: 171.7 kB / 0.5147 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.133e-05/0.374, allocations: 24 kB / 0.5147 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.185e-05/0.374, allocations: 13.62 kB / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.374, allocations: 1.062 kB / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.374, allocations: 0 / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.374, allocations: 1.031 kB / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001667/0.3742, allocations: 212.5 kB / 0.5149 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.3742, allocations: 7.875 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.3742, allocations: 1.281 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3742, allocations: 0.75 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.3742, allocations: 4.312 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3742, allocations: 4.75 kB / 0.5149 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3742, allocations: 0 / 0.5149 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003399/0.3746, allocations: 376.9 kB / 0.5153 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.481e-05/0.3746, allocations: 84.52 kB / 0.5154 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.3747, allocations: 3 kB / 0.5154 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.403e-05/0.3747, allocations: 2.969 kB / 0.5154 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.624e-05/0.3748, allocations: 7.391 kB / 0.5154 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.3748, allocations: 4.906 kB / 0.5154 GB, free: 468 kB / 382.1 MB Notification: Performance of sorting global known variables: time 6.487e-05/0.3748, allocations: 121.5 kB / 0.5155 GB, free: 380 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3748, allocations: 0 / 0.5155 GB, free: 380 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001296/0.3762, allocations: 343.8 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.001937/0.3781, allocations: 1.287 MB / 0.5171 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004285/0.3785, allocations: 337.4 kB / 0.5174 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3785, allocations: 0 / 0.5174 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002459/0.3788, allocations: 261.1 kB / 0.5176 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.0003162/0.3791, allocations: 11.94 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.002692/0.3818, allocations: 2.312 MB / 0.5199 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.3822, allocations: 0.735 MB / 0.5206 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.153e-05/0.3823, allocations: 1.938 kB / 0.5206 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.804e-05/0.3823, allocations: 37.23 kB / 0.5207 GB, free: 12.92 MB / 398.1 MB Notification: Performance of SimCode: time 2.625e-06/0.3823, 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].