Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008991/0.0008991, allocations: 179.5 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.265/1.265, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007935/0.0007935, allocations: 95.8 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1596/0.1596, allocations: 38.07 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002801/0.0002803, allocations: 12 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2786, allocations: 56.32 MB / 480.4 MB, free: 9.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1309/0.4096, allocations: 92.53 MB / 0.5595 GB, free: 9.891 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.4099, allocations: 83.94 kB / 0.5596 GB, free: 9.809 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04165/0.4516, allocations: 11.98 MB / 0.5713 GB, free: 13.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4516, allocations: 0 / 0.5713 GB, free: 13.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.4517, allocations: 0 / 0.5713 GB, free: 13.81 MB / 410.7 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.001063/0.4527, allocations: 0.5509 MB / 0.5718 GB, free: 13.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.4528, allocations: 8.031 kB / 0.5718 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.009e-05/0.4528, allocations: 38.55 kB / 0.5719 GB, free: 13.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.675e-05/0.4529, allocations: 15.86 kB / 0.5719 GB, free: 13.13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.4531, allocations: 185.4 kB / 0.5721 GB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.4531, allocations: 0 / 0.5721 GB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.4532, allocations: 0 / 0.5721 GB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/0.4533, allocations: 69.61 kB / 0.5721 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.4533, allocations: 0 / 0.5721 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.4534, allocations: 0 / 0.5721 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.4534, allocations: 0 / 0.5721 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.935e-05/0.4534, allocations: 35.92 kB / 0.5722 GB, free: 12.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002002/0.4536, allocations: 173.5 kB / 0.5723 GB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.826e-05/0.4537, allocations: 63.23 kB / 0.5724 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.049e-06/0.4538, allocations: 0 / 0.5724 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.4538, allocations: 34.59 kB / 0.5724 GB, free: 12.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 9.72e-07/0.4538, allocations: 0 / 0.5724 GB, free: 12.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004057/0.4542, allocations: 276.2 kB / 0.5727 GB, free: 12.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.408e-05/0.4543, allocations: 89.11 kB / 0.5728 GB, free: 12.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.4544, allocations: 113.2 kB / 0.5729 GB, free: 11.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.4544, allocations: 29.95 kB / 0.5729 GB, free: 11.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.585e-05/0.4545, allocations: 92.14 kB / 0.573 GB, free: 11.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.534e-05/0.4546, allocations: 43.38 kB / 0.573 GB, free: 11.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-06/0.4546, allocations: 4 kB / 0.573 GB, free: 11.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4547, allocations: 322.8 kB / 0.5734 GB, free: 11.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.776e-05/0.4548, allocations: 31.98 kB / 0.5734 GB, free: 11.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.845e-05/0.4548, allocations: 27.98 kB / 0.5734 GB, free: 11.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.4549, allocations: 81.67 kB / 0.5735 GB, free: 11.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.455, allocations: 3.938 kB / 0.5735 GB, free: 11.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002116/0.4552, allocations: 151.2 kB / 0.5736 GB, free: 11.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.808e-05/0.4552, allocations: 49.67 kB / 0.5737 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.4553, allocations: 0 / 0.5737 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.4553, allocations: 4 kB / 0.5737 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-06/0.4553, allocations: 4 kB / 0.5737 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.4553, allocations: 0 / 0.5737 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.158e-05/0.4553, allocations: 7.906 kB / 0.5737 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.4554, allocations: 4 kB / 0.5737 GB, free: 11.06 MB / 410.7 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.0001515/0.4555, allocations: 167.5 kB / 0.5739 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.149e-05/0.4556, allocations: 19.86 kB / 0.5739 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.098e-05/0.4556, allocations: 8.719 kB / 0.5739 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.4556, allocations: 3.984 kB / 0.5739 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4556, allocations: 0 / 0.5739 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.4556, allocations: 0 / 0.5739 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.4558, allocations: 181.5 kB / 0.5741 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.4558, allocations: 4 kB / 0.5741 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.4558, allocations: 0 / 0.5741 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.4558, allocations: 0 / 0.5741 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.4558, allocations: 7.984 kB / 0.5741 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4558, allocations: 0 / 0.5741 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.4558, allocations: 4 kB / 0.5741 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003182/0.4561, allocations: 279 kB / 0.5744 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.101e-05/0.4562, allocations: 100.9 kB / 0.5744 GB, free: 10.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.4562, allocations: 4 kB / 0.5745 GB, free: 10.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.667e-05/0.4563, allocations: 0 / 0.5745 GB, free: 10.19 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.856e-05/0.4563, allocations: 4 kB / 0.5745 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.4563, allocations: 4 kB / 0.5745 GB, free: 10.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.233e-05/0.4564, allocations: 105.3 kB / 0.5746 GB, free: 10.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4564, allocations: 0 / 0.5746 GB, free: 10.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001037/0.4574, allocations: 363.5 kB / 0.5749 GB, free: 9.723 MB / 410.7 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.001885/0.4593, allocations: 1.117 MB / 0.576 GB, free: 8.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003292/0.4597, allocations: 299.2 kB / 0.5763 GB, free: 8.266 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4597, allocations: 0 / 0.5763 GB, free: 8.266 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001838/0.4599, allocations: 219.3 kB / 0.5765 GB, free: 8.039 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/0.46, allocations: 11.94 kB / 0.5765 GB, free: 8.027 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.4616, allocations: 0.9979 MB / 0.5775 GB, free: 6.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.4619, allocations: 0.7082 MB / 0.5782 GB, free: 6.246 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.606e-05/0.4619, allocations: 8 kB / 0.5782 GB, free: 6.238 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.283e-05/0.462, allocations: 19.44 kB / 0.5782 GB, free: 6.223 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.462, allocations: 0 / 0.5782 GB, free: 6.223 MB / 410.7 MB [CodegenCFunctions.tpl:5437:13-5437:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].