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.001126/0.001126, allocations: 114.9 kB / 16.63 MB, free: 6.816 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.001136/0.001136, allocations: 190 kB / 17.55 MB, free: 5.93 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.332/1.332, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1687/0.1687, allocations: 38.04 MB / 329.4 MB, free: 9.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 64.5 kB / 398.4 MB, free: 34.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08814/0.08945, allocations: 58.06 MB / 456.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003673/0.09317, allocations: 2.139 MB / 458.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002893/0.09609, allocations: 2.055 MB / 460.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.907e-05/0.09617, allocations: 0 / 460.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.09632, allocations: 15.92 kB / 460.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.668e-05/0.09644, allocations: 15.91 kB / 460.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002165/0.09861, allocations: 0.757 MB / 461.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.09877, allocations: 83.69 kB / 461.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.606e-05/0.09883, allocations: 8.188 kB / 461.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.233e-05/0.09893, allocations: 39.78 kB / 461.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.115e-05/0.09902, allocations: 51.81 kB / 461.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.174e-05/0.09904, allocations: 0 / 461.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001798/0.1008, allocations: 1.263 MB / 462.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.78e-05/0.1009, allocations: 23.92 kB / 462.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.11e-05/0.101, allocations: 47.61 kB / 462.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001716/0.1027, allocations: 1.274 MB / 464.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1027, allocations: 0 / 464.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1027, allocations: 0 / 464.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1027, allocations: 4 kB / 464.2 MB, free: 0.5078 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008501/0.1036, allocations: 0.5474 MB / 464.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.1036, allocations: 15.89 kB / 464.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.379e-05/0.1037, allocations: 38.73 kB / 464.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.839e-05/0.1037, allocations: 12.75 kB / 464.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.1039, allocations: 215.3 kB / 465.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.258e-06/0.1039, allocations: 0 / 465.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.1039, allocations: 0 / 465.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001613/0.1041, allocations: 100.5 kB / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.862e-06/0.1041, allocations: 0 / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.1041, allocations: 0 / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.1041, allocations: 0 / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.979e-05/0.1042, allocations: 67.77 kB / 465.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.1044, allocations: 185.5 kB / 465.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.1045, allocations: 106.5 kB / 465.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.813e-05/0.1046, allocations: 92.86 kB / 465.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-06/0.1046, allocations: 0 / 465.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.1047, allocations: 30.56 kB / 465.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 9.32e-07/0.1047, allocations: 0 / 465.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004627/0.1051, allocations: 315.5 kB / 465.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.1052, allocations: 101.1 kB / 466 MB, free: 14.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.1053, allocations: 156.6 kB / 466.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.1054, allocations: 25.7 kB / 466.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.615e-05/0.1054, allocations: 100.6 kB / 466.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.981e-05/0.1055, allocations: 82.75 kB / 466.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.601e-05/0.1055, allocations: 29.7 kB / 466.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1057, allocations: 330.8 kB / 466.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.06e-05/0.1058, allocations: 55.97 kB / 466.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.412e-05/0.1058, allocations: 59.97 kB / 466.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.1061, allocations: 259.7 kB / 467.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1061, allocations: 0 / 467.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000258/0.1063, allocations: 246.9 kB / 467.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.488e-05/0.1064, allocations: 57.67 kB / 467.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1064, allocations: 7.922 kB / 467.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.1064, allocations: 7.984 kB / 467.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.214e-06/0.1064, allocations: 3.984 kB / 467.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1065, allocations: 0 / 467.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.722e-05/0.1065, allocations: 11.84 kB / 467.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.1065, allocations: 8 kB / 467.4 MB, free: 13.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.000153/0.1067, allocations: 199.5 kB / 467.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.1067, allocations: 23.75 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.671e-05/0.1068, allocations: 13.17 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1068, allocations: 0 / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1068, allocations: 0 / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1068, allocations: 0 / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.1069, allocations: 205.4 kB / 467.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1069, allocations: 0 / 467.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1069, allocations: 0 / 467.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.107, allocations: 4 kB / 467.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.107, allocations: 12 kB / 467.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.107, allocations: 0 / 467.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.107, allocations: 0 / 467.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005513/0.1075, allocations: 0.5208 MB / 468.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.581e-05/0.1076, allocations: 92.86 kB / 468.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.706e-05/0.1076, allocations: 4 kB / 468.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.418e-05/0.1077, allocations: 7.984 kB / 468.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.175e-05/0.1077, allocations: 0 / 468.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.1077, allocations: 16.03 kB / 468.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.069e-05/0.1078, allocations: 111.2 kB / 468.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1078, allocations: 0 / 468.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008365/0.1087, allocations: 328 kB / 469 MB, free: 11.4 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.001835/0.1105, allocations: 1.335 MB / 470.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006685/0.1112, allocations: 0.71 MB / 471 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1112, allocations: 0 / 471 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004418/0.1116, allocations: 0.5735 MB / 471.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.1119, allocations: 8 kB / 471.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.1146, allocations: 2.694 MB / 474.3 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.1149, allocations: 0.7278 MB / 475 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.518e-05/0.115, allocations: 4 kB / 475 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.329e-05/0.115, allocations: 35.42 kB / 475 MB, free: 5.152 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.115, allocations: 0 / 475 MB, free: 5.152 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].