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.001307/0.001307, allocations: 109.1 kB / 16.62 MB, free: 6.961 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.001383/0.001383, allocations: 189.8 kB / 17.55 MB, free: 6.066 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.301/1.301, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1702/0.1702, allocations: 38.03 MB / 329.4 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001423, allocations: 62.52 kB / 398.4 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.09331, allocations: 58.07 MB / 456.5 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003675/0.09702, allocations: 2.143 MB / 458.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002836/0.09988, allocations: 2.051 MB / 460.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.896e-05/0.09995, allocations: 0 / 460.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.1001, allocations: 11.92 kB / 460.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.172e-05/0.1002, allocations: 23.89 kB / 460.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00206/0.1022, allocations: 0.757 MB / 461.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.1024, allocations: 79.69 kB / 461.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.476e-05/0.1024, allocations: 12.19 kB / 461.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.08e-05/0.1025, allocations: 35.84 kB / 461.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.926e-05/0.1026, allocations: 55.75 kB / 461.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.1026, allocations: 4 kB / 461.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001608/0.1042, allocations: 1.259 MB / 462.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.576e-05/0.1043, allocations: 43.84 kB / 462.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.611e-05/0.1044, allocations: 55.48 kB / 463 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.1059, allocations: 1.302 MB / 464.3 MB, free: 456 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1059, allocations: 0 / 464.3 MB, free: 456 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1059, allocations: 0 / 464.3 MB, free: 456 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1059, allocations: 0 / 464.3 MB, free: 456 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.0007671/0.1067, allocations: 0.6057 MB / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.1067, allocations: 11.89 kB / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.161e-05/0.1068, allocations: 46.73 kB / 464.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.521e-05/0.1068, allocations: 16.66 kB / 465 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.107, allocations: 215.3 kB / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-06/0.107, allocations: 7.984 kB / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.107, allocations: 0 / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.1072, allocations: 142.5 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.1072, allocations: 0 / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.1073, allocations: 3.938 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-06/0.1073, allocations: 0 / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/0.1074, allocations: 100.3 kB / 465.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000166/0.1076, allocations: 209.6 kB / 465.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001545/0.1077, allocations: 162.5 kB / 465.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.1079, allocations: 148.8 kB / 465.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.233e-06/0.1079, allocations: 3.984 kB / 465.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.1079, allocations: 34.56 kB / 466 MB, free: 14.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.273e-06/0.1079, allocations: 0 / 466 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005895/0.1085, allocations: 491.5 kB / 466.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.1086, allocations: 109.1 kB / 466.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.1087, allocations: 170.9 kB / 466.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.1087, allocations: 29.73 kB / 466.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.866e-05/0.1088, allocations: 100.8 kB / 466.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.973e-05/0.1089, allocations: 130.1 kB / 467 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.802e-05/0.1089, allocations: 37.7 kB / 467 MB, free: 13.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1091, allocations: 338.8 kB / 467.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.1092, allocations: 99.91 kB / 467.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.901e-05/0.1093, allocations: 96.94 kB / 467.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.1096, allocations: 380.3 kB / 467.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1096, allocations: 4.031 kB / 467.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003566/0.11, allocations: 338.9 kB / 468.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.458e-05/0.1101, allocations: 85.62 kB / 468.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.1101, allocations: 0 / 468.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.1101, allocations: 0 / 468.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1101, allocations: 0 / 468.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1101, allocations: 7.938 kB / 468.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.835e-05/0.1102, allocations: 23.69 kB / 468.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.1102, allocations: 8 kB / 468.4 MB, free: 12.08 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.0001874/0.1104, allocations: 247.3 kB / 468.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.161e-05/0.1105, allocations: 19.81 kB / 468.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.714e-05/0.1105, allocations: 14.66 kB / 468.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.1105, allocations: 0 / 468.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1105, allocations: 4 kB / 468.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1105, allocations: 3.984 kB / 468.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.1107, allocations: 233.3 kB / 468.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1107, allocations: 7.922 kB / 468.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.1107, allocations: 4 kB / 468.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1107, allocations: 0 / 468.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.1107, allocations: 16 kB / 468.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1107, allocations: 0 / 468.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1107, allocations: 0 / 468.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000894/0.1116, allocations: 0.9081 MB / 469.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.722e-05/0.1117, allocations: 104.7 kB / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.1117, allocations: 7.984 kB / 469.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.204e-05/0.1118, allocations: 8 kB / 469.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.512e-05/0.1118, allocations: 4 kB / 469.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.1118, allocations: 16.03 kB / 470 MB, free: 10.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.554e-05/0.1119, allocations: 136.2 kB / 470.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1119, allocations: 0 / 470.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008073/0.1128, allocations: 351.9 kB / 470.4 MB, free: 9.914 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.002018/0.1148, allocations: 1.71 MB / 472.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.1161, allocations: 1.6 MB / 473.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1161, allocations: 0 / 473.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009826/0.117, allocations: 1.374 MB / 475.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.1173, allocations: 19.91 kB / 475.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003701/0.121, allocations: 3.711 MB / 478.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.1213, allocations: 0.7555 MB / 479.6 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.102e-05/0.1213, allocations: 0 / 479.6 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.434e-05/0.1214, allocations: 59.34 kB / 479.7 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1214, allocations: 3.938 kB / 479.7 MB, free: 0.5039 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].