Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001321/0.001321, allocations: 99.73 kB / 16.5 MB, free: 6.688 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.001474/0.001474, allocations: 193.2 kB / 17.42 MB, free: 6.09 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.25/1.25, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1618/0.1618, allocations: 38.05 MB / 329.3 MB, free: 9.09 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 57.33 kB / 398.2 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09318/0.09432, allocations: 58.07 MB / 456.3 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003229/0.09757, allocations: 2.135 MB / 458.4 MB, free: 6.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003074/0.1007, allocations: 2.176 MB / 460.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.482e-05/0.1007, allocations: 0 / 460.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.1009, allocations: 11.92 kB / 460.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.225e-05/0.101, allocations: 27.83 kB / 460.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001574/0.1026, allocations: 0.6866 MB / 461.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.1027, allocations: 131.6 kB / 461.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.194e-05/0.1028, allocations: 4.188 kB / 461.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.374e-05/0.1028, allocations: 27.84 kB / 461.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.587e-05/0.1029, allocations: 59.75 kB / 461.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/0.103, allocations: 0 / 461.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001473/0.1044, allocations: 1.24 MB / 462.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.042e-05/0.1045, allocations: 43.84 kB / 462.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.1046, allocations: 51.48 kB / 462.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001505/0.1061, allocations: 1.333 MB / 464.2 MB, free: 488 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1061, allocations: 4 kB / 464.2 MB, free: 484 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1061, allocations: 0 / 464.2 MB, free: 484 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.1061, allocations: 0 / 464.2 MB, free: 484 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006265/0.1068, allocations: 0.5979 MB / 464.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1068, allocations: 12.03 kB / 464.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.782e-05/0.1069, allocations: 50.67 kB / 464.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.766e-05/0.1069, allocations: 20.66 kB / 464.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.1071, allocations: 203.4 kB / 465.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.324e-06/0.1071, allocations: 7.938 kB / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.1071, allocations: 0 / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.1073, allocations: 142.5 kB / 465.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.679e-06/0.1074, allocations: 3.984 kB / 465.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.1074, allocations: 7.938 kB / 465.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.1074, allocations: 0 / 465.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000107/0.1075, allocations: 96.3 kB / 465.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001722/0.1077, allocations: 217.5 kB / 465.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.1079, allocations: 166.5 kB / 465.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.108, allocations: 144.8 kB / 465.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.899e-06/0.108, allocations: 0 / 465.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.106e-05/0.1081, allocations: 30.56 kB / 465.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 9.31e-07/0.1081, allocations: 4 kB / 465.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005972/0.1087, allocations: 491.6 kB / 466.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/0.1088, allocations: 113.1 kB / 466.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.1089, allocations: 166.9 kB / 466.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.109, allocations: 25.7 kB / 466.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/0.109, allocations: 108.8 kB / 466.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.627e-05/0.1091, allocations: 126.1 kB / 466.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.1092, allocations: 41.62 kB / 466.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.1093, allocations: 334.8 kB / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.447e-05/0.1094, allocations: 95.95 kB / 467.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.211e-05/0.1095, allocations: 100.9 kB / 467.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/0.1098, allocations: 384.3 kB / 467.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1098, allocations: 0 / 467.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003834/0.1102, allocations: 338.9 kB / 468.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.419e-05/0.1103, allocations: 85.64 kB / 468.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.1103, allocations: 0 / 468.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.1103, allocations: 3.984 kB / 468.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.1103, allocations: 0 / 468.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.1103, allocations: 3.984 kB / 468.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.129e-05/0.1104, allocations: 23.69 kB / 468.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.1104, allocations: 8 kB / 468.3 MB, free: 12.11 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.000188/0.1106, allocations: 243.3 kB / 468.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.415e-05/0.1107, allocations: 23.81 kB / 468.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.575e-05/0.1107, allocations: 14.66 kB / 468.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.1107, allocations: 0 / 468.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1107, allocations: 0 / 468.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.1107, allocations: 0 / 468.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.1109, allocations: 245.1 kB / 468.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1109, allocations: 3.938 kB / 468.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1109, allocations: 0 / 468.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.1109, allocations: 4 kB / 468.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.111, allocations: 11.98 kB / 468.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.111, allocations: 0 / 468.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.111, allocations: 0 / 468.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009419/0.1119, allocations: 0.916 MB / 469.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.383e-05/0.112, allocations: 96.77 kB / 469.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.112, allocations: 8 kB / 469.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.858e-05/0.1121, allocations: 8 kB / 469.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.348e-05/0.1121, allocations: 19.95 kB / 469.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.1121, allocations: 8 kB / 469.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.496e-05/0.1122, allocations: 128.2 kB / 470 MB, free: 10.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1122, allocations: 0 / 470 MB, free: 10.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009721/0.1132, allocations: 359.9 kB / 470.3 MB, free: 9.938 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.002143/0.1154, allocations: 1.721 MB / 472 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.1167, allocations: 1.593 MB / 473.6 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1168, allocations: 0 / 473.6 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.1178, allocations: 1.378 MB / 475 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.118, allocations: 15.91 kB / 475 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003766/0.1218, allocations: 3.706 MB / 478.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.1222, allocations: 0.752 MB / 479.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.502e-05/0.1222, allocations: 4 kB / 479.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.824e-05/0.1222, allocations: 43.42 kB / 479.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1223, allocations: 0 / 479.5 MB, free: 0.5469 MB / 350.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].