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.001153/0.001153, allocations: 111.4 kB / 17.06 MB, free: 5.969 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.001319/0.001319, allocations: 200 kB / 18.01 MB, free: 5.055 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.337/1.337, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2045/0.2045, allocations: 37.99 MB / 309.2 MB, free: 5.941 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.002375/0.002375, allocations: 64.28 kB / 431.4 MB, free: 16.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1353, allocations: 55.24 MB / 486.6 MB, free: 8.828 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.004367/0.1397, allocations: 2.099 MB / 488.7 MB, free: 6.711 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003598/0.1434, allocations: 2.074 MB / 490.8 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.1435, allocations: 0 / 490.8 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.1438, allocations: 19.84 kB / 490.8 MB, free: 4.605 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001501/0.1439, allocations: 27.84 kB / 490.8 MB, free: 4.578 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeClassSections: time 0.002917/0.1469, allocations: 0.8369 MB / 491.7 MB, free: 3.742 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002199/0.1471, allocations: 75.69 kB / 491.8 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.28e-05/0.1472, allocations: 4.188 kB / 491.8 MB, free: 3.664 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.1473, allocations: 31.91 kB / 491.8 MB, free: 3.633 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.62e-05/0.1474, allocations: 39.77 kB / 491.8 MB, free: 3.594 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.603e-05/0.1474, allocations: 4 kB / 491.8 MB, free: 3.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002674/0.1501, allocations: 1.415 MB / 493.2 MB, free: 2.172 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.285e-05/0.1502, allocations: 15.92 kB / 493.3 MB, free: 2.156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.448e-05/0.1502, allocations: 31.78 kB / 493.3 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002466/0.1527, allocations: 1.322 MB / 494.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1528, allocations: 0 / 494.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1528, allocations: 4 kB / 494.6 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1528, allocations: 0 / 494.6 MB, free: 0.7969 MB / 366.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.0009633/0.1537, allocations: 0.5163 MB / 495.1 MB, free: 232 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1538, allocations: 19.89 kB / 495.2 MB, free: 212 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.169e-05/0.1539, allocations: 34.75 kB / 495.2 MB, free: 168 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.948e-05/0.1539, allocations: 8.844 kB / 495.2 MB, free: 160 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002503/0.1542, allocations: 195 kB / 495.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.1542, allocations: 0 / 495.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.1542, allocations: 7.938 kB / 495.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.1544, allocations: 65.67 kB / 495.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.1544, allocations: 0 / 495.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.1544, allocations: 4 kB / 495.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1544, allocations: 0 / 495.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.479e-05/0.1545, allocations: 35.98 kB / 495.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001692/0.1547, allocations: 165.6 kB / 495.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.1548, allocations: 58.56 kB / 495.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.029e-05/0.1548, allocations: 52.8 kB / 495.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-06/0.1549, allocations: 0 / 495.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.1549, allocations: 34.56 kB / 495.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.1549, allocations: 224 / 495.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003321/0.1552, allocations: 199.1 kB / 496 MB, free: 15.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.1553, allocations: 93.09 kB / 496.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.1554, allocations: 125.8 kB / 496.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.1554, allocations: 29.7 kB / 496.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.988e-05/0.1555, allocations: 88.14 kB / 496.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.209e-05/0.1556, allocations: 43.3 kB / 496.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.735e-05/0.1556, allocations: 21.7 kB / 496.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1558, allocations: 326.8 kB / 496.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.38e-05/0.1558, allocations: 39.95 kB / 496.7 MB, free: 14.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.025e-05/0.1559, allocations: 31.98 kB / 496.8 MB, free: 14.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.156, allocations: 164.2 kB / 496.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.156, allocations: 0 / 496.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001923/0.1562, allocations: 155.2 kB / 497.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.426e-05/0.1563, allocations: 45.69 kB / 497.1 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1563, allocations: 3.984 kB / 497.1 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.1563, allocations: 0 / 497.1 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.1564, allocations: 4 kB / 497.1 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.1564, allocations: 64 / 497.1 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.308e-05/0.1564, allocations: 7.938 kB / 497.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.1565, allocations: 4 kB / 497.2 MB, free: 13.98 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001405/0.1566, allocations: 175.4 kB / 497.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/0.1566, allocations: 7.906 kB / 497.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.931e-05/0.1567, allocations: 12.7 kB / 497.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1567, allocations: 0 / 497.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.1567, allocations: 0 / 497.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1567, allocations: 3.938 kB / 497.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001435/0.1568, allocations: 177.5 kB / 497.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1568, allocations: 4 kB / 497.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.224e-06/0.1569, allocations: 3.984 kB / 497.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1569, allocations: 4 kB / 497.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.1569, allocations: 0 / 497.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1569, allocations: 4 kB / 497.5 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1569, allocations: 0 / 497.5 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003471/0.1572, allocations: 286.5 kB / 497.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.099e-05/0.1573, allocations: 92.94 kB / 497.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.1573, allocations: 8.031 kB / 497.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.872e-05/0.1574, allocations: 0 / 497.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.98e-05/0.1574, allocations: 8 kB / 497.9 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.1574, allocations: 11.88 kB / 497.9 MB, free: 13.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.774e-05/0.1575, allocations: 95.27 kB / 498 MB, free: 13 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1575, allocations: 0 / 498 MB, free: 13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001023/0.1585, allocations: 327.9 kB / 498.4 MB, free: 12.68 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001852/0.1604, allocations: 1.079 MB / 499.4 MB, free: 11.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003702/0.1608, allocations: 295.3 kB / 499.7 MB, free: 11.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1608, allocations: 0 / 499.7 MB, free: 11.26 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.161, allocations: 231.3 kB / 499.9 MB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.1613, allocations: 12.09 kB / 500 MB, free: 11.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002607/0.1639, allocations: 1.934 MB / 0.4901 GB, free: 8.988 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.1643, allocations: 0.7041 MB / 0.4908 GB, free: 8.258 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.844e-05/0.1644, allocations: 3.938 kB / 0.4908 GB, free: 8.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.265e-05/0.1644, allocations: 19.38 kB / 0.4908 GB, free: 8.234 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1644, allocations: 4 kB / 0.4908 GB, free: 8.23 MB / 382.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].