Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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_matrixTrDat3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_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.0007174/0.0007174, allocations: 85.81 kB / 16.32 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.0009057/0.0009057, allocations: 181.4 kB / 17.21 MB, free: 6.316 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.706/1.706, allocations: 205.4 MB / 223.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3417/0.3417, allocations: 38.05 MB / 309.7 MB, free: 8.871 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.000497/0.000497, allocations: 12 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1397, allocations: 56.33 MB / 433 MB, free: 6.605 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003166/0.143, allocations: 1.764 MB / 434.7 MB, free: 4.824 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003677/0.1467, allocations: 1.951 MB / 436.7 MB, free: 2.863 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.929e-05/0.1468, allocations: 0 / 436.7 MB, free: 2.863 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.147, allocations: 11.92 kB / 436.7 MB, free: 2.852 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.1471, allocations: 31.89 kB / 436.7 MB, free: 2.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00284/0.15, allocations: 0.6397 MB / 437.4 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001803/0.1502, allocations: 103.6 kB / 437.5 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.626e-05/0.1502, allocations: 8.172 kB / 437.5 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.1504, allocations: 35.78 kB / 437.5 MB, free: 2.035 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.1505, allocations: 55.81 kB / 437.6 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/0.1505, allocations: 8 kB / 437.6 MB, free: 1.973 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002455/0.153, allocations: 1.057 MB / 438.6 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.853e-05/0.1531, allocations: 43.89 kB / 438.7 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.045e-05/0.1531, allocations: 45.56 kB / 438.7 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001574/0.1547, allocations: 0.9359 MB / 439.6 MB, free: 15.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1547, allocations: 0 / 439.6 MB, free: 15.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1547, allocations: 0 / 439.6 MB, free: 15.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.1547, allocations: 0 / 439.6 MB, free: 15.88 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001257/0.156, allocations: 0.5939 MB / 440.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.1561, allocations: 8.031 kB / 440.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.891e-05/0.1562, allocations: 46.55 kB / 440.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.1562, allocations: 19.72 kB / 440.3 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.1565, allocations: 202.8 kB / 440.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.1566, allocations: 0 / 440.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.545e-05/0.1566, allocations: 7.938 kB / 440.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002644/0.1569, allocations: 138.6 kB / 440.6 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1569, allocations: 4 kB / 440.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.1569, allocations: 0 / 440.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.1569, allocations: 3.938 kB / 440.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001627/0.1571, allocations: 96.28 kB / 440.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003421/0.1575, allocations: 218 kB / 441 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.1577, allocations: 154.9 kB / 441.1 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.1579, allocations: 153.1 kB / 441.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.939e-06/0.1579, allocations: 0 / 441.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.1579, allocations: 34.56 kB / 441.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.403e-06/0.1579, allocations: 0 / 441.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007525/0.1587, allocations: 0.4919 MB / 441.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000152/0.1589, allocations: 101.1 kB / 441.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.1591, allocations: 174.4 kB / 442.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.1591, allocations: 25.7 kB / 442.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.621e-05/0.1592, allocations: 104.8 kB / 442.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.1593, allocations: 126.1 kB / 442.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-06/0.1594, allocations: 4.031 kB / 442.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.1595, allocations: 334.8 kB / 442.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/0.1597, allocations: 103.9 kB / 442.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/0.1598, allocations: 95.95 kB / 442.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.16, allocations: 186.9 kB / 443 MB, free: 12.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1601, allocations: 0 / 443 MB, free: 12.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004165/0.1605, allocations: 342.9 kB / 443.4 MB, free: 11.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.1606, allocations: 85.55 kB / 443.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.1606, allocations: 0 / 443.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.1606, allocations: 8.016 kB / 443.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.603e-06/0.1606, allocations: 0 / 443.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1607, allocations: 0 / 443.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.522e-05/0.1607, allocations: 23.73 kB / 443.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.1608, allocations: 12 kB / 443.5 MB, free: 11.78 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.0002446/0.161, allocations: 227.4 kB / 443.7 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.077e-05/0.1611, allocations: 27.72 kB / 443.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.719e-05/0.1611, allocations: 10.66 kB / 443.7 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1611, allocations: 0 / 443.7 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.1612, allocations: 11.89 kB / 443.7 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1612, allocations: 3.938 kB / 443.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002284/0.1614, allocations: 237.3 kB / 444 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.1614, allocations: 0 / 444 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-07/0.1614, allocations: 3.938 kB / 444 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.1614, allocations: 4 kB / 444 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.1615, allocations: 8 kB / 444 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.1615, allocations: 3.984 kB / 444 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1615, allocations: 3.984 kB / 444 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.1626, allocations: 0.916 MB / 444.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.811e-05/0.1627, allocations: 100.8 kB / 445 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.1627, allocations: 4 kB / 445 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.12e-05/0.1628, allocations: 8 kB / 445 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.854e-05/0.1628, allocations: 8 kB / 445 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.1628, allocations: 11.98 kB / 445.1 MB, free: 10.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001197/0.163, allocations: 119.2 kB / 445.2 MB, free: 9.977 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.163, allocations: 0 / 445.2 MB, free: 9.977 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001332/0.1643, allocations: 355.9 kB / 445.5 MB, free: 9.629 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.003039/0.1674, allocations: 1.722 MB / 447.2 MB, free: 7.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001536/0.1689, allocations: 1.593 MB / 448.8 MB, free: 6.262 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1689, allocations: 4.094 kB / 448.8 MB, free: 6.258 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.1701, allocations: 1.374 MB / 450.2 MB, free: 4.871 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.1704, allocations: 16 kB / 450.2 MB, free: 4.855 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003505/0.174, allocations: 2.062 MB / 452.3 MB, free: 2.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005155/0.1745, allocations: 0.7559 MB / 453 MB, free: 1.965 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.903e-05/0.1745, allocations: 0 / 453 MB, free: 1.965 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.544e-05/0.1746, allocations: 47.42 kB / 453.1 MB, free: 1.918 MB / 382.1 MB Notification: Performance of SimCode: time 1.061e-06/0.1746, allocations: 0 / 453.1 MB, free: 1.918 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].