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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 109.9 kB / 17.06 MB, free: 6.016 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.00122/0.00122, allocations: 192 kB / 18 MB, free: 5.105 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.372/1.372, 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/package.mo): time 0.1739/0.1739, allocations: 38.03 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.91 kB / 458.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3792, allocations: 58.05 MB / 0.5041 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002967/0.3822, allocations: 2.157 MB / 0.5062 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002521/0.3848, allocations: 2.041 MB / 0.5082 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.942e-05/0.3848, allocations: 1.156 kB / 0.5082 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.385, allocations: 14.34 kB / 0.5082 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.3852, allocations: 46.17 kB / 0.5083 GB, free: 4.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002187/0.3873, allocations: 0.8164 MB / 0.5091 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.3875, allocations: 98.53 kB / 0.5092 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.359e-05/0.3876, allocations: 8.625 kB / 0.5092 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.173e-05/0.3876, allocations: 40.7 kB / 0.5092 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.141e-05/0.3877, allocations: 55.38 kB / 0.5093 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.3877, allocations: 2.375 kB / 0.5093 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001947/0.3897, allocations: 1.384 MB / 0.5106 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.627e-05/0.3898, allocations: 28.75 kB / 0.5106 GB, free: 4.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.121e-05/0.3898, allocations: 39.88 kB / 0.5107 GB, free: 4.062 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001685/0.3915, allocations: 1.328 MB / 0.512 GB, free: 3.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3915, allocations: 4 kB / 0.512 GB, free: 3.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3915, allocations: 0 / 0.512 GB, free: 3.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.3915, allocations: 1.344 kB / 0.512 GB, free: 3.816 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.000533/0.3921, allocations: 0.5315 MB / 0.5125 GB, free: 3.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.3921, allocations: 18.28 kB / 0.5125 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.929e-05/0.3922, allocations: 13.94 kB / 0.5125 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.3923, allocations: 198.2 kB / 0.5127 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.3923, allocations: 5.344 kB / 0.5127 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.3923, allocations: 1.906 kB / 0.5127 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001369/0.3925, allocations: 75.16 kB / 0.5128 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.3925, allocations: 0 / 0.5128 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.3925, allocations: 1.125 kB / 0.5128 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.3925, allocations: 0 / 0.5128 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.865e-05/0.3926, allocations: 46.11 kB / 0.5128 GB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001132/0.3927, allocations: 184.3 kB / 0.513 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.893e-05/0.3928, allocations: 77.42 kB / 0.5131 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.507e-05/0.3929, allocations: 62.25 kB / 0.5131 GB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.983e-06/0.3929, allocations: 5.312 kB / 0.5132 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.491e-05/0.3929, allocations: 35.34 kB / 0.5132 GB, free: 2.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.3929, allocations: 1.375 kB / 0.5132 GB, free: 2.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003132/0.3932, allocations: 223.5 kB / 0.5134 GB, free: 2.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.3933, allocations: 91.41 kB / 0.5135 GB, free: 2.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.951e-05/0.3934, allocations: 154.3 kB / 0.5136 GB, free: 2.406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.228e-06/0.3934, allocations: 27.17 kB / 0.5137 GB, free: 2.375 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.913e-05/0.3934, allocations: 98.83 kB / 0.5138 GB, free: 2.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.075e-05/0.3935, allocations: 41.41 kB / 0.5138 GB, free: 2.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-05/0.3935, allocations: 20.38 kB / 0.5138 GB, free: 2.234 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.342e-05/0.3936, allocations: 325.8 kB / 0.5141 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.065e-05/0.3936, allocations: 45.44 kB / 0.5142 GB, free: 1.902 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.263e-05/0.3937, allocations: 41.52 kB / 0.5142 GB, free: 1.895 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.3938, allocations: 176.4 kB / 0.5144 GB, free: 1.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3939, allocations: 5.406 kB / 0.5144 GB, free: 1.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001931/0.3941, allocations: 176.5 kB / 0.5145 GB, free: 1.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.3941, allocations: 49.78 kB / 0.5146 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3941, allocations: 0.6094 kB / 0.5146 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.3941, allocations: 1.312 kB / 0.5146 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.3941, allocations: 0 / 0.5146 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.3941, allocations: 0.7031 kB / 0.5146 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.236e-05/0.3942, allocations: 14.91 kB / 0.5146 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.3942, allocations: 6.953 kB / 0.5146 GB, free: 1.672 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 9.59e-05/0.3943, allocations: 170.3 kB / 0.5148 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.3944, allocations: 16 kB / 0.5148 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.683e-05/0.3944, allocations: 9.25 kB / 0.5148 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3944, allocations: 0.8438 kB / 0.5148 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3944, allocations: 1.469 kB / 0.5148 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.3944, allocations: 0 / 0.5148 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.834e-05/0.3945, allocations: 190.3 kB / 0.515 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3945, allocations: 5.031 kB / 0.515 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.81e-07/0.3945, allocations: 3.938 kB / 0.515 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.3945, allocations: 5.281 kB / 0.515 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.3945, allocations: 5.141 kB / 0.515 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.3945, allocations: 0 / 0.515 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3945, allocations: 0 / 0.515 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003109/0.3949, allocations: 297.2 kB / 0.5153 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.362e-05/0.3949, allocations: 89.25 kB / 0.5154 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.368e-05/0.3949, allocations: 7.156 kB / 0.5154 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.671e-05/0.395, allocations: 2.156 kB / 0.5154 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.207e-05/0.395, allocations: 7.828 kB / 0.5154 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.395, allocations: 5.016 kB / 0.5154 GB, free: 1.043 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.737e-05/0.3951, allocations: 120.8 kB / 0.5155 GB, free: 0.957 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3951, allocations: 0 / 0.5155 GB, free: 0.957 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001052/0.3961, allocations: 326.9 kB / 0.5158 GB, free: 0.9141 MB / 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.0009385/0.3971, allocations: 371.2 kB / 0.5162 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003602/0.3974, allocations: 338.3 kB / 0.5165 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3974, allocations: 0 / 0.5165 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001984/0.3977, allocations: 259.2 kB / 0.5167 GB, free: 448 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002426/0.3979, allocations: 25.03 kB / 0.5168 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005069/0.3984, allocations: 360.4 kB / 0.5171 GB, free: 236 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.3987, allocations: 0.7135 MB / 0.5178 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.863e-05/0.3987, allocations: 2.312 kB / 0.5178 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.054e-05/0.3987, allocations: 8.562 kB / 0.5178 GB, free: 15.52 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3987, allocations: 0 / 0.5178 GB, free: 15.52 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].