Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001716/0.001717, allocations: 108.1 kB / 17.06 MB, free: 5.82 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.00193/0.00193, allocations: 195.9 kB / 18 MB, free: 4.965 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.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.177/0.177, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 59.91 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.3828, allocations: 58.07 MB / 0.5036 GB, free: 7.723 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003294/0.3861, allocations: 2.107 MB / 0.5057 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002979/0.3891, allocations: 2.037 MB / 0.5077 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.497e-05/0.3892, allocations: 0 / 0.5077 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.3894, allocations: 10.08 kB / 0.5077 GB, free: 4.879 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.215e-05/0.3895, allocations: 29.92 kB / 0.5077 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002672/0.3921, allocations: 0.8316 MB / 0.5085 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001498/0.3923, allocations: 82.73 kB / 0.5086 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.184e-05/0.3924, allocations: 8.406 kB / 0.5086 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.523e-05/0.3924, allocations: 27.97 kB / 0.5086 GB, free: 4.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.867e-05/0.3925, allocations: 53.45 kB / 0.5087 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.3926, allocations: 2.344 kB / 0.5087 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002186/0.3948, allocations: 1.404 MB / 0.5101 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.3948, allocations: 25.81 kB / 0.5101 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.002e-05/0.3949, allocations: 36.97 kB / 0.5101 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002077/0.397, allocations: 1.361 MB / 0.5115 GB, free: 3.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.397, allocations: 1.188 kB / 0.5115 GB, free: 3.801 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.397, allocations: 4.703 kB / 0.5115 GB, free: 3.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.397, allocations: 0 / 0.5115 GB, free: 3.797 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007004/0.3977, allocations: 0.5705 MB / 0.512 GB, free: 3.273 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.3978, allocations: 13.33 kB / 0.512 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.294e-05/0.3978, allocations: 41.44 kB / 0.5121 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.284e-05/0.3979, allocations: 14.64 kB / 0.5121 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.398, allocations: 207.9 kB / 0.5123 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.398, allocations: 1.094 kB / 0.5123 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.3981, allocations: 5.156 kB / 0.5123 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000213/0.3983, allocations: 99.7 kB / 0.5124 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.3983, allocations: 0.7969 kB / 0.5124 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.3983, allocations: 1.562 kB / 0.5124 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.3983, allocations: 0 / 0.5124 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.12e-05/0.3984, allocations: 61.23 kB / 0.5125 GB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001628/0.3986, allocations: 192.8 kB / 0.5126 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.3987, allocations: 101 kB / 0.5127 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.3989, allocations: 91.2 kB / 0.5128 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.3989, allocations: 6.766 kB / 0.5128 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.3989, allocations: 32.27 kB / 0.5129 GB, free: 2.582 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.974e-06/0.3989, allocations: 0 / 0.5129 GB, free: 2.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005039/0.3994, allocations: 324.4 kB / 0.5132 GB, free: 2.469 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.3995, allocations: 98.7 kB / 0.5133 GB, free: 2.371 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.3996, allocations: 153.7 kB / 0.5134 GB, free: 2.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.059e-05/0.3996, allocations: 26.86 kB / 0.5134 GB, free: 2.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.28e-05/0.3996, allocations: 99.53 kB / 0.5135 GB, free: 2.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.761e-05/0.3997, allocations: 87.97 kB / 0.5136 GB, free: 2.062 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.3997, allocations: 28.3 kB / 0.5136 GB, free: 2.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.067e-05/0.3998, allocations: 333.3 kB / 0.514 GB, free: 1.719 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.712e-05/0.3999, allocations: 61.66 kB / 0.514 GB, free: 1.707 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.917e-05/0.4, allocations: 59.83 kB / 0.5141 GB, free: 1.695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000249/0.4002, allocations: 256.2 kB / 0.5143 GB, free: 1.594 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4002, allocations: 0 / 0.5143 GB, free: 1.594 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002807/0.4005, allocations: 235.4 kB / 0.5145 GB, free: 1.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.126e-05/0.4006, allocations: 70.94 kB / 0.5146 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.4006, allocations: 1.438 kB / 0.5146 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.4006, allocations: 3.938 kB / 0.5146 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.823e-06/0.4006, allocations: 0.75 kB / 0.5146 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.4006, allocations: 1.312 kB / 0.5146 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.861e-05/0.4007, allocations: 12.08 kB / 0.5146 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.4007, allocations: 8.125 kB / 0.5146 GB, free: 1.441 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.000133/0.4009, allocations: 194.6 kB / 0.5148 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.4009, allocations: 17.5 kB / 0.5148 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.932e-05/0.4009, allocations: 18.59 kB / 0.5149 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.4009, allocations: 0 / 0.5149 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.4009, allocations: 1.984 kB / 0.5149 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.4009, allocations: 0 / 0.5149 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.4011, allocations: 208.5 kB / 0.5151 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4011, allocations: 0 / 0.5151 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.173e-06/0.4011, allocations: 1.125 kB / 0.5151 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.4011, allocations: 0.7031 kB / 0.5151 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.4011, allocations: 9.469 kB / 0.5151 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4011, allocations: 1.125 kB / 0.5151 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.4011, allocations: 0 / 0.5151 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006676/0.4018, allocations: 0.5244 MB / 0.5156 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.766e-05/0.4018, allocations: 93.44 kB / 0.5157 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.4019, allocations: 4.891 kB / 0.5157 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.153e-05/0.4019, allocations: 7.656 kB / 0.5157 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.111e-05/0.4019, allocations: 7.281 kB / 0.5157 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.402, allocations: 6.5 kB / 0.5157 GB, free: 0.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.34e-05/0.402, allocations: 115.6 kB / 0.5158 GB, free: 0.668 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4021, allocations: 4.531 kB / 0.5158 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001485/0.4035, allocations: 336.8 kB / 0.5161 GB, free: 0.6211 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.001889/0.4054, allocations: 1.317 MB / 0.5174 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008189/0.4063, allocations: 0.7132 MB / 0.5181 GB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4063, allocations: 0 / 0.5181 GB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005854/0.4069, allocations: 0.5727 MB / 0.5187 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.4071, allocations: 15.84 kB / 0.5187 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003246/0.4104, allocations: 2.677 MB / 0.5213 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.4108, allocations: 0.7268 MB / 0.522 GB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.77e-05/0.4108, allocations: 6.016 kB / 0.522 GB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.188e-05/0.4109, allocations: 32.14 kB / 0.522 GB, free: 12.94 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4109, allocations: 0 / 0.522 GB, free: 12.94 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].