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.001535/0.001535, allocations: 110.8 kB / 16.62 MB, free: 6.812 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.00176/0.001761, allocations: 190 kB / 17.55 MB, free: 5.934 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.349/1.349, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1776/0.1776, allocations: 38.03 MB / 329.4 MB, free: 9.066 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 67.5 kB / 398.4 MB, free: 34.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09239/0.0937, allocations: 58.07 MB / 456.5 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003062/0.09679, allocations: 2.132 MB / 458.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002704/0.09951, allocations: 2.057 MB / 460.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.627e-05/0.09956, allocations: 0 / 460.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.0997, allocations: 11.92 kB / 460.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.034e-05/0.09979, allocations: 23.89 kB / 460.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001752/0.1015, allocations: 0.7598 MB / 461.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001218/0.1017, allocations: 79.69 kB / 461.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.875e-05/0.1017, allocations: 8.188 kB / 461.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.462e-05/0.1018, allocations: 39.83 kB / 461.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.929e-05/0.1019, allocations: 39.84 kB / 461.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.909e-06/0.1019, allocations: 0 / 461.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00151/0.1034, allocations: 1.263 MB / 462.9 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.258e-05/0.1035, allocations: 19.92 kB / 462.9 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.567e-05/0.1035, allocations: 27.81 kB / 462.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.1049, allocations: 1.251 MB / 464.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1049, allocations: 0 / 464.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1049, allocations: 0 / 464.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.1049, allocations: 0 / 464.2 MB, free: 0.5938 MB / 334.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.0006164/0.1055, allocations: 0.5163 MB / 464.7 MB, free: 24 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.1056, allocations: 11.89 kB / 464.7 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.883e-05/0.1056, allocations: 38.73 kB / 464.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.55e-05/0.1057, allocations: 12.84 kB / 464.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.1059, allocations: 191.3 kB / 464.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.1059, allocations: 4 kB / 464.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.1059, allocations: 0 / 464.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001351/0.1061, allocations: 69.61 kB / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.1061, allocations: 0 / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.1061, allocations: 0 / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.1061, allocations: 0 / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.224e-05/0.1062, allocations: 35.97 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.1063, allocations: 177.6 kB / 465.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.024e-05/0.1064, allocations: 58.61 kB / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.682e-05/0.1065, allocations: 52.81 kB / 465.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.823e-06/0.1065, allocations: 0 / 465.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.1065, allocations: 30.56 kB / 465.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.41e-07/0.1065, allocations: 0 / 465.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003122/0.1068, allocations: 195.2 kB / 465.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.631e-05/0.1069, allocations: 89.14 kB / 465.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.107, allocations: 131.9 kB / 465.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.107, allocations: 25.7 kB / 465.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.285e-05/0.1071, allocations: 96.12 kB / 465.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.447e-05/0.1072, allocations: 43.34 kB / 465.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.09e-05/0.1072, allocations: 21.72 kB / 465.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1073, allocations: 326.8 kB / 466.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.814e-05/0.1074, allocations: 35.92 kB / 466.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.014e-05/0.1074, allocations: 31.98 kB / 466.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.1076, allocations: 164.2 kB / 466.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.1076, allocations: 0 / 466.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001804/0.1078, allocations: 151.3 kB / 466.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.503e-05/0.1078, allocations: 49.67 kB / 466.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.1078, allocations: 0 / 466.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.689e-06/0.1079, allocations: 0 / 466.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.1079, allocations: 0 / 466.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.1079, allocations: 3.938 kB / 466.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.416e-05/0.1079, allocations: 7.938 kB / 466.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.718e-05/0.108, allocations: 16 kB / 466.7 MB, free: 13.77 MB / 350.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 0.0001215/0.1081, allocations: 163.5 kB / 466.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.1081, allocations: 15.89 kB / 466.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.484e-05/0.1081, allocations: 8.719 kB / 466.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1081, allocations: 0 / 466.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.1082, allocations: 4 kB / 466.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.1082, allocations: 0 / 466.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001219/0.1083, allocations: 181.5 kB / 467.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1083, allocations: 0 / 467.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.1083, allocations: 7.938 kB / 467.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1083, allocations: 3.984 kB / 467.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.1083, allocations: 7.984 kB / 467.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.1083, allocations: 0 / 467.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1083, allocations: 0 / 467.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004498/0.1088, allocations: 286.6 kB / 467.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.326e-05/0.1088, allocations: 88.95 kB / 467.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.1089, allocations: 4 kB / 467.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.091e-05/0.1089, allocations: 8.031 kB / 467.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.928e-05/0.1089, allocations: 0 / 467.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.1089, allocations: 4 kB / 467.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001283/0.1091, allocations: 115.1 kB / 467.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1091, allocations: 0 / 467.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006672/0.1098, allocations: 316 kB / 467.9 MB, free: 12.47 MB / 350.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.001435/0.1112, allocations: 1.075 MB / 469 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003789/0.1116, allocations: 299.2 kB / 469.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1116, allocations: 0 / 469.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.1118, allocations: 227.3 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.1121, allocations: 10.75 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.1142, allocations: 1.949 MB / 471.4 MB, free: 8.781 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004104/0.1146, allocations: 0.7078 MB / 472.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.28e-05/0.1147, allocations: 0 / 472.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.1147, allocations: 35.33 kB / 472.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1147, allocations: 0 / 472.2 MB, free: 8.012 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].