Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_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.001029/0.001029, allocations: 81.31 kB / 16.31 MB, free: 6.449 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.00124/0.001241, allocations: 180 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.771/1.771, allocations: 205.4 MB / 223.4 MB, free: 5.781 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.4033/0.4033, allocations: 38.06 MB / 309.7 MB, free: 8.852 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.0005513/0.0005515, allocations: 19.94 kB / 376.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1426, allocations: 56.33 MB / 433 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003244/0.1459, allocations: 1.764 MB / 434.7 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003395/0.1493, allocations: 1.951 MB / 436.7 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.747e-05/0.1495, allocations: 0 / 436.7 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.1496, allocations: 15.92 kB / 436.7 MB, free: 2.977 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001169/0.1497, allocations: 27.89 kB / 436.7 MB, free: 2.949 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002521/0.1523, allocations: 0.6552 MB / 437.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.1525, allocations: 91.66 kB / 437.5 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.139e-05/0.1525, allocations: 16.14 kB / 437.5 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.1526, allocations: 27.86 kB / 437.5 MB, free: 2.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.1527, allocations: 51.81 kB / 437.5 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.1528, allocations: 4 kB / 437.6 MB, free: 2.105 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002494/0.1553, allocations: 1.057 MB / 438.6 MB, free: 1.047 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.205e-05/0.1554, allocations: 31.91 kB / 438.6 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.34e-05/0.1554, allocations: 37.64 kB / 438.7 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002065/0.1575, allocations: 0.9242 MB / 439.6 MB, free: 48 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.1575, allocations: 4 kB / 439.6 MB, free: 44 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1575, allocations: 0 / 439.6 MB, free: 44 kB / 366.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1575, allocations: 0 / 439.6 MB, free: 44 kB / 366.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.001213/0.1588, allocations: 0.5434 MB / 440.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.087e-05/0.1588, allocations: 8.031 kB / 440.2 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.18e-05/0.1589, allocations: 46.56 kB / 440.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.451e-05/0.1589, allocations: 11.81 kB / 440.2 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000236/0.1592, allocations: 198.8 kB / 440.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.1592, allocations: 0 / 440.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.1592, allocations: 4 kB / 440.4 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002002/0.1594, allocations: 101.5 kB / 440.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1595, allocations: 0 / 440.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.1595, allocations: 0 / 440.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.1595, allocations: 0 / 440.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001043/0.1596, allocations: 67.91 kB / 440.6 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002967/0.1599, allocations: 189.5 kB / 440.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.16, allocations: 102.5 kB / 440.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.607e-05/0.1601, allocations: 92.86 kB / 441 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.1602, allocations: 0 / 441 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001004/0.1603, allocations: 30.56 kB / 441 MB, free: 14.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 9.32e-07/0.1603, allocations: 0 / 441 MB, free: 14.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005999/0.1609, allocations: 331.1 kB / 441.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.569e-05/0.161, allocations: 101.1 kB / 441.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.1611, allocations: 146.2 kB / 441.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.1611, allocations: 25.7 kB / 441.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.508e-05/0.1612, allocations: 96.58 kB / 441.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.628e-05/0.1613, allocations: 74.89 kB / 441.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.089e-06/0.1614, allocations: 0 / 441.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1615, allocations: 334.8 kB / 442.1 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.976e-05/0.1616, allocations: 52.02 kB / 442.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.049e-05/0.1617, allocations: 63.97 kB / 442.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.1619, allocations: 135.1 kB / 442.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1619, allocations: 0 / 442.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002915/0.1622, allocations: 234.9 kB / 442.5 MB, free: 12.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.717e-05/0.1623, allocations: 69.56 kB / 442.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.1623, allocations: 0 / 442.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.1623, allocations: 3.953 kB / 442.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.352e-06/0.1623, allocations: 0 / 442.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.1623, allocations: 0 / 442.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.794e-05/0.1624, allocations: 15.84 kB / 442.6 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.1624, allocations: 8.062 kB / 442.6 MB, free: 12.75 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.0001788/0.1626, allocations: 199.5 kB / 442.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.741e-05/0.1626, allocations: 15.81 kB / 442.8 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.067e-05/0.1627, allocations: 9.188 kB / 442.9 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.1627, allocations: 0 / 442.9 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/0.1627, allocations: 3.953 kB / 442.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.1627, allocations: 3.938 kB / 442.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/0.1629, allocations: 209.4 kB / 443.1 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1629, allocations: 0 / 443.1 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.273e-06/0.1629, allocations: 4 kB / 443.1 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.1629, allocations: 0 / 443.1 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.1629, allocations: 4 kB / 443.1 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.163, allocations: 4 kB / 443.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.163, allocations: 0 / 443.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006741/0.1636, allocations: 0.5216 MB / 443.6 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.698e-05/0.1637, allocations: 92.86 kB / 443.7 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.159e-05/0.1638, allocations: 8 kB / 443.7 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.217e-05/0.1638, allocations: 12.02 kB / 443.7 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.76e-05/0.1639, allocations: 7.938 kB / 443.7 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.1639, allocations: 4 kB / 443.7 MB, free: 11.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001761/0.1641, allocations: 119.2 kB / 443.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1641, allocations: 0 / 443.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001386/0.1655, allocations: 331.9 kB / 444.2 MB, free: 11.11 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.002461/0.1679, allocations: 1.317 MB / 445.5 MB, free: 9.754 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008517/0.1688, allocations: 0.71 MB / 446.2 MB, free: 9.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1688, allocations: 0 / 446.2 MB, free: 9.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006104/0.1694, allocations: 0.5735 MB / 446.8 MB, free: 8.445 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.1697, allocations: 12.16 kB / 446.8 MB, free: 8.434 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.172, allocations: 1.462 MB / 448.2 MB, free: 6.926 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.1726, allocations: 0.7241 MB / 449 MB, free: 6.176 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.735e-05/0.1726, allocations: 4 kB / 449 MB, free: 6.172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.414e-05/0.1727, allocations: 35.42 kB / 449 MB, free: 6.137 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1727, allocations: 0 / 449 MB, free: 6.137 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].