Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.001463/0.001463, allocations: 111.9 kB / 17.06 MB, free: 5.988 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.001475/0.001475, allocations: 195.9 kB / 18 MB, free: 5.074 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.461/1.461, 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.1816/0.1816, allocations: 38.04 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 67.89 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.4006, allocations: 58.05 MB / 0.5036 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003838/0.4045, allocations: 2.106 MB / 0.5057 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003327/0.4078, allocations: 2.032 MB / 0.5077 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.417e-05/0.408, allocations: 1.469 kB / 0.5077 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.4082, allocations: 9.609 kB / 0.5077 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.4083, allocations: 32.11 kB / 0.5077 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002854/0.4112, allocations: 0.831 MB / 0.5085 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001706/0.4114, allocations: 72.12 kB / 0.5086 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.683e-05/0.4114, allocations: 5.312 kB / 0.5086 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.241e-05/0.4115, allocations: 36.27 kB / 0.5086 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.482e-05/0.4116, allocations: 37.12 kB / 0.5087 GB, free: 4.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.422e-05/0.4116, allocations: 2.312 kB / 0.5087 GB, free: 4.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00247/0.4141, allocations: 1.404 MB / 0.51 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.615e-05/0.4142, allocations: 24.66 kB / 0.5101 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.085e-05/0.4142, allocations: 25.7 kB / 0.5101 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002398/0.4166, allocations: 1.335 MB / 0.5114 GB, free: 3.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4167, allocations: 1.219 kB / 0.5114 GB, free: 3.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4167, allocations: 0 / 0.5114 GB, free: 3.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.4167, allocations: 0.5156 kB / 0.5114 GB, free: 3.617 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0008291/0.4175, allocations: 0.5245 MB / 0.5119 GB, free: 3.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.834e-05/0.4176, allocations: 16.89 kB / 0.5119 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.46e-05/0.4176, allocations: 34.42 kB / 0.5119 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.517e-05/0.4177, allocations: 17.17 kB / 0.512 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.4178, allocations: 192.5 kB / 0.5121 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.4179, allocations: 1.094 kB / 0.5121 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.988e-06/0.4179, allocations: 1.062 kB / 0.5122 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.418, allocations: 65.25 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.418, allocations: 1.25 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.4181, allocations: 0 / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.4181, allocations: 0.9688 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.663e-05/0.4181, allocations: 36.53 kB / 0.5122 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001321/0.4183, allocations: 178.2 kB / 0.5124 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.192e-05/0.4184, allocations: 58.41 kB / 0.5125 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.894e-05/0.4184, allocations: 47.2 kB / 0.5125 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.439e-06/0.4184, allocations: 0 / 0.5125 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.4185, allocations: 31.72 kB / 0.5126 GB, free: 2.504 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 9.12e-07/0.4185, allocations: 4.906 kB / 0.5126 GB, free: 2.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003601/0.4188, allocations: 205.7 kB / 0.5128 GB, free: 2.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.4189, allocations: 91.2 kB / 0.5128 GB, free: 2.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.419, allocations: 130.6 kB / 0.513 GB, free: 2.203 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.419, allocations: 27.84 kB / 0.513 GB, free: 2.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.18e-05/0.4191, allocations: 91.72 kB / 0.5131 GB, free: 2.082 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.593e-05/0.4191, allocations: 35.97 kB / 0.5131 GB, free: 2.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.4192, allocations: 24.59 kB / 0.5131 GB, free: 2.035 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.151e-05/0.4192, allocations: 325.2 kB / 0.5134 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.341e-05/0.4193, allocations: 35.27 kB / 0.5135 GB, free: 1.707 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.974e-05/0.4193, allocations: 36.28 kB / 0.5135 GB, free: 1.699 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/0.4195, allocations: 161.7 kB / 0.5137 GB, free: 1.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.4195, allocations: 0 / 0.5137 GB, free: 1.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000184/0.4197, allocations: 164.8 kB / 0.5138 GB, free: 1.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.398e-05/0.4198, allocations: 46.53 kB / 0.5139 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.361e-06/0.4198, allocations: 1.281 kB / 0.5139 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.4198, allocations: 0 / 0.5139 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.4198, allocations: 0 / 0.5139 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.4198, allocations: 1.859 kB / 0.5139 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.779e-05/0.4199, allocations: 7.094 kB / 0.5139 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.4199, allocations: 12.14 kB / 0.5139 GB, free: 1.48 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.979e-05/0.42, allocations: 162 kB / 0.514 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.015e-05/0.42, allocations: 9.297 kB / 0.5141 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.884e-05/0.4201, allocations: 12.25 kB / 0.5141 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4201, allocations: 1.625 kB / 0.5141 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.4201, allocations: 0.5625 kB / 0.5141 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.4201, allocations: 3.938 kB / 0.5141 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.823e-05/0.4202, allocations: 187.6 kB / 0.5142 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4202, allocations: 0.6562 kB / 0.5143 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.422e-06/0.4202, allocations: 5.438 kB / 0.5143 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.4202, allocations: 0 / 0.5143 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.4202, allocations: 4.406 kB / 0.5143 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4202, allocations: 0 / 0.5143 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4202, allocations: 0.6562 kB / 0.5143 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.4206, allocations: 293.4 kB / 0.5145 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.602e-05/0.4206, allocations: 84.45 kB / 0.5146 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.4206, allocations: 3.516 kB / 0.5146 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.866e-05/0.4207, allocations: 5.531 kB / 0.5146 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.806e-05/0.4207, allocations: 3.703 kB / 0.5146 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.4207, allocations: 7.547 kB / 0.5146 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.336e-05/0.4208, allocations: 102.9 kB / 0.5147 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4208, allocations: 1.25 kB / 0.5147 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001386/0.4222, allocations: 330.4 kB / 0.5151 GB, free: 0.7305 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.00187/0.4241, allocations: 1.083 MB / 0.5161 GB, free: 0 / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006831/0.4248, allocations: 298.2 kB / 0.5164 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.4248, allocations: 0.5625 kB / 0.5164 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003518/0.4251, allocations: 222.3 kB / 0.5166 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.4255, allocations: 22.23 kB / 0.5166 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003058/0.4285, allocations: 1.952 MB / 0.5185 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.429, allocations: 0.7047 MB / 0.5192 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.383e-05/0.429, allocations: 1.281 kB / 0.5192 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.88e-05/0.4291, allocations: 23.58 kB / 0.5192 GB, free: 13.65 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4291, allocations: 0 / 0.5192 GB, free: 13.65 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].