Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_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.001315/0.001314, allocations: 106.8 kB / 17.06 MB, free: 5.793 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.001394/0.001394, allocations: 200 kB / 18.01 MB, free: 4.918 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.442/1.442, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1791/0.1791, allocations: 38.02 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 63.89 kB / 457.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3611, allocations: 58.06 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003653/0.3648, allocations: 2.101 MB / 0.5057 GB, free: 6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002798/0.3676, allocations: 2.035 MB / 0.5077 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.923e-05/0.3677, allocations: 3.938 kB / 0.5077 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.3679, allocations: 14.66 kB / 0.5077 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.368, allocations: 33.5 kB / 0.5077 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002539/0.3706, allocations: 0.8219 MB / 0.5085 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.3708, allocations: 77.92 kB / 0.5086 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.902e-05/0.3708, allocations: 5.688 kB / 0.5086 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.3709, allocations: 39.81 kB / 0.5086 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.229e-05/0.371, allocations: 37.03 kB / 0.5087 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.371, allocations: 1.188 kB / 0.5087 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002465/0.3735, allocations: 1.407 MB / 0.51 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.05e-05/0.3736, allocations: 13.02 kB / 0.5101 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.616e-05/0.3736, allocations: 19.66 kB / 0.5101 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002349/0.376, allocations: 1.318 MB / 0.5114 GB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.376, allocations: 0 / 0.5114 GB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.376, allocations: 0 / 0.5114 GB, free: 3.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.376, allocations: 0.6562 kB / 0.5114 GB, free: 3.594 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.0008271/0.3768, allocations: 0.5182 MB / 0.5119 GB, free: 3.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.3769, allocations: 15 kB / 0.5119 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.362e-05/0.3769, allocations: 40.61 kB / 0.5119 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.283e-05/0.377, allocations: 8.766 kB / 0.5119 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.3771, allocations: 190 kB / 0.5121 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.3771, allocations: 1.156 kB / 0.5121 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.689e-06/0.3771, allocations: 1.672 kB / 0.5121 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.3773, allocations: 55.38 kB / 0.5122 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.3773, allocations: 0.9688 kB / 0.5122 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.3773, allocations: 0 / 0.5122 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-06/0.3773, allocations: 5.062 kB / 0.5122 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.511e-05/0.3773, allocations: 24.28 kB / 0.5122 GB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001075/0.3775, allocations: 170.5 kB / 0.5124 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.441e-05/0.3775, allocations: 52.84 kB / 0.5124 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.192e-05/0.3776, allocations: 33.77 kB / 0.5124 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.3776, allocations: 1.906 kB / 0.5124 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.54e-05/0.3776, allocations: 36.09 kB / 0.5125 GB, free: 2.484 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.012e-06/0.3776, allocations: 0 / 0.5125 GB, free: 2.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.000247/0.3779, allocations: 150.6 kB / 0.5126 GB, free: 2.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.3779, allocations: 87.47 kB / 0.5127 GB, free: 2.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.674e-05/0.378, allocations: 123.4 kB / 0.5128 GB, free: 2.203 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.765e-06/0.378, allocations: 25.7 kB / 0.5128 GB, free: 2.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.369e-05/0.378, allocations: 88.77 kB / 0.5129 GB, free: 2.086 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.405e-05/0.3781, allocations: 29.23 kB / 0.513 GB, free: 2.062 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.3781, allocations: 17.59 kB / 0.513 GB, free: 2.047 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.722e-05/0.3782, allocations: 328.5 kB / 0.5133 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.96e-05/0.3782, allocations: 23.34 kB / 0.5133 GB, free: 1.719 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.501e-05/0.3783, allocations: 22.73 kB / 0.5133 GB, free: 1.715 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.3784, allocations: 125 kB / 0.5135 GB, free: 1.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3784, allocations: 1.156 kB / 0.5135 GB, free: 1.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001483/0.3785, allocations: 133.9 kB / 0.5136 GB, free: 1.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.3786, allocations: 45.09 kB / 0.5136 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.3786, allocations: 0.5625 kB / 0.5136 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.3786, allocations: 3.703 kB / 0.5136 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.3786, allocations: 4.062 kB / 0.5136 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3786, allocations: 1.766 kB / 0.5136 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.777e-05/0.3787, allocations: 2.031 kB / 0.5136 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.3787, allocations: 6.859 kB / 0.5136 GB, free: 1.512 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.291e-05/0.3788, allocations: 156.8 kB / 0.5138 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.78e-05/0.3788, allocations: 9.422 kB / 0.5138 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.405e-05/0.3788, allocations: 7 kB / 0.5138 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3788, allocations: 1 kB / 0.5138 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3788, allocations: 4 kB / 0.5138 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.3788, allocations: 0.6562 kB / 0.5138 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.305e-05/0.3789, allocations: 169.8 kB / 0.514 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3789, allocations: 0.5625 kB / 0.514 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.71e-07/0.379, allocations: 0 / 0.514 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.379, allocations: 1.25 kB / 0.514 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.379, allocations: 3.391 kB / 0.514 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.379, allocations: 7.938 kB / 0.514 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.379, allocations: 0.7031 kB / 0.514 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002389/0.3792, allocations: 229.3 kB / 0.5142 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.344e-05/0.3793, allocations: 84.22 kB / 0.5143 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.3793, allocations: 2.172 kB / 0.5143 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.413e-05/0.3793, allocations: 6.281 kB / 0.5143 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.485e-05/0.3793, allocations: 2.609 kB / 0.5143 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.3794, allocations: 3.25 kB / 0.5143 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.333e-05/0.3794, allocations: 101.8 kB / 0.5144 GB, free: 0.832 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3794, allocations: 1.188 kB / 0.5144 GB, free: 0.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001266/0.3807, allocations: 321.6 kB / 0.5147 GB, free: 0.7852 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.001686/0.3824, allocations: 1.009 MB / 0.5157 GB, free: 72 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003186/0.3827, allocations: 208.7 kB / 0.5159 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3827, allocations: 4.094 kB / 0.5159 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.3829, allocations: 149.6 kB / 0.516 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/0.3832, allocations: 9.906 kB / 0.516 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002242/0.3854, allocations: 1.698 MB / 0.5177 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.3858, allocations: 0.6936 MB / 0.5184 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.281e-05/0.3858, allocations: 2.016 kB / 0.5184 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.35e-05/0.3858, allocations: 18.14 kB / 0.5184 GB, free: 13.86 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3858, allocations: 4.031 kB / 0.5184 GB, free: 13.86 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].