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.0015/0.0015, allocations: 112 kB / 17.06 MB, free: 5.992 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.001229/0.001229, allocations: 193.4 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.45/1.45, 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.1781/0.1781, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 75.88 kB / 457.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3487, allocations: 58.06 MB / 0.5036 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002752/0.3515, allocations: 2.098 MB / 0.5057 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.3539, allocations: 2.034 MB / 0.5077 GB, free: 4.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.45e-05/0.354, allocations: 1 kB / 0.5077 GB, free: 4.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.3541, allocations: 9.891 kB / 0.5077 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.161e-05/0.3542, allocations: 36.02 kB / 0.5077 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002038/0.3563, allocations: 0.8319 MB / 0.5085 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001238/0.3564, allocations: 72.72 kB / 0.5086 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.092e-05/0.3565, allocations: 10.55 kB / 0.5086 GB, free: 4.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.598e-05/0.3566, allocations: 30.98 kB / 0.5086 GB, free: 4.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.283e-05/0.3566, allocations: 38.3 kB / 0.5087 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.3567, allocations: 1.219 kB / 0.5087 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001957/0.3586, allocations: 1.407 MB / 0.51 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.317e-05/0.3587, allocations: 18.09 kB / 0.5101 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.057e-05/0.3587, allocations: 24.55 kB / 0.5101 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001678/0.3604, allocations: 1.338 MB / 0.5114 GB, free: 3.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3604, allocations: 1.031 kB / 0.5114 GB, free: 3.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3604, allocations: 0 / 0.5114 GB, free: 3.676 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.3604, allocations: 0 / 0.5114 GB, free: 3.676 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.0005455/0.361, allocations: 0.5273 MB / 0.5119 GB, free: 3.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.361, allocations: 14.53 kB / 0.5119 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.583e-05/0.3611, allocations: 34.45 kB / 0.512 GB, free: 3.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.455e-05/0.3611, allocations: 12.42 kB / 0.512 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.3612, allocations: 195.8 kB / 0.5122 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.71e-06/0.3613, allocations: 1.156 kB / 0.5122 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.3613, allocations: 4.938 kB / 0.5122 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.3614, allocations: 65.27 kB / 0.5122 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.3614, allocations: 1.031 kB / 0.5122 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.3614, allocations: 0 / 0.5122 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.3614, allocations: 5.156 kB / 0.5122 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.467e-05/0.3615, allocations: 35.34 kB / 0.5123 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001067/0.3616, allocations: 175 kB / 0.5124 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.047e-05/0.3617, allocations: 58.34 kB / 0.5125 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.217e-05/0.3618, allocations: 46.62 kB / 0.5125 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.3618, allocations: 1.156 kB / 0.5125 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.431e-05/0.3618, allocations: 36.41 kB / 0.5126 GB, free: 2.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 8.61e-07/0.3618, allocations: 0 / 0.5126 GB, free: 2.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.000281/0.3621, allocations: 202.5 kB / 0.5128 GB, free: 2.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.3621, allocations: 86.59 kB / 0.5128 GB, free: 2.367 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.17e-05/0.3622, allocations: 131 kB / 0.513 GB, free: 2.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.404e-06/0.3622, allocations: 26.89 kB / 0.513 GB, free: 2.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.536e-05/0.3622, allocations: 93.23 kB / 0.5131 GB, free: 2.141 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.726e-05/0.3623, allocations: 40.17 kB / 0.5131 GB, free: 2.109 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.634e-05/0.3623, allocations: 23.84 kB / 0.5131 GB, free: 2.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.841e-05/0.3624, allocations: 329.2 kB / 0.5135 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.881e-05/0.3624, allocations: 30.67 kB / 0.5135 GB, free: 1.762 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.137e-05/0.3625, allocations: 32.34 kB / 0.5135 GB, free: 1.758 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001338/0.3626, allocations: 158.1 kB / 0.5137 GB, free: 1.676 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3626, allocations: 0 / 0.5137 GB, free: 1.676 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00016/0.3628, allocations: 169.1 kB / 0.5138 GB, free: 1.582 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.951e-05/0.3628, allocations: 46.33 kB / 0.5139 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3629, allocations: 0.75 kB / 0.5139 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.3629, allocations: 1.5 kB / 0.5139 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.3629, allocations: 4.062 kB / 0.5139 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.3629, allocations: 4 kB / 0.5139 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.101e-05/0.3629, allocations: 7.672 kB / 0.5139 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.363, allocations: 5.391 kB / 0.5139 GB, free: 1.539 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 8.58e-05/0.363, allocations: 164.9 kB / 0.5141 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.3631, allocations: 9.828 kB / 0.5141 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.561e-05/0.3631, allocations: 13.25 kB / 0.5141 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.3631, allocations: 0 / 0.5141 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3631, allocations: 0.7969 kB / 0.5141 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.3631, allocations: 7.938 kB / 0.5141 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.734e-05/0.3632, allocations: 183.1 kB / 0.5143 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3632, allocations: 4.141 kB / 0.5143 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.3632, allocations: 0 / 0.5143 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.3632, allocations: 1.094 kB / 0.5143 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.3632, allocations: 8.156 kB / 0.5143 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.3632, allocations: 0 / 0.5143 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3632, allocations: 0.5625 kB / 0.5143 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003009/0.3635, allocations: 297.8 kB / 0.5146 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.982e-05/0.3636, allocations: 84.14 kB / 0.5146 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.3636, allocations: 2.969 kB / 0.5146 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.612e-05/0.3636, allocations: 2.812 kB / 0.5146 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.987e-05/0.3636, allocations: 2.406 kB / 0.5146 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.3637, allocations: 8.312 kB / 0.5146 GB, free: 0.918 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.273e-05/0.3637, allocations: 103.6 kB / 0.5147 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3637, allocations: 0 / 0.5147 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007867/0.3645, allocations: 323 kB / 0.5151 GB, free: 0.793 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.001277/0.3658, allocations: 1.086 MB / 0.5161 GB, free: 60 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004614/0.3663, allocations: 299.6 kB / 0.5164 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3663, allocations: 4.094 kB / 0.5164 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002283/0.3665, allocations: 224.2 kB / 0.5166 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.3668, allocations: 12.78 kB / 0.5166 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.369, allocations: 1.953 MB / 0.5185 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.3694, allocations: 0.7029 MB / 0.5192 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.34e-05/0.3694, allocations: 2.125 kB / 0.5192 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/0.3694, allocations: 23.78 kB / 0.5193 GB, free: 13.71 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3694, allocations: 4.031 kB / 0.5193 GB, free: 13.71 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].