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.001267/0.001267, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.001238/0.001238, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.422/1.422, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1838/0.1838, allocations: 38.05 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002528/0.002528, allocations: 63.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3638, allocations: 58.06 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002907/0.3667, allocations: 2.107 MB / 0.5057 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002675/0.3694, allocations: 2.035 MB / 0.5077 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.445e-05/0.3695, allocations: 1 kB / 0.5077 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001545/0.3697, allocations: 10 kB / 0.5077 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.347e-05/0.3698, allocations: 33.12 kB / 0.5077 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002353/0.3721, allocations: 0.8341 MB / 0.5085 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.3723, allocations: 77.02 kB / 0.5086 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.175e-05/0.3723, allocations: 7.297 kB / 0.5086 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.947e-05/0.3724, allocations: 35.84 kB / 0.5087 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.611e-05/0.3725, allocations: 48.97 kB / 0.5087 GB, free: 4.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.3725, allocations: 3.344 kB / 0.5087 GB, free: 4.242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002134/0.3747, allocations: 1.403 MB / 0.5101 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.942e-05/0.3747, allocations: 26.09 kB / 0.5101 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.175e-05/0.3748, allocations: 40.59 kB / 0.5101 GB, free: 3.777 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002151/0.377, allocations: 1.36 MB / 0.5115 GB, free: 3.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.377, allocations: 0 / 0.5115 GB, free: 3.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.377, allocations: 0 / 0.5115 GB, free: 3.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.377, allocations: 0 / 0.5115 GB, free: 3.523 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.0006761/0.3777, allocations: 0.5708 MB / 0.512 GB, free: 3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.3777, allocations: 17.67 kB / 0.512 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.803e-05/0.3778, allocations: 41.48 kB / 0.5121 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.851e-05/0.3778, allocations: 14.88 kB / 0.5121 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.378, allocations: 203.2 kB / 0.5123 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.723e-06/0.378, allocations: 1.672 kB / 0.5123 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.378, allocations: 1.125 kB / 0.5123 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/0.3782, allocations: 95.94 kB / 0.5124 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.3782, allocations: 0 / 0.5124 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.3782, allocations: 3.359 kB / 0.5124 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3782, allocations: 0.6094 kB / 0.5124 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.072e-05/0.3783, allocations: 65.5 kB / 0.5124 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001268/0.3784, allocations: 192.3 kB / 0.5126 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.3785, allocations: 105.3 kB / 0.5127 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.504e-05/0.3786, allocations: 88.39 kB / 0.5128 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.867e-06/0.3786, allocations: 1.953 kB / 0.5128 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.392e-05/0.3786, allocations: 31.97 kB / 0.5128 GB, free: 2.316 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.012e-06/0.3787, allocations: 0 / 0.5128 GB, free: 2.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004626/0.3791, allocations: 324.8 kB / 0.5132 GB, free: 2.199 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.3792, allocations: 95.28 kB / 0.5132 GB, free: 2.105 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.3793, allocations: 154.8 kB / 0.5134 GB, free: 1.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.398e-06/0.3793, allocations: 25.7 kB / 0.5134 GB, free: 1.961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.316e-05/0.3793, allocations: 104.1 kB / 0.5135 GB, free: 1.863 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.687e-05/0.3794, allocations: 84.56 kB / 0.5136 GB, free: 1.797 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/0.3794, allocations: 27.3 kB / 0.5136 GB, free: 1.777 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.254e-05/0.3795, allocations: 333.2 kB / 0.5139 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.749e-05/0.3796, allocations: 65.12 kB / 0.514 GB, free: 1.438 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.975e-05/0.3797, allocations: 64.11 kB / 0.5141 GB, free: 1.422 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.3799, allocations: 253.5 kB / 0.5143 GB, free: 1.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3799, allocations: 3.938 kB / 0.5143 GB, free: 1.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002529/0.3802, allocations: 238.6 kB / 0.5145 GB, free: 1.219 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.825e-05/0.3802, allocations: 62.97 kB / 0.5146 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3802, allocations: 1.5 kB / 0.5146 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3803, allocations: 0 / 0.5146 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.733e-06/0.3803, allocations: 4.594 kB / 0.5146 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3803, allocations: 5.562 kB / 0.5146 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.521e-05/0.3803, allocations: 12.05 kB / 0.5146 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.3804, allocations: 7.25 kB / 0.5146 GB, free: 1.168 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.0001256/0.3805, allocations: 195.1 kB / 0.5148 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/0.3805, allocations: 17.53 kB / 0.5148 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.835e-05/0.3806, allocations: 14.86 kB / 0.5148 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.3806, allocations: 0.7969 kB / 0.5148 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3806, allocations: 0 / 0.5148 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.3806, allocations: 1.438 kB / 0.5148 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001077/0.3807, allocations: 211.6 kB / 0.5151 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3807, allocations: 1 kB / 0.5151 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.3807, allocations: 0 / 0.5151 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3807, allocations: 1.094 kB / 0.5151 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.3807, allocations: 5.328 kB / 0.5151 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3807, allocations: 1.469 kB / 0.5151 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3807, allocations: 0.75 kB / 0.5151 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006315/0.3814, allocations: 0.5156 MB / 0.5156 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.705e-05/0.3814, allocations: 102.1 kB / 0.5157 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.141e-05/0.3815, allocations: 5.125 kB / 0.5157 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.94e-05/0.3815, allocations: 3.375 kB / 0.5157 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.008e-05/0.3815, allocations: 7.516 kB / 0.5157 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.3816, allocations: 6.609 kB / 0.5157 GB, free: 496 kB / 382.1 MB Notification: Performance of sorting global known variables: time 7.968e-05/0.3816, allocations: 115.9 kB / 0.5158 GB, free: 412 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3816, allocations: 4.5 kB / 0.5158 GB, free: 408 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001333/0.383, allocations: 341 kB / 0.5161 GB, free: 360 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.001812/0.3848, allocations: 1.319 MB / 0.5174 GB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007728/0.3856, allocations: 0.7127 MB / 0.5181 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3856, allocations: 1.062 kB / 0.5181 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005194/0.3861, allocations: 0.5722 MB / 0.5187 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.3864, allocations: 22.45 kB / 0.5187 GB, free: 14.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003124/0.3895, allocations: 2.677 MB / 0.5213 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.3899, allocations: 0.7247 MB / 0.522 GB, free: 12.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.851e-05/0.3899, allocations: 2.234 kB / 0.522 GB, free: 12.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.033e-05/0.39, allocations: 31.73 kB / 0.522 GB, free: 12.66 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.39, allocations: 0 / 0.522 GB, free: 12.66 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].