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.0007844/0.0007844, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0008179/0.0008179, allocations: 182 kB / 17.56 MB, free: 6.203 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.321/1.321, allocations: 223.3 MB / 241.6 MB, free: 188 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1926/0.1926, allocations: 38.1 MB / 330.8 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002851/0.0002851, allocations: 11.98 kB / 400.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09987/0.1002, allocations: 59.17 MB / 460 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002137/0.1023, allocations: 1.803 MB / 461.8 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002767/0.1051, allocations: 2.128 MB / 463.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.456e-05/0.1052, allocations: 7.938 kB / 463.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.186e-05/0.1053, allocations: 7.984 kB / 463.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.169e-05/0.1053, allocations: 23.84 kB / 463.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001422/0.1068, allocations: 0.6974 MB / 464.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.1069, allocations: 123.6 kB / 464.8 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.558e-05/0.1069, allocations: 4.188 kB / 464.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.672e-05/0.107, allocations: 23.91 kB / 464.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.878e-05/0.1071, allocations: 59.75 kB / 464.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.387e-06/0.1071, allocations: 0 / 464.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001522/0.1086, allocations: 1.232 MB / 466.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.546e-05/0.1087, allocations: 19.92 kB / 466.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.836e-05/0.1087, allocations: 45.52 kB / 466.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001315/0.1101, allocations: 1.275 MB / 467.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1101, allocations: 0 / 467.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1101, allocations: 7.938 kB / 467.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1101, allocations: 0 / 467.4 MB, free: 15.46 MB / 350.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.0005595/0.1107, allocations: 0.5125 MB / 467.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.1107, allocations: 8.031 kB / 468 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.37e-05/0.1107, allocations: 34.75 kB / 468 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.629e-05/0.1108, allocations: 8.844 kB / 468 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.1109, allocations: 187.3 kB / 468.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.111, allocations: 4 kB / 468.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.111, allocations: 3.938 kB / 468.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.1111, allocations: 77.66 kB / 468.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1111, allocations: 0 / 468.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.1111, allocations: 3.938 kB / 468.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.1111, allocations: 0 / 468.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.272e-05/0.1112, allocations: 31.98 kB / 468.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.1114, allocations: 165.6 kB / 468.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.74e-05/0.1114, allocations: 58.67 kB / 468.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.345e-05/0.1115, allocations: 48.92 kB / 468.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.141e-06/0.1115, allocations: 4 kB / 468.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.1115, allocations: 38.56 kB / 468.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.31e-07/0.1116, allocations: 0 / 468.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002868/0.1118, allocations: 191.2 kB / 468.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.1119, allocations: 89.11 kB / 468.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.998e-05/0.112, allocations: 140.2 kB / 469 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.112, allocations: 25.7 kB / 469 MB, free: 13.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.554e-05/0.1121, allocations: 88.14 kB / 469.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.765e-05/0.1121, allocations: 51.41 kB / 469.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.67e-05/0.1122, allocations: 13.72 kB / 469.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.1123, allocations: 322.8 kB / 469.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.63e-05/0.1123, allocations: 31.98 kB / 469.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.816e-05/0.1124, allocations: 31.98 kB / 469.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000157/0.1125, allocations: 172.5 kB / 469.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1125, allocations: 0 / 469.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001768/0.1127, allocations: 151.2 kB / 469.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.404e-05/0.1128, allocations: 49.67 kB / 469.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.1128, allocations: 4.062 kB / 469.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.808e-06/0.1128, allocations: 4 kB / 469.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1128, allocations: 0 / 469.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.1128, allocations: 0 / 469.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.313e-05/0.1129, allocations: 7.906 kB / 469.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.1129, allocations: 3.938 kB / 470 MB, free: 12.67 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.0001211/0.113, allocations: 171.5 kB / 470.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.113, allocations: 7.906 kB / 470.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.762e-05/0.1131, allocations: 8.719 kB / 470.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.1131, allocations: 4 kB / 470.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1131, allocations: 0 / 470.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-06/0.1131, allocations: 0 / 470.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.1132, allocations: 181.5 kB / 470.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.1132, allocations: 0 / 470.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-06/0.1132, allocations: 7.984 kB / 470.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.1132, allocations: 3.938 kB / 470.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.1133, allocations: 7.938 kB / 470.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1133, allocations: 3.938 kB / 470.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1133, allocations: 0 / 470.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003035/0.1136, allocations: 290.6 kB / 470.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.22e-05/0.1136, allocations: 85.02 kB / 470.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.1136, allocations: 4 kB / 470.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.648e-05/0.1137, allocations: 0 / 470.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.01e-05/0.1137, allocations: 8 kB / 470.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.1137, allocations: 4 kB / 470.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.108e-05/0.1138, allocations: 107.1 kB / 470.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1138, allocations: 0 / 470.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007801/0.1146, allocations: 327.9 kB / 471.1 MB, free: 11.36 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.001313/0.1159, allocations: 1.08 MB / 472.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003214/0.1162, allocations: 295.3 kB / 472.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1162, allocations: 3.938 kB / 472.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.1164, allocations: 227.3 kB / 472.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.1166, allocations: 7.938 kB / 472.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.1185, allocations: 1.956 MB / 474.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000238/0.1187, allocations: 0.7082 MB / 475.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.08e-05/0.1187, allocations: 0 / 475.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.008e-05/0.1188, allocations: 19.44 kB / 475.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1188, allocations: 0 / 475.4 MB, free: 6.902 MB / 350.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].