Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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.Z_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_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.001218/0.001218, allocations: 112.9 kB / 17.05 MB, free: 6.086 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.001205/0.001205, allocations: 187 kB / 17.99 MB, free: 5.184 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.435/1.435, 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.1901/0.1901, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 63.91 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3914/0.3929, allocations: 58.05 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003312/0.3963, allocations: 2.108 MB / 0.5057 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00288/0.3992, allocations: 2.033 MB / 0.5077 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.765e-05/0.3993, allocations: 5.031 kB / 0.5077 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.3995, allocations: 15.25 kB / 0.5077 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.3996, allocations: 31.69 kB / 0.5077 GB, free: 4.648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002704/0.4023, allocations: 0.8244 MB / 0.5085 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001553/0.4025, allocations: 86 kB / 0.5086 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.558e-05/0.4025, allocations: 5.203 kB / 0.5086 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.612e-05/0.4026, allocations: 33.33 kB / 0.5086 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.696e-05/0.4027, allocations: 48.25 kB / 0.5087 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.268e-05/0.4027, allocations: 5.25 kB / 0.5087 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002322/0.4051, allocations: 1.401 MB / 0.51 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.621e-05/0.4051, allocations: 30.3 kB / 0.5101 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.341e-05/0.4052, allocations: 37 kB / 0.5101 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002246/0.4075, allocations: 1.357 MB / 0.5114 GB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.4075, allocations: 0 / 0.5114 GB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4075, allocations: 0 / 0.5114 GB, free: 3.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.4075, allocations: 1.469 kB / 0.5114 GB, free: 3.594 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.0008689/0.4084, allocations: 0.574 MB / 0.512 GB, free: 3.066 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.4084, allocations: 14.45 kB / 0.512 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.169e-05/0.4085, allocations: 40.55 kB / 0.5121 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.093e-05/0.4085, allocations: 18.25 kB / 0.5121 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/0.4087, allocations: 211.9 kB / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.4087, allocations: 0.9688 kB / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.414e-05/0.4088, allocations: 1.75 kB / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.409, allocations: 97.98 kB / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.409, allocations: 4 kB / 0.5124 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.4091, allocations: 1.188 kB / 0.5124 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.4091, allocations: 0 / 0.5124 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001099/0.4092, allocations: 62.09 kB / 0.5124 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001625/0.4094, allocations: 187.6 kB / 0.5126 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.4095, allocations: 105.3 kB / 0.5127 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.4096, allocations: 90.55 kB / 0.5128 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.027e-05/0.4096, allocations: 1.812 kB / 0.5128 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.4097, allocations: 36.67 kB / 0.5128 GB, free: 2.371 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.152e-06/0.4097, allocations: 3.938 kB / 0.5128 GB, free: 2.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006052/0.4103, allocations: 325.3 kB / 0.5131 GB, free: 2.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/0.4104, allocations: 98.91 kB / 0.5132 GB, free: 2.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.4105, allocations: 151.3 kB / 0.5134 GB, free: 2.043 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.4105, allocations: 25.7 kB / 0.5134 GB, free: 2.012 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.813e-05/0.4106, allocations: 99.52 kB / 0.5135 GB, free: 1.918 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.463e-05/0.4106, allocations: 84.16 kB / 0.5136 GB, free: 1.852 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.857e-05/0.4107, allocations: 32.33 kB / 0.5136 GB, free: 1.828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.144e-05/0.4108, allocations: 328.4 kB / 0.5139 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.835e-05/0.4109, allocations: 61.2 kB / 0.514 GB, free: 1.496 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.231e-05/0.4109, allocations: 61.58 kB / 0.514 GB, free: 1.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.4112, allocations: 255.5 kB / 0.5143 GB, free: 1.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.4113, allocations: 0 / 0.5143 GB, free: 1.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002846/0.4115, allocations: 238.5 kB / 0.5145 GB, free: 1.281 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.721e-05/0.4116, allocations: 64.33 kB / 0.5146 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.4116, allocations: 4.062 kB / 0.5146 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.4117, allocations: 1.25 kB / 0.5146 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.915e-06/0.4117, allocations: 0.6094 kB / 0.5146 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.4117, allocations: 0 / 0.5146 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.176e-05/0.4118, allocations: 13.27 kB / 0.5146 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.4118, allocations: 7.609 kB / 0.5146 GB, free: 1.234 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.0001632/0.412, allocations: 199.1 kB / 0.5148 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/0.412, allocations: 17.75 kB / 0.5148 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.103e-05/0.412, allocations: 10 kB / 0.5148 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.412, allocations: 7.641 kB / 0.5148 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.412, allocations: 0 / 0.5148 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.4121, allocations: 1.531 kB / 0.5148 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001565/0.4122, allocations: 208 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4122, allocations: 1.219 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.4122, allocations: 0 / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.4122, allocations: 0.75 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.4123, allocations: 5.375 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.4123, allocations: 0.6094 kB / 0.515 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4123, allocations: 5.062 kB / 0.515 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007485/0.413, allocations: 0.5297 MB / 0.5156 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.922e-05/0.4131, allocations: 94.02 kB / 0.5156 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.172e-05/0.4131, allocations: 8.75 kB / 0.5157 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.263e-05/0.4132, allocations: 3.688 kB / 0.5157 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.616e-05/0.4132, allocations: 3.281 kB / 0.5157 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.4132, allocations: 6.797 kB / 0.5157 GB, free: 0.543 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.143e-05/0.4133, allocations: 113 kB / 0.5158 GB, free: 472 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4133, allocations: 0 / 0.5158 GB, free: 472 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001508/0.4148, allocations: 345.6 kB / 0.5161 GB, free: 420 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.001923/0.4168, allocations: 1.322 MB / 0.5174 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008102/0.4176, allocations: 0.7148 MB / 0.5181 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.4176, allocations: 1 kB / 0.5181 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005032/0.4181, allocations: 0.5748 MB / 0.5187 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.4183, allocations: 10.95 kB / 0.5187 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003317/0.4217, allocations: 2.679 MB / 0.5213 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.422, allocations: 0.7265 MB / 0.522 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.424e-05/0.4221, allocations: 0.7031 kB / 0.522 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.955e-05/0.4221, allocations: 36.08 kB / 0.522 GB, free: 12.72 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4221, allocations: 0 / 0.522 GB, free: 12.72 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].