Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.00093/0.00093, allocations: 87.34 kB / 16.31 MB, free: 6.453 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.001084/0.001084, allocations: 183.8 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 205.4 MB / 223.4 MB, free: 5.254 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3734/0.3734, allocations: 38.05 MB / 309.7 MB, free: 9.031 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000625/0.0006251, allocations: 23.98 kB / 376.6 MB, free: 15.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1365, allocations: 56.33 MB / 433 MB, free: 6.574 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002835/0.1394, allocations: 1.764 MB / 434.7 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003286/0.1428, allocations: 1.947 MB / 436.7 MB, free: 2.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.396e-05/0.1429, allocations: 4 kB / 436.7 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.143, allocations: 11.92 kB / 436.7 MB, free: 2.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.1431, allocations: 31.89 kB / 436.7 MB, free: 2.789 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002065/0.1452, allocations: 0.6397 MB / 437.4 MB, free: 2.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.1454, allocations: 103.6 kB / 437.5 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.416e-05/0.1454, allocations: 4.172 kB / 437.5 MB, free: 2.043 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.883e-05/0.1455, allocations: 35.83 kB / 437.5 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.313e-05/0.1456, allocations: 39.78 kB / 437.5 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.421e-05/0.1456, allocations: 7.984 kB / 437.5 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.1476, allocations: 1.049 MB / 438.6 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.92e-05/0.1477, allocations: 19.98 kB / 438.6 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.57e-05/0.1477, allocations: 33.58 kB / 438.6 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.1492, allocations: 0.8969 MB / 439.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1492, allocations: 0 / 439.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1492, allocations: 0 / 439.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1492, allocations: 4 kB / 439.5 MB, free: 15.95 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008572/0.1501, allocations: 0.4928 MB / 440 MB, free: 15.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.1501, allocations: 16.03 kB / 440.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.882e-05/0.1502, allocations: 34.55 kB / 440.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.339e-05/0.1502, allocations: 7.906 kB / 440.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.1505, allocations: 183 kB / 440.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.266e-06/0.1505, allocations: 0 / 440.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.1505, allocations: 0 / 440.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001437/0.1507, allocations: 65.56 kB / 440.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.1507, allocations: 0 / 440.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.1507, allocations: 0 / 440.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.1507, allocations: 0 / 440.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.841e-05/0.1508, allocations: 27.92 kB / 440.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001662/0.1509, allocations: 161.7 kB / 440.5 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.092e-05/0.151, allocations: 46.56 kB / 440.6 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.739e-05/0.1511, allocations: 36.86 kB / 440.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.044e-06/0.1511, allocations: 4 kB / 440.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.1511, allocations: 30.56 kB / 440.6 MB, free: 14.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.1511, allocations: 3.938 kB / 440.6 MB, free: 14.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002778/0.1514, allocations: 163.3 kB / 440.8 MB, free: 14.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.1515, allocations: 89.09 kB / 440.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.252e-05/0.1516, allocations: 121.8 kB / 441 MB, free: 14.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.1516, allocations: 25.7 kB / 441 MB, free: 14.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.554e-05/0.1517, allocations: 92.08 kB / 441.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.295e-05/0.1517, allocations: 23.7 kB / 441.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-06/0.1517, allocations: 0 / 441.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1519, allocations: 318.8 kB / 441.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.455e-05/0.1519, allocations: 20.02 kB / 441.5 MB, free: 13.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.081e-05/0.1519, allocations: 23.98 kB / 441.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.098e-05/0.152, allocations: 61.69 kB / 441.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.152, allocations: 0 / 441.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001585/0.1522, allocations: 131.2 kB / 441.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.77e-05/0.1523, allocations: 41.69 kB / 441.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.1523, allocations: 0 / 441.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1523, allocations: 3.953 kB / 441.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.1523, allocations: 0 / 441.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.1523, allocations: 4 kB / 441.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.447e-05/0.1524, allocations: 15.91 kB / 441.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.1524, allocations: 7.938 kB / 441.8 MB, free: 13.47 MB / 382.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.0001251/0.1525, allocations: 155.5 kB / 441.9 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.1525, allocations: 11.91 kB / 441.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.369e-05/0.1526, allocations: 4.375 kB / 441.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1526, allocations: 0 / 441.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1526, allocations: 3.953 kB / 441.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1526, allocations: 0 / 441.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.1527, allocations: 173.6 kB / 442.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1527, allocations: 4 kB / 442.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-06/0.1528, allocations: 0 / 442.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.1528, allocations: 3.938 kB / 442.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.1528, allocations: 4 kB / 442.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1528, allocations: 0 / 442.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1528, allocations: 0 / 442.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002693/0.1531, allocations: 222.5 kB / 442.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.327e-05/0.1531, allocations: 85.02 kB / 442.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/0.1532, allocations: 0 / 442.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.481e-05/0.1532, allocations: 8.031 kB / 442.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.498e-05/0.1532, allocations: 3.984 kB / 442.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.1532, allocations: 4 kB / 442.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.728e-05/0.1533, allocations: 99.72 kB / 442.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1533, allocations: 0 / 442.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001111/0.1544, allocations: 307.9 kB / 442.8 MB, free: 12.29 MB / 382.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.001724/0.1562, allocations: 1.005 MB / 443.8 MB, free: 11.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002601/0.1564, allocations: 199.3 kB / 444 MB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1565, allocations: 0 / 444 MB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.1566, allocations: 151.4 kB / 444.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002488/0.1569, allocations: 16.06 kB / 444.2 MB, free: 10.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.1582, allocations: 0.8024 MB / 445 MB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.1586, allocations: 0.7004 MB / 445.7 MB, free: 9.297 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.78e-05/0.1586, allocations: 0 / 445.7 MB, free: 9.297 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.113e-05/0.1587, allocations: 15.44 kB / 445.7 MB, free: 9.281 MB / 382.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1587, allocations: 0 / 445.7 MB, free: 9.281 MB / 382.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].