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.0008339/0.0008339, allocations: 87.19 kB / 16.31 MB, free: 5.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.0008919/0.0008919, allocations: 175.3 kB / 17.2 MB, free: 5.547 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.436/1.436, allocations: 223.2 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1764/0.1764, allocations: 38.11 MB / 330.4 MB, free: 8.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003195/0.0003195, allocations: 15.98 kB / 400.2 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1157, allocations: 59.17 MB / 459.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002573/0.1183, allocations: 1.768 MB / 461.1 MB, free: 5.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002696/0.121, allocations: 1.908 MB / 463 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.823e-05/0.1211, allocations: 0 / 463 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.1212, allocations: 11.92 kB / 463 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.751e-05/0.1213, allocations: 23.89 kB / 463.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001716/0.1231, allocations: 0.6475 MB / 463.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000119/0.1232, allocations: 95.64 kB / 463.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.347e-05/0.1232, allocations: 4.188 kB / 463.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.225e-05/0.1233, allocations: 35.84 kB / 463.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.859e-05/0.1234, allocations: 47.83 kB / 463.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.1234, allocations: 4 kB / 463.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00156/0.125, allocations: 1.064 MB / 464.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.234e-05/0.1251, allocations: 31.91 kB / 465 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.297e-05/0.1251, allocations: 33.64 kB / 465 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.1261, allocations: 0.928 MB / 465.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1262, allocations: 0 / 465.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1262, allocations: 0 / 465.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1262, allocations: 0 / 465.9 MB, free: 0.6914 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.000653/0.1268, allocations: 0.5434 MB / 466.5 MB, free: 96 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1269, allocations: 8.031 kB / 466.5 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.1269, allocations: 42.55 kB / 466.5 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.107e-05/0.127, allocations: 7.906 kB / 466.5 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.1272, allocations: 207.5 kB / 466.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.176e-06/0.1272, allocations: 0 / 466.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.011e-05/0.1273, allocations: 0 / 466.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.1274, allocations: 99.89 kB / 466.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.809e-06/0.1274, allocations: 3.938 kB / 466.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.1275, allocations: 4 kB / 466.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.1275, allocations: 0 / 466.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.842e-05/0.1276, allocations: 67.77 kB / 466.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001911/0.1278, allocations: 189.4 kB / 467.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.1279, allocations: 98.56 kB / 467.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.084e-05/0.128, allocations: 92.86 kB / 467.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.931e-06/0.128, allocations: 0 / 467.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.128, allocations: 38.55 kB / 467.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 8.22e-07/0.128, allocations: 0 / 467.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004581/0.1285, allocations: 317.5 kB / 467.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.835e-05/0.1286, allocations: 101 kB / 467.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.1287, allocations: 153.4 kB / 467.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.1288, allocations: 29.7 kB / 467.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.1288, allocations: 96.58 kB / 468 MB, free: 14.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.364e-05/0.1289, allocations: 74.81 kB / 468.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-06/0.1289, allocations: 4.031 kB / 468.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1291, allocations: 326.8 kB / 468.4 MB, free: 14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.388e-05/0.1291, allocations: 59.97 kB / 468.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.988e-05/0.1292, allocations: 59.97 kB / 468.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/0.1294, allocations: 129.6 kB / 468.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1294, allocations: 3.953 kB / 468.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002744/0.1297, allocations: 234.9 kB / 468.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.711e-05/0.1297, allocations: 65.66 kB / 468.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1297, allocations: 4 kB / 468.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.1298, allocations: 64 / 468.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.1298, allocations: 4 kB / 468.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.1298, allocations: 0 / 468.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.902e-05/0.1298, allocations: 11.84 kB / 469 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.1299, allocations: 8 kB / 469 MB, free: 13.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001707/0.1301, allocations: 195.5 kB / 469.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.1301, allocations: 23.75 kB / 469.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.8e-05/0.1301, allocations: 9.188 kB / 469.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1301, allocations: 0 / 469.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1301, allocations: 0 / 469.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1301, allocations: 7.984 kB / 469.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.1303, allocations: 209.4 kB / 469.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1303, allocations: 0 / 469.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.114e-06/0.1303, allocations: 3.953 kB / 469.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.1303, allocations: 0 / 469.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.1303, allocations: 4 kB / 469.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1303, allocations: 0 / 469.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1303, allocations: 3.938 kB / 469.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005848/0.1309, allocations: 0.5252 MB / 469.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.29e-05/0.131, allocations: 88.95 kB / 470 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.131, allocations: 7.953 kB / 470 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.691e-05/0.1311, allocations: 4 kB / 470 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.534e-05/0.1311, allocations: 3.938 kB / 470 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.1311, allocations: 8 kB / 470.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.23e-05/0.1312, allocations: 115.1 kB / 470.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1312, allocations: 0 / 470.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009684/0.1322, allocations: 335.9 kB / 470.5 MB, free: 11.77 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001748/0.1339, allocations: 1.304 MB / 471.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007379/0.1347, allocations: 0.7177 MB / 472.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1347, allocations: 4.094 kB / 472.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005019/0.1352, allocations: 0.5735 MB / 473.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002333/0.1355, allocations: 15.95 kB / 473.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.1374, allocations: 1.448 MB / 474.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.1377, allocations: 0.7241 MB / 475.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.206e-05/0.1378, allocations: 4 kB / 475.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.1378, allocations: 39.42 kB / 475.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1378, allocations: 3.938 kB / 475.3 MB, free: 6.812 MB / 350.1 MB [CodegenCFunctions.tpl:5416:13-5416:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].