Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_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.001493/0.001493, allocations: 107.7 kB / 17.06 MB, free: 6.02 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.001866/0.001866, allocations: 191 kB / 18 MB, free: 5.102 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.443/1.443, 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-master/package.mo): time 0.1781/0.1781, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 67.89 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3175, allocations: 58.06 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003174/0.3207, allocations: 2.102 MB / 0.5057 GB, free: 6.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002521/0.3233, allocations: 2.039 MB / 0.5077 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.85e-05/0.3233, allocations: 1.031 kB / 0.5077 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.3235, allocations: 15.27 kB / 0.5077 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.357e-05/0.3236, allocations: 28.44 kB / 0.5077 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002207/0.3258, allocations: 0.8278 MB / 0.5085 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001417/0.326, allocations: 72.64 kB / 0.5086 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.292e-05/0.326, allocations: 6.906 kB / 0.5086 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.237e-05/0.3261, allocations: 35.25 kB / 0.5086 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.128e-05/0.3262, allocations: 38.55 kB / 0.5087 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.3262, allocations: 5.094 kB / 0.5087 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00221/0.3284, allocations: 1.403 MB / 0.5101 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.258e-05/0.3285, allocations: 17.48 kB / 0.5101 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.074e-05/0.3285, allocations: 28.98 kB / 0.5101 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001913/0.3305, allocations: 1.33 MB / 0.5114 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3305, allocations: 0.5625 kB / 0.5114 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3305, allocations: 0 / 0.5114 GB, free: 3.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.3305, allocations: 1.094 kB / 0.5114 GB, free: 3.586 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.0005892/0.3311, allocations: 0.5329 MB / 0.5119 GB, free: 3.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3311, allocations: 15.17 kB / 0.5119 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.656e-05/0.3312, allocations: 33.69 kB / 0.512 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.774e-05/0.3312, allocations: 13.2 kB / 0.512 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.3314, allocations: 195.7 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.204e-06/0.3314, allocations: 2.156 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.3314, allocations: 2.344 kB / 0.5122 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.3315, allocations: 69.84 kB / 0.5122 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.3316, allocations: 0 / 0.5122 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.3316, allocations: 4 kB / 0.5122 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/0.3316, allocations: 1.031 kB / 0.5122 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.467e-05/0.3316, allocations: 36.75 kB / 0.5123 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001029/0.3318, allocations: 174.3 kB / 0.5124 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.946e-05/0.3318, allocations: 57.31 kB / 0.5125 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.039e-05/0.3319, allocations: 47.33 kB / 0.5125 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.544e-06/0.3319, allocations: 5.094 kB / 0.5125 GB, free: 2.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.352e-05/0.3319, allocations: 36.81 kB / 0.5126 GB, free: 2.457 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.3319, allocations: 0 / 0.5126 GB, free: 2.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002801/0.3322, allocations: 202.1 kB / 0.5128 GB, free: 2.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.3323, allocations: 86.31 kB / 0.5129 GB, free: 2.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.145e-05/0.3323, allocations: 136.1 kB / 0.513 GB, free: 2.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.097e-06/0.3324, allocations: 26.98 kB / 0.513 GB, free: 2.129 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.259e-05/0.3324, allocations: 87.81 kB / 0.5131 GB, free: 2.043 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.785e-05/0.3324, allocations: 36.42 kB / 0.5131 GB, free: 2.016 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.592e-05/0.3325, allocations: 27.28 kB / 0.5132 GB, free: 1.992 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.17e-05/0.3325, allocations: 325.5 kB / 0.5135 GB, free: 1.672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.738e-05/0.3326, allocations: 31.8 kB / 0.5135 GB, free: 1.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.423e-05/0.3326, allocations: 32.19 kB / 0.5135 GB, free: 1.664 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.3328, allocations: 157.2 kB / 0.5137 GB, free: 1.582 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3328, allocations: 1.125 kB / 0.5137 GB, free: 1.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001657/0.3329, allocations: 169 kB / 0.5138 GB, free: 1.488 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.101e-05/0.333, allocations: 49.8 kB / 0.5139 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.333, allocations: 0.8906 kB / 0.5139 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.333, allocations: 5.094 kB / 0.5139 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.333, allocations: 0 / 0.5139 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.333, allocations: 1.219 kB / 0.5139 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.344e-05/0.3331, allocations: 7.062 kB / 0.5139 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.3331, allocations: 3.75 kB / 0.5139 GB, free: 1.445 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.124e-05/0.3332, allocations: 165.3 kB / 0.5141 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.912e-05/0.3332, allocations: 10.05 kB / 0.5141 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.541e-05/0.3332, allocations: 9.469 kB / 0.5141 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.3333, allocations: 0 / 0.5141 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3333, allocations: 5.344 kB / 0.5141 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.3333, allocations: 7.875 kB / 0.5141 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.811e-05/0.3334, allocations: 183.7 kB / 0.5143 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3334, allocations: 0.7969 kB / 0.5143 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3334, allocations: 0 / 0.5143 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-06/0.3334, allocations: 1.281 kB / 0.5143 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.3334, allocations: 4.406 kB / 0.5143 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3334, allocations: 0 / 0.5143 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3334, allocations: 0 / 0.5143 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.3337, allocations: 297.2 kB / 0.5146 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.203e-05/0.3337, allocations: 84.75 kB / 0.5146 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.3338, allocations: 3.453 kB / 0.5146 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.871e-05/0.3338, allocations: 6.969 kB / 0.5146 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.367e-05/0.3338, allocations: 1.859 kB / 0.5146 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.3339, allocations: 8.531 kB / 0.5147 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.051e-05/0.3339, allocations: 110 kB / 0.5148 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3339, allocations: 0 / 0.5148 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00103/0.335, allocations: 327.1 kB / 0.5151 GB, free: 0.6953 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.00139/0.3364, allocations: 1.09 MB / 0.5161 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004172/0.3368, allocations: 297.4 kB / 0.5164 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3368, allocations: 0 / 0.5164 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.337, allocations: 226.1 kB / 0.5166 GB, free: 15.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.3373, allocations: 14.09 kB / 0.5167 GB, free: 15.69 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.3393, allocations: 1.948 MB / 0.5186 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.3396, allocations: 0.7061 MB / 0.5192 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.173e-05/0.3396, allocations: 1.188 kB / 0.5192 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.294e-05/0.3396, allocations: 24.47 kB / 0.5193 GB, free: 13.62 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3396, allocations: 0 / 0.5193 GB, free: 13.62 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].