Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.0009122/0.0009126, allocations: 90.77 kB / 16.65 MB, free: 6.59 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.000998/0.0009981, allocations: 185.2 kB / 17.57 MB, free: 6.199 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.257/1.257, allocations: 223.2 MB / 241.6 MB, free: 14.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1635/0.1635, allocations: 38.09 MB / 330.8 MB, free: 8.512 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002735/0.0002734, allocations: 12.53 kB / 400.8 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1002, allocations: 59.17 MB / 460 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002209/0.1025, allocations: 1.815 MB / 461.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002942/0.1054, allocations: 2.122 MB / 463.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.83e-05/0.1055, allocations: 3.938 kB / 463.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.1056, allocations: 7.969 kB / 463.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.242e-05/0.1057, allocations: 23.84 kB / 463.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00179/0.1075, allocations: 0.6904 MB / 464.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.1077, allocations: 127.6 kB / 464.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.803e-05/0.1077, allocations: 4.172 kB / 464.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.933e-05/0.1078, allocations: 31.86 kB / 464.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.845e-05/0.1079, allocations: 51.81 kB / 464.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.268e-05/0.1079, allocations: 0 / 464.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001711/0.1097, allocations: 1.244 MB / 466.1 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.233e-05/0.1097, allocations: 27.91 kB / 466.1 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.892e-05/0.1098, allocations: 65.33 kB / 466.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.1112, allocations: 1.302 MB / 467.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1112, allocations: 4 kB / 467.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.1112, allocations: 0 / 467.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.1112, allocations: 3.938 kB / 467.5 MB, free: 15.38 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006168/0.1118, allocations: 0.5397 MB / 468 MB, free: 14.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.1119, allocations: 12.03 kB / 468 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.89e-05/0.1119, allocations: 34.75 kB / 468.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.389e-05/0.112, allocations: 12.83 kB / 468.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.1122, allocations: 204 kB / 468.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.1122, allocations: 0 / 468.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-06/0.1122, allocations: 3.938 kB / 468.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.1124, allocations: 99.89 kB / 468.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.1124, allocations: 0 / 468.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.617e-06/0.1124, allocations: 4 kB / 468.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1124, allocations: 0 / 468.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.988e-05/0.1125, allocations: 67.83 kB / 468.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000165/0.1127, allocations: 193.4 kB / 468.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.1128, allocations: 102.5 kB / 468.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.027e-05/0.1129, allocations: 92.86 kB / 468.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-06/0.1129, allocations: 0 / 468.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.1129, allocations: 34.56 kB / 468.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.475e-06/0.1129, allocations: 3.984 kB / 468.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004439/0.1134, allocations: 317.5 kB / 469.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.1135, allocations: 101 kB / 469.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.1136, allocations: 157.3 kB / 469.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.1136, allocations: 29.7 kB / 469.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.1137, allocations: 100.6 kB / 469.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.603e-05/0.1137, allocations: 78.8 kB / 469.6 MB, free: 13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/0.1138, allocations: 21.72 kB / 469.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1139, allocations: 330.8 kB / 470 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.274e-05/0.114, allocations: 59.97 kB / 470.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.776e-05/0.1141, allocations: 63.97 kB / 470.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.1143, allocations: 252.2 kB / 470.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1143, allocations: 0 / 470.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002521/0.1146, allocations: 238.5 kB / 470.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.544e-05/0.1146, allocations: 61.66 kB / 470.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1146, allocations: 0 / 470.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.1147, allocations: 7.938 kB / 470.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.1147, allocations: 4.062 kB / 470.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.1147, allocations: 0 / 470.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.114e-05/0.1147, allocations: 11.84 kB / 470.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.1148, allocations: 8 kB / 470.7 MB, free: 11.92 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.0001706/0.1149, allocations: 199.4 kB / 470.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.115, allocations: 19.81 kB / 470.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.408e-05/0.115, allocations: 9.188 kB / 470.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.115, allocations: 0 / 470.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.115, allocations: 3.938 kB / 470.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.115, allocations: 4 kB / 470.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001421/0.1152, allocations: 209.4 kB / 471.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1152, allocations: 0 / 471.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.014e-06/0.1152, allocations: 4 kB / 471.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.1152, allocations: 0 / 471.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.1152, allocations: 4 kB / 471.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1152, allocations: 0 / 471.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1152, allocations: 0 / 471.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005639/0.1158, allocations: 0.5256 MB / 471.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.023e-05/0.1158, allocations: 92.86 kB / 471.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.1159, allocations: 4 kB / 471.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.903e-05/0.1159, allocations: 4 kB / 471.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.432e-05/0.1159, allocations: 4 kB / 471.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.116, allocations: 4 kB / 471.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.009e-05/0.116, allocations: 114.7 kB / 471.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.116, allocations: 0 / 471.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000774/0.1168, allocations: 343.9 kB / 472.2 MB, free: 10.29 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.001583/0.1184, allocations: 1.327 MB / 473.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006468/0.1191, allocations: 0.7138 MB / 474.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.1191, allocations: 4.094 kB / 474.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004458/0.1195, allocations: 0.5735 MB / 474.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002012/0.1197, allocations: 8 kB / 474.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002739/0.1225, allocations: 2.703 MB / 477.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.1228, allocations: 0.7241 MB / 478.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.374e-05/0.1229, allocations: 3.984 kB / 478.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.777e-05/0.1229, allocations: 27.44 kB / 478.3 MB, free: 4.035 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1229, allocations: 0 / 478.3 MB, free: 4.035 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].