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.001462/0.001462, allocations: 113.1 kB / 16.63 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.001675/0.001675, allocations: 185.8 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.343/1.343, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1684/0.1684, allocations: 38.04 MB / 329.4 MB, free: 9.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 64.75 kB / 398.4 MB, free: 34.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09653/0.0977, allocations: 58.07 MB / 456.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003217/0.101, allocations: 2.135 MB / 458.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002682/0.1037, allocations: 2.051 MB / 460.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.313e-05/0.1037, allocations: 0 / 460.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.1039, allocations: 19.91 kB / 460.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.193e-05/0.104, allocations: 31.83 kB / 460.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001702/0.1057, allocations: 0.7493 MB / 461.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.1058, allocations: 79.69 kB / 461.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.811e-05/0.1059, allocations: 4.188 kB / 461.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.778e-05/0.1059, allocations: 35.84 kB / 461.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.497e-05/0.106, allocations: 43.77 kB / 461.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.012e-05/0.106, allocations: 4 kB / 461.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.1075, allocations: 1.255 MB / 462.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.676e-05/0.1076, allocations: 19.92 kB / 462.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.235e-05/0.1076, allocations: 15.88 kB / 462.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.1088, allocations: 1.236 MB / 464.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1088, allocations: 0 / 464.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1088, allocations: 0 / 464.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.1088, allocations: 4 kB / 464.1 MB, free: 0.6055 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006272/0.1095, allocations: 0.4931 MB / 464.6 MB, free: 60 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.1095, allocations: 11.89 kB / 464.6 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.864e-05/0.1096, allocations: 50.67 kB / 464.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/0.1096, allocations: 4.844 kB / 464.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.1098, allocations: 193.3 kB / 464.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.971e-06/0.1098, allocations: 0 / 464.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.1099, allocations: 7.938 kB / 464.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.11, allocations: 53.67 kB / 464.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.11, allocations: 0 / 464.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.11, allocations: 7.984 kB / 465 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.11, allocations: 0 / 465 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.725e-05/0.1101, allocations: 24 kB / 465 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001558/0.1102, allocations: 169.5 kB / 465.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.994e-05/0.1103, allocations: 46.5 kB / 465.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.822e-05/0.1104, allocations: 36.88 kB / 465.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-06/0.1104, allocations: 0 / 465.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.1104, allocations: 30.56 kB / 465.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.1104, allocations: 0 / 465.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002544/0.1107, allocations: 155.3 kB / 465.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.1108, allocations: 89.03 kB / 465.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.564e-05/0.1109, allocations: 121.8 kB / 465.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.1109, allocations: 25.7 kB / 465.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.827e-05/0.1109, allocations: 88.12 kB / 465.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.742e-05/0.111, allocations: 27.56 kB / 465.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.604e-05/0.111, allocations: 21.7 kB / 465.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1111, allocations: 322.8 kB / 466.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.771e-05/0.1112, allocations: 24.17 kB / 466.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.446e-05/0.1112, allocations: 31.97 kB / 466.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.1113, allocations: 128.2 kB / 466.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1113, allocations: 0 / 466.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001385/0.1115, allocations: 123.2 kB / 466.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.037e-05/0.1115, allocations: 45.69 kB / 466.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.1115, allocations: 0 / 466.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.1116, allocations: 0 / 466.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.1116, allocations: 0 / 466.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1116, allocations: 4 kB / 466.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.903e-05/0.1116, allocations: 8 kB / 466.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/0.1116, allocations: 7.984 kB / 466.4 MB, free: 14.02 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.0001088/0.1118, allocations: 159.5 kB / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.703e-05/0.1118, allocations: 7.906 kB / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.506e-05/0.1118, allocations: 8.359 kB / 466.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.1118, allocations: 0 / 466.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1118, allocations: 0 / 466.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1118, allocations: 4 kB / 466.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.1119, allocations: 165.6 kB / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.112, allocations: 4 kB / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-07/0.112, allocations: 0 / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.112, allocations: 0 / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.112, allocations: 7.938 kB / 466.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.112, allocations: 0 / 466.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.112, allocations: 3.984 kB / 466.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002969/0.1123, allocations: 222.5 kB / 467 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.048e-05/0.1124, allocations: 88.95 kB / 467.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.1124, allocations: 4.031 kB / 467.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.398e-05/0.1124, allocations: 4 kB / 467.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.758e-05/0.1124, allocations: 3.984 kB / 467.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-06/0.1125, allocations: 4 kB / 467.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.626e-05/0.1125, allocations: 98.39 kB / 467.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1125, allocations: 0 / 467.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007124/0.1132, allocations: 315.9 kB / 467.5 MB, free: 12.83 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.0012/0.1144, allocations: 1.015 MB / 468.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002275/0.1147, allocations: 199.6 kB / 468.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1147, allocations: 0 / 468.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.1148, allocations: 147.4 kB / 468.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.1151, allocations: 16.14 kB / 468.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/0.1166, allocations: 1.706 MB / 470.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.1169, allocations: 0.6963 MB / 471.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.027e-05/0.1169, allocations: 0 / 471.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.819e-05/0.1169, allocations: 23.47 kB / 471.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1169, allocations: 0 / 471.3 MB, free: 8.867 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].