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.0008963/0.0008963, allocations: 92.17 kB / 16.65 MB, free: 6.535 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.001012/0.001013, allocations: 174.2 kB / 17.56 MB, free: 6.184 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.275/1.275, allocations: 223.2 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1771/0.1772, allocations: 38.1 MB / 330.8 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002889/0.000289, allocations: 8.281 kB / 400.8 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1006, allocations: 59.17 MB / 460 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002839/0.1035, allocations: 1.807 MB / 461.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003257/0.1068, allocations: 2.133 MB / 463.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.526e-05/0.1069, allocations: 0 / 463.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.1071, allocations: 7.922 kB / 463.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.532e-05/0.1072, allocations: 23.84 kB / 463.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002037/0.1092, allocations: 0.6943 MB / 464.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001524/0.1094, allocations: 127.6 kB / 464.8 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.399e-05/0.1094, allocations: 4.188 kB / 464.8 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.576e-05/0.1096, allocations: 27.91 kB / 464.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.1097, allocations: 59.75 kB / 464.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.199e-05/0.1097, allocations: 0 / 464.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001931/0.1116, allocations: 1.24 MB / 466.1 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.631e-05/0.1117, allocations: 51.81 kB / 466.1 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.77e-05/0.1118, allocations: 77.2 kB / 466.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001888/0.1137, allocations: 1.325 MB / 467.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1137, allocations: 0 / 467.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1137, allocations: 0 / 467.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.1137, allocations: 0 / 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0008828/0.1146, allocations: 0.5941 MB / 468.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.1147, allocations: 12.03 kB / 468.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.24e-05/0.1147, allocations: 42.73 kB / 468.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.543e-05/0.1148, allocations: 20.66 kB / 468.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.115, allocations: 211.3 kB / 468.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.115, allocations: 4 kB / 468.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/0.115, allocations: 3.984 kB / 468.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.1153, allocations: 138.6 kB / 468.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.1153, allocations: 0 / 468.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.1153, allocations: 0 / 468.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.1153, allocations: 7.938 kB / 468.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001199/0.1154, allocations: 104.2 kB / 468.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001833/0.1156, allocations: 213.9 kB / 468.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.1158, allocations: 154.9 kB / 469 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.1159, allocations: 145.2 kB / 469.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.946e-06/0.1159, allocations: 0 / 469.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.116, allocations: 34.56 kB / 469.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 7.62e-07/0.116, allocations: 0 / 469.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006121/0.1166, allocations: 0.4911 MB / 469.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.1167, allocations: 109.1 kB / 469.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.1168, allocations: 170.4 kB / 470 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.1169, allocations: 25.7 kB / 470 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.989e-05/0.1169, allocations: 108.8 kB / 470.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.117, allocations: 130 kB / 470.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.1171, allocations: 29.7 kB / 470.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1172, allocations: 342.8 kB / 470.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.1173, allocations: 91.97 kB / 470.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.796e-05/0.1174, allocations: 100.9 kB / 470.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003179/0.1177, allocations: 380.3 kB / 471.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1178, allocations: 0 / 471.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003581/0.1181, allocations: 342.9 kB / 471.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.78e-05/0.1182, allocations: 85.62 kB / 471.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1182, allocations: 0 / 471.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.1182, allocations: 4 kB / 471.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.1182, allocations: 4.062 kB / 471.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.1182, allocations: 0 / 471.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.386e-05/0.1183, allocations: 15.84 kB / 471.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.1184, allocations: 8 kB / 471.6 MB, free: 11.04 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.0001945/0.1186, allocations: 239.3 kB / 471.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.36e-05/0.1186, allocations: 23.72 kB / 471.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.233e-05/0.1186, allocations: 14.66 kB / 471.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.1186, allocations: 0 / 471.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1186, allocations: 0 / 471.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1187, allocations: 11.98 kB / 471.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.1188, allocations: 237.2 kB / 472.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1188, allocations: 3.984 kB / 472.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.404e-06/0.1189, allocations: 11.88 kB / 472.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1189, allocations: 0 / 472.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.1189, allocations: 8 kB / 472.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1189, allocations: 0 / 472.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1189, allocations: 0 / 472.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009302/0.1198, allocations: 0.9159 MB / 473.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.1199, allocations: 100.9 kB / 473.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.1199, allocations: 7.984 kB / 473.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.357e-05/0.12, allocations: 8 kB / 473.2 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.028e-05/0.12, allocations: 8 kB / 473.2 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.1201, allocations: 8 kB / 473.2 MB, free: 9.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.464e-05/0.1201, allocations: 127.2 kB / 473.3 MB, free: 9.219 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1201, allocations: 0 / 473.3 MB, free: 9.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009786/0.1211, allocations: 351.9 kB / 473.7 MB, free: 8.875 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.002112/0.1233, allocations: 1.729 MB / 475.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.1246, allocations: 1.589 MB / 477 MB, free: 5.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.1246, allocations: 0 / 477 MB, free: 5.508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009945/0.1256, allocations: 1.378 MB / 478.4 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.1258, allocations: 18.66 kB / 478.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.1298, allocations: 3.723 MB / 482.1 MB, free: 296 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/0.1301, allocations: 0.7597 MB / 482.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.539e-05/0.1301, allocations: 3.984 kB / 482.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.361e-05/0.1302, allocations: 43.42 kB / 482.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1302, allocations: 8.031 kB / 482.9 MB, free: 15.45 MB / 366.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].