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.001475/0.001475, allocations: 112.3 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.001682/0.001682, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.362/1.362, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1828/0.1828, allocations: 38.04 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 71.83 kB / 457.7 MB, free: 7.309 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.35, allocations: 58.06 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.00305/0.3531, allocations: 2.097 MB / 0.5057 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002468/0.3556, allocations: 2.04 MB / 0.5077 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.54e-05/0.3556, allocations: 1.469 kB / 0.5077 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.3558, allocations: 11.42 kB / 0.5077 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.701e-05/0.3559, allocations: 28.12 kB / 0.5077 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002099/0.358, allocations: 0.8307 MB / 0.5085 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001347/0.3582, allocations: 77.12 kB / 0.5086 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.021e-05/0.3582, allocations: 11.28 kB / 0.5086 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.792e-05/0.3583, allocations: 40.61 kB / 0.5087 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.368e-05/0.3584, allocations: 40.06 kB / 0.5087 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.3584, allocations: 2.062 kB / 0.5087 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002064/0.3605, allocations: 1.404 MB / 0.5101 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.862e-05/0.3605, allocations: 15.62 kB / 0.5101 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.865e-05/0.3606, allocations: 19.56 kB / 0.5101 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00172/0.3623, allocations: 1.316 MB / 0.5114 GB, free: 3.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.3623, allocations: 3.938 kB / 0.5114 GB, free: 3.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3623, allocations: 0 / 0.5114 GB, free: 3.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.3623, allocations: 1.031 kB / 0.5114 GB, free: 3.609 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.0005248/0.3628, allocations: 0.5086 MB / 0.5119 GB, free: 3.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.3629, allocations: 13.14 kB / 0.5119 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.143e-05/0.3629, allocations: 38.11 kB / 0.5119 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.888e-05/0.363, allocations: 17.12 kB / 0.5119 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.3631, allocations: 186.3 kB / 0.5121 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.3631, allocations: 1.062 kB / 0.5121 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.3631, allocations: 1.094 kB / 0.5121 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.3632, allocations: 54.31 kB / 0.5122 GB, free: 2.816 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.3633, allocations: 1.312 kB / 0.5122 GB, free: 2.816 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.3633, allocations: 0 / 0.5122 GB, free: 2.816 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3633, allocations: 0 / 0.5122 GB, free: 2.816 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.451e-05/0.3633, allocations: 28.05 kB / 0.5122 GB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001048/0.3634, allocations: 171.5 kB / 0.5124 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.563e-05/0.3635, allocations: 45.25 kB / 0.5124 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.033e-05/0.3636, allocations: 32.78 kB / 0.5124 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.877e-06/0.3636, allocations: 1.75 kB / 0.5124 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.703e-05/0.3636, allocations: 36.48 kB / 0.5125 GB, free: 2.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.3636, allocations: 0 / 0.5125 GB, free: 2.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002353/0.3638, allocations: 153.4 kB / 0.5126 GB, free: 2.434 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.3639, allocations: 88.98 kB / 0.5127 GB, free: 2.336 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.397e-05/0.364, allocations: 125.2 kB / 0.5128 GB, free: 2.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.767e-06/0.364, allocations: 26.83 kB / 0.5129 GB, free: 2.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.357e-05/0.364, allocations: 91.78 kB / 0.5129 GB, free: 2.109 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.364, allocations: 26.25 kB / 0.513 GB, free: 2.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.545e-05/0.3641, allocations: 22.67 kB / 0.513 GB, free: 2.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.373e-05/0.3641, allocations: 319.1 kB / 0.5133 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.875e-05/0.3642, allocations: 23.14 kB / 0.5133 GB, free: 1.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.568e-05/0.3642, allocations: 26.83 kB / 0.5133 GB, free: 1.742 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001014/0.3643, allocations: 129.8 kB / 0.5135 GB, free: 1.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3643, allocations: 3.938 kB / 0.5135 GB, free: 1.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001406/0.3645, allocations: 129.3 kB / 0.5136 GB, free: 1.582 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.3645, allocations: 45.78 kB / 0.5136 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3645, allocations: 0.5625 kB / 0.5136 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.3646, allocations: 0 / 0.5136 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-07/0.3646, allocations: 1.312 kB / 0.5136 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.3646, allocations: 0.75 kB / 0.5136 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.489e-05/0.3646, allocations: 2.688 kB / 0.5136 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.3646, allocations: 11.17 kB / 0.5137 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 7.654e-05/0.3647, allocations: 156.5 kB / 0.5138 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.587e-05/0.3647, allocations: 8.609 kB / 0.5138 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.3e-05/0.3648, allocations: 7.625 kB / 0.5138 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.3648, allocations: 0 / 0.5138 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3648, allocations: 0.7812 kB / 0.5138 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3648, allocations: 0 / 0.5138 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.776e-05/0.3649, allocations: 174.8 kB / 0.514 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3649, allocations: 0 / 0.514 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.3649, allocations: 4 kB / 0.514 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.3649, allocations: 1.531 kB / 0.514 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3649, allocations: 3.297 kB / 0.514 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3649, allocations: 0 / 0.514 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3649, allocations: 7.938 kB / 0.514 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002297/0.3651, allocations: 218.4 kB / 0.5142 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.914e-05/0.3652, allocations: 83.92 kB / 0.5143 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.3652, allocations: 2.156 kB / 0.5143 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.31e-05/0.3652, allocations: 9.812 kB / 0.5143 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.21e-05/0.3653, allocations: 2.156 kB / 0.5143 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.3653, allocations: 3.922 kB / 0.5143 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.417e-05/0.3653, allocations: 98.67 kB / 0.5144 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3653, allocations: 1.062 kB / 0.5144 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001125/0.3665, allocations: 321.7 kB / 0.5147 GB, free: 0.8164 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.001288/0.3678, allocations: 1.018 MB / 0.5157 GB, free: 96 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003372/0.3681, allocations: 201.1 kB / 0.5159 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3681, allocations: 0.5312 kB / 0.5159 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.3683, allocations: 149.9 kB / 0.516 GB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.3686, allocations: 9.375 kB / 0.5161 GB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.3707, allocations: 1.709 MB / 0.5177 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.3711, allocations: 0.6923 MB / 0.5184 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.502e-05/0.3711, allocations: 1.25 kB / 0.5184 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.581e-05/0.3712, allocations: 20.47 kB / 0.5184 GB, free: 13.89 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3712, allocations: 0 / 0.5184 GB, free: 13.89 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].