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.001444/0.001444, allocations: 111.7 kB / 17.06 MB, free: 6 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.001777/0.001777, allocations: 194.9 kB / 18 MB, free: 5.078 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.472/1.472, 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.1762/0.1762, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001997, allocations: 59.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3843, allocations: 58.06 MB / 0.5036 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003467/0.3878, allocations: 2.144 MB / 0.5057 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002849/0.3907, allocations: 2.056 MB / 0.5077 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.651e-05/0.3908, allocations: 1.094 kB / 0.5077 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001391/0.391, allocations: 10.91 kB / 0.5077 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.3911, allocations: 46.03 kB / 0.5078 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002514/0.3936, allocations: 0.8215 MB / 0.5086 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001713/0.3938, allocations: 98.12 kB / 0.5087 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.733e-05/0.3939, allocations: 8.719 kB / 0.5087 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.906e-05/0.394, allocations: 40.58 kB / 0.5087 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.975e-05/0.3941, allocations: 51.62 kB / 0.5088 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.3941, allocations: 5.875 kB / 0.5088 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002284/0.3964, allocations: 1.385 MB / 0.5101 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.362e-05/0.3965, allocations: 33.33 kB / 0.5102 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.27e-05/0.3965, allocations: 39.75 kB / 0.5102 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002191/0.3987, allocations: 1.317 MB / 0.5115 GB, free: 3.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3988, allocations: 3.938 kB / 0.5115 GB, free: 3.445 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3988, allocations: 1.406 kB / 0.5115 GB, free: 3.445 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3988, allocations: 4 kB / 0.5115 GB, free: 3.441 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.0007951/0.3996, allocations: 0.5362 MB / 0.512 GB, free: 2.941 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.3996, allocations: 13.7 kB / 0.512 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.341e-05/0.3997, allocations: 67.33 kB / 0.5121 GB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.843e-05/0.3998, allocations: 15.72 kB / 0.5121 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001819/0.4, allocations: 206.3 kB / 0.5123 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.4, allocations: 11.66 kB / 0.5123 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.4, allocations: 8.5 kB / 0.5123 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002248/0.4002, allocations: 127.6 kB / 0.5125 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.4003, allocations: 5.156 kB / 0.5125 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.4003, allocations: 2.172 kB / 0.5125 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.4003, allocations: 1.828 kB / 0.5125 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.4004, allocations: 70.25 kB / 0.5125 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004127/0.4008, allocations: 360.2 kB / 0.5129 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001037/0.4009, allocations: 85.28 kB / 0.513 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.443e-05/0.401, allocations: 58.56 kB / 0.513 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-06/0.401, allocations: 7.891 kB / 0.513 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.4011, allocations: 31.94 kB / 0.513 GB, free: 2.141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.4011, allocations: 0 / 0.513 GB, free: 2.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003797/0.4015, allocations: 217.9 kB / 0.5133 GB, free: 2.055 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.4015, allocations: 86.44 kB / 0.5133 GB, free: 1.961 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.4016, allocations: 152.2 kB / 0.5135 GB, free: 1.848 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.708e-06/0.4016, allocations: 25.7 kB / 0.5135 GB, free: 1.816 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.431e-05/0.4017, allocations: 120.9 kB / 0.5136 GB, free: 1.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.07e-05/0.4017, allocations: 47.33 kB / 0.5137 GB, free: 1.668 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.193e-05/0.4018, allocations: 25.88 kB / 0.5137 GB, free: 1.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.418e-05/0.4018, allocations: 321.9 kB / 0.514 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.237e-05/0.4019, allocations: 42.53 kB / 0.514 GB, free: 1.324 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.13e-05/0.402, allocations: 36.48 kB / 0.5141 GB, free: 1.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.4021, allocations: 176 kB / 0.5142 GB, free: 1.234 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.4021, allocations: 1.5 kB / 0.5142 GB, free: 1.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002228/0.4024, allocations: 180.5 kB / 0.5144 GB, free: 1.145 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.961e-05/0.4024, allocations: 49.81 kB / 0.5145 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.4024, allocations: 0 / 0.5145 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.4025, allocations: 0.8438 kB / 0.5145 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.4025, allocations: 1.219 kB / 0.5145 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.4025, allocations: 3.938 kB / 0.5145 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.595e-05/0.4025, allocations: 10.97 kB / 0.5145 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/0.4026, allocations: 6.734 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.0001115/0.4027, allocations: 175.6 kB / 0.5147 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.658e-05/0.4027, allocations: 11.81 kB / 0.5147 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.78e-05/0.4028, allocations: 21.44 kB / 0.5147 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4028, allocations: 1.797 kB / 0.5147 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.4028, allocations: 0 / 0.5147 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.4028, allocations: 0 / 0.5147 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.403, allocations: 221.7 kB / 0.5149 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.403, allocations: 0 / 0.5149 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.42e-07/0.403, allocations: 0 / 0.5149 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.403, allocations: 2.375 kB / 0.5149 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.403, allocations: 2.688 kB / 0.5149 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.403, allocations: 2.375 kB / 0.5149 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.403, allocations: 0 / 0.5149 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003441/0.4034, allocations: 371.6 kB / 0.5153 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.715e-05/0.4034, allocations: 85 kB / 0.5153 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.4034, allocations: 2.594 kB / 0.5153 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.769e-05/0.4035, allocations: 3.391 kB / 0.5153 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.012e-05/0.4035, allocations: 7.391 kB / 0.5154 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.4035, allocations: 5.312 kB / 0.5154 GB, free: 404 kB / 382.1 MB Notification: Performance of sorting global known variables: time 6.756e-05/0.4036, allocations: 120.1 kB / 0.5155 GB, free: 316 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4036, allocations: 4.031 kB / 0.5155 GB, free: 312 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.00151/0.4051, allocations: 336 kB / 0.5158 GB, free: 268 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.002146/0.4073, allocations: 1.281 MB / 0.5171 GB, free: 15.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004581/0.4078, allocations: 340.6 kB / 0.5174 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4078, allocations: 1 kB / 0.5174 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.4081, allocations: 255.2 kB / 0.5176 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.0003861/0.4085, allocations: 15.34 kB / 0.5176 GB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002863/0.4113, allocations: 2.307 MB / 0.5199 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.4117, allocations: 0.7384 MB / 0.5206 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.423e-05/0.4117, allocations: 2.297 kB / 0.5206 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.717e-05/0.4118, allocations: 36.73 kB / 0.5206 GB, free: 12.87 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4118, allocations: 0 / 0.5206 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].