Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001723/0.001723, allocations: 112.6 kB / 17.07 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.002039/0.002039, 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.422/1.422, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1943/0.1943, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 67.91 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3269, allocations: 58.06 MB / 0.5036 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003278/0.3302, allocations: 2.103 MB / 0.5057 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002744/0.333, allocations: 2.034 MB / 0.5077 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.007e-05/0.3331, allocations: 3.938 kB / 0.5077 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.3333, allocations: 16.22 kB / 0.5077 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.091e-05/0.3334, allocations: 31.62 kB / 0.5077 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002762/0.3362, allocations: 0.8267 MB / 0.5085 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002011/0.3364, allocations: 76.66 kB / 0.5086 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.894e-05/0.3364, allocations: 7.25 kB / 0.5086 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.3366, allocations: 41.12 kB / 0.5087 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001055/0.3367, allocations: 37.2 kB / 0.5087 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.3367, allocations: 1.219 kB / 0.5087 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00284/0.3395, allocations: 1.407 MB / 0.5101 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.407e-05/0.3396, allocations: 11.78 kB / 0.5101 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.64e-05/0.3397, allocations: 20.14 kB / 0.5101 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002424/0.3421, allocations: 1.316 MB / 0.5114 GB, free: 3.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3421, allocations: 0 / 0.5114 GB, free: 3.574 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3421, allocations: 1.25 kB / 0.5114 GB, free: 3.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.3421, allocations: 0 / 0.5114 GB, free: 3.574 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008931/0.343, allocations: 0.516 MB / 0.5119 GB, free: 3.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.3431, allocations: 13.73 kB / 0.5119 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.73e-05/0.3431, allocations: 37.61 kB / 0.5119 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.94e-05/0.3432, allocations: 9.188 kB / 0.5119 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001923/0.3434, allocations: 190.2 kB / 0.5121 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.126e-06/0.3434, allocations: 1.188 kB / 0.5121 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.3434, allocations: 1.344 kB / 0.5121 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.3436, allocations: 54.64 kB / 0.5122 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3436, allocations: 0 / 0.5122 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.3436, allocations: 1.344 kB / 0.5122 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-06/0.3436, allocations: 4 kB / 0.5122 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.481e-05/0.3437, allocations: 24 kB / 0.5122 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001442/0.3438, allocations: 167 kB / 0.5124 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.515e-05/0.3439, allocations: 53.2 kB / 0.5124 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.069e-05/0.344, allocations: 38.2 kB / 0.5125 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-06/0.344, allocations: 0 / 0.5125 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.046e-05/0.344, allocations: 35.75 kB / 0.5125 GB, free: 2.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 9.22e-07/0.344, allocations: 0 / 0.5125 GB, free: 2.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.000317/0.3443, allocations: 150.5 kB / 0.5126 GB, free: 2.391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.3444, allocations: 88.89 kB / 0.5127 GB, free: 2.293 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.816e-05/0.3445, allocations: 123.4 kB / 0.5128 GB, free: 2.188 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.3445, allocations: 25.7 kB / 0.5129 GB, free: 2.156 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.886e-05/0.3446, allocations: 87.48 kB / 0.5129 GB, free: 2.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4e-05/0.3446, allocations: 30.72 kB / 0.513 GB, free: 2.047 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-05/0.3447, allocations: 17.52 kB / 0.513 GB, free: 2.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.865e-05/0.3447, allocations: 328.3 kB / 0.5133 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.984e-05/0.3448, allocations: 22.67 kB / 0.5133 GB, free: 1.703 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.075e-05/0.3448, allocations: 22.94 kB / 0.5133 GB, free: 1.699 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.3449, allocations: 133.7 kB / 0.5135 GB, free: 1.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.345, allocations: 1.219 kB / 0.5135 GB, free: 1.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001501/0.3451, allocations: 124.9 kB / 0.5136 GB, free: 1.539 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.636e-05/0.3452, allocations: 46.92 kB / 0.5136 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3452, allocations: 0 / 0.5136 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.3452, allocations: 0 / 0.5136 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.845e-06/0.3452, allocations: 9.438 kB / 0.5136 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.3452, allocations: 0.6562 kB / 0.5136 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.661e-05/0.3453, allocations: 5.188 kB / 0.5136 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.3453, allocations: 7.203 kB / 0.5137 GB, free: 1.492 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.304e-05/0.3454, allocations: 156.4 kB / 0.5138 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.733e-05/0.3454, allocations: 9.203 kB / 0.5138 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.598e-05/0.3454, allocations: 7.109 kB / 0.5138 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3454, allocations: 0 / 0.5138 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3454, allocations: 1.344 kB / 0.5138 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3454, allocations: 4.516 kB / 0.5138 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001039/0.3456, allocations: 169.8 kB / 0.514 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3456, allocations: 0 / 0.514 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.3456, allocations: 0 / 0.514 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3456, allocations: 1.781 kB / 0.514 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.3456, allocations: 2.281 kB / 0.514 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3456, allocations: 4.547 kB / 0.514 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3456, allocations: 1 kB / 0.514 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.3459, allocations: 229.1 kB / 0.5142 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.695e-05/0.3459, allocations: 84.44 kB / 0.5143 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.3459, allocations: 2.062 kB / 0.5143 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.407e-05/0.346, allocations: 1.094 kB / 0.5143 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.456e-05/0.346, allocations: 3.344 kB / 0.5143 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.346, allocations: 7.656 kB / 0.5143 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.155e-05/0.3461, allocations: 101.4 kB / 0.5144 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3461, allocations: 1.344 kB / 0.5144 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001545/0.3476, allocations: 320.4 kB / 0.5147 GB, free: 0.7695 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.001543/0.3492, allocations: 1.012 MB / 0.5157 GB, free: 56 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004025/0.3496, allocations: 208.8 kB / 0.5159 GB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3496, allocations: 4.656 kB / 0.5159 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.3498, allocations: 148.8 kB / 0.516 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.3501, allocations: 12.2 kB / 0.5161 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002392/0.3525, allocations: 1.692 MB / 0.5177 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.3529, allocations: 0.6941 MB / 0.5184 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.945e-05/0.3529, allocations: 1.219 kB / 0.5184 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.763e-05/0.353, allocations: 18.78 kB / 0.5184 GB, free: 13.85 MB / 398.1 MB Notification: Performance of SimCode: time 6.02e-07/0.353, allocations: 4.031 kB / 0.5184 GB, free: 13.85 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].