Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.001047/0.001047, allocations: 86.22 kB / 16.31 MB, free: 6.457 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.001315/0.001315, allocations: 180.7 kB / 17.21 MB, free: 6.328 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.759/1.759, allocations: 205.4 MB / 223.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3766/0.3766, allocations: 38.06 MB / 309.7 MB, free: 8.914 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.0005432/0.0005434, allocations: 16 kB / 376.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1371, allocations: 56.32 MB / 432.9 MB, free: 6.625 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002783/0.14, allocations: 1.768 MB / 434.7 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003327/0.1433, allocations: 1.951 MB / 436.7 MB, free: 2.879 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.692e-05/0.1434, allocations: 3.938 kB / 436.7 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.1435, allocations: 7.984 kB / 436.7 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.128e-05/0.1436, allocations: 23.84 kB / 436.7 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001713/0.1453, allocations: 0.6553 MB / 437.4 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001505/0.1455, allocations: 99.7 kB / 437.5 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.199e-05/0.1456, allocations: 4.172 kB / 437.5 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.23e-05/0.1457, allocations: 31.86 kB / 437.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.731e-05/0.1458, allocations: 51.75 kB / 437.5 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.1458, allocations: 0 / 437.5 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001866/0.1477, allocations: 1.053 MB / 438.6 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.648e-05/0.1477, allocations: 19.91 kB / 438.6 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.586e-05/0.1478, allocations: 37.64 kB / 438.6 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001354/0.1491, allocations: 0.9164 MB / 439.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1492, allocations: 0 / 439.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1492, allocations: 0 / 439.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1492, allocations: 0 / 439.6 MB, free: 15.97 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0009628/0.1501, allocations: 0.5044 MB / 440.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.1502, allocations: 12.03 kB / 440.1 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.353e-05/0.1503, allocations: 38.55 kB / 440.1 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.881e-05/0.1503, allocations: 7.906 kB / 440.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.1505, allocations: 186.8 kB / 440.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.744e-06/0.1505, allocations: 0 / 440.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.1506, allocations: 4 kB / 440.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001784/0.1508, allocations: 69.62 kB / 440.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1508, allocations: 15.86 kB / 440.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.1508, allocations: 0 / 440.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1508, allocations: 0 / 440.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.263e-05/0.1509, allocations: 31.98 kB / 440.4 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001718/0.1511, allocations: 161.7 kB / 440.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.1512, allocations: 66.55 kB / 440.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.641e-05/0.1513, allocations: 44.88 kB / 440.7 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.751e-06/0.1513, allocations: 0 / 440.7 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.1513, allocations: 34.56 kB / 440.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 3.136e-06/0.1513, allocations: 0 / 440.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003953/0.1517, allocations: 191.5 kB / 440.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.437e-05/0.1518, allocations: 93.09 kB / 441 MB, free: 14.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.1519, allocations: 134 kB / 441.1 MB, free: 14.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.152, allocations: 25.7 kB / 441.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.309e-05/0.152, allocations: 92.14 kB / 441.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.515e-05/0.1521, allocations: 43.52 kB / 441.3 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.1521, allocations: 0 / 441.3 MB, free: 14.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1523, allocations: 326.8 kB / 441.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.188e-05/0.1523, allocations: 31.98 kB / 441.6 MB, free: 13.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.641e-05/0.1524, allocations: 35.91 kB / 441.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.1525, allocations: 77.67 kB / 441.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1525, allocations: 4.031 kB / 441.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002486/0.1528, allocations: 155.2 kB / 441.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.057e-05/0.1528, allocations: 45.69 kB / 442 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1529, allocations: 0 / 442 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1529, allocations: 11.94 kB / 442 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.1529, allocations: 0 / 442 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1529, allocations: 0 / 442 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.219e-05/0.153, allocations: 4 kB / 442 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.999e-05/0.153, allocations: 3.938 kB / 442 MB, free: 13.29 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.000142/0.1531, allocations: 167.5 kB / 442.1 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.039e-05/0.1532, allocations: 11.81 kB / 442.1 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.063e-05/0.1532, allocations: 12.72 kB / 442.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.1532, allocations: 7.922 kB / 442.2 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1532, allocations: 3.953 kB / 442.2 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1532, allocations: 0 / 442.2 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.1534, allocations: 177.6 kB / 442.3 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1534, allocations: 0 / 442.3 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1534, allocations: 4 kB / 442.3 MB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1534, allocations: 0 / 442.3 MB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.1534, allocations: 8 kB / 442.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1534, allocations: 0 / 442.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1534, allocations: 4 kB / 442.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003511/0.1538, allocations: 286.5 kB / 442.6 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.49e-05/0.1539, allocations: 85.02 kB / 442.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.1539, allocations: 3.984 kB / 442.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.83e-05/0.1539, allocations: 4 kB / 442.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.19e-05/0.154, allocations: 4 kB / 442.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.154, allocations: 4.031 kB / 442.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.476e-05/0.1541, allocations: 107.2 kB / 442.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1541, allocations: 0 / 442.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001098/0.1552, allocations: 323.9 kB / 443.2 MB, free: 12 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.001941/0.1571, allocations: 1.071 MB / 444.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004512/0.1576, allocations: 299.2 kB / 444.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1576, allocations: 0 / 444.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002038/0.1578, allocations: 227.3 kB / 444.7 MB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.1581, allocations: 4 kB / 444.7 MB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.1596, allocations: 0.9781 MB / 445.7 MB, free: 9.324 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.16, allocations: 0.7083 MB / 446.4 MB, free: 8.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.312e-05/0.16, allocations: 3.938 kB / 446.4 MB, free: 8.586 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.16, allocations: 27.42 kB / 446.5 MB, free: 8.559 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1601, allocations: 0 / 446.5 MB, free: 8.559 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].