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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001406/0.001406, allocations: 172.1 kB / 17.39 MB, free: 4.164 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.747/1.747, allocations: 205.4 MB / 223.5 MB, free: 9.012 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.0008395/0.0008395, allocations: 82.42 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1873/0.1873, allocations: 38.08 MB / 358.2 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.000366, allocations: 16 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.304, allocations: 56.32 MB / 481.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1209/0.4249, allocations: 92.58 MB / 0.5607 GB, free: 9.688 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.4252, allocations: 87.81 kB / 0.5608 GB, free: 9.605 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04329/0.4685, allocations: 12.01 MB / 0.5725 GB, free: 13.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.4686, allocations: 0 / 0.5725 GB, free: 13.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.4686, allocations: 4 kB / 0.5725 GB, free: 13.57 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.0008562/0.4695, allocations: 0.5356 MB / 0.573 GB, free: 12.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.4695, allocations: 15.98 kB / 0.573 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.37e-05/0.4696, allocations: 16.83 kB / 0.5731 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.4697, allocations: 194.4 kB / 0.5732 GB, free: 12.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.452e-06/0.4698, allocations: 384 / 0.5732 GB, free: 12.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.4698, allocations: 384 / 0.5732 GB, free: 12.72 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001204/0.4699, allocations: 66.23 kB / 0.5733 GB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.441e-06/0.4699, allocations: 4.125 kB / 0.5733 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.4699, allocations: 7.938 kB / 0.5733 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.4699, allocations: 0 / 0.5733 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.783e-05/0.47, allocations: 31.98 kB / 0.5733 GB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.4701, allocations: 169.6 kB / 0.5735 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.195e-05/0.4702, allocations: 58.5 kB / 0.5736 GB, free: 12.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.441e-05/0.4703, allocations: 48.88 kB / 0.5736 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.4703, allocations: 0 / 0.5736 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.4703, allocations: 34.56 kB / 0.5736 GB, free: 12.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 9.42e-07/0.4703, allocations: 0 / 0.5736 GB, free: 12.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002719/0.4706, allocations: 195.1 kB / 0.5738 GB, free: 12.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/0.4707, allocations: 85.11 kB / 0.5739 GB, free: 11.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.4708, allocations: 133.8 kB / 0.574 GB, free: 11.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.4708, allocations: 25.7 kB / 0.5741 GB, free: 11.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.071e-05/0.4709, allocations: 96.12 kB / 0.5742 GB, free: 11.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.023e-05/0.4709, allocations: 39.58 kB / 0.5742 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/0.471, allocations: 4.031 kB / 0.5742 GB, free: 11.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.4711, allocations: 326.8 kB / 0.5745 GB, free: 11.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.329e-05/0.4711, allocations: 27.98 kB / 0.5745 GB, free: 11.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.955e-05/0.4712, allocations: 31.98 kB / 0.5746 GB, free: 11.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.4713, allocations: 156.6 kB / 0.5747 GB, free: 11.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.4713, allocations: 0 / 0.5747 GB, free: 11.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001655/0.4715, allocations: 155.2 kB / 0.5749 GB, free: 10.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.334e-05/0.4716, allocations: 51.5 kB / 0.5749 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.4716, allocations: 0 / 0.5749 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.4716, allocations: 64 / 0.5749 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.4716, allocations: 4 kB / 0.5749 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.4716, allocations: 0 / 0.5749 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.648e-05/0.4716, allocations: 8 kB / 0.5749 GB, free: 10.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.4717, allocations: 7.984 kB / 0.5749 GB, free: 10.82 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.0001135/0.4718, allocations: 167.5 kB / 0.5751 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.04e-05/0.4718, allocations: 23.72 kB / 0.5751 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.396e-05/0.4718, allocations: 4.719 kB / 0.5751 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.4719, allocations: 0 / 0.5751 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.4719, allocations: 4 kB / 0.5751 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.4719, allocations: 4 kB / 0.5751 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.472, allocations: 185.5 kB / 0.5753 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.472, allocations: 0 / 0.5753 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.472, allocations: 0 / 0.5753 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.472, allocations: 3.938 kB / 0.5753 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.472, allocations: 4 kB / 0.5753 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.472, allocations: 0 / 0.5753 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4721, allocations: 0 / 0.5753 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.4724, allocations: 290.6 kB / 0.5756 GB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.4724, allocations: 89 kB / 0.5757 GB, free: 9.953 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.4724, allocations: 7.938 kB / 0.5757 GB, free: 9.945 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.486e-05/0.4725, allocations: 0 / 0.5757 GB, free: 9.945 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.142e-05/0.4725, allocations: 7.984 kB / 0.5757 GB, free: 9.938 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.4725, allocations: 4 kB / 0.5757 GB, free: 9.934 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.963e-05/0.4726, allocations: 95.27 kB / 0.5758 GB, free: 9.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4726, allocations: 0 / 0.5758 GB, free: 9.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008986/0.4735, allocations: 367.5 kB / 0.5761 GB, free: 9.48 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.0008162/0.4743, allocations: 409.7 kB / 0.5765 GB, free: 9.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000305/0.4746, allocations: 291.2 kB / 0.5768 GB, free: 8.773 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4746, allocations: 8 kB / 0.5768 GB, free: 8.766 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.4748, allocations: 223.3 kB / 0.577 GB, free: 8.535 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001849/0.475, allocations: 8 kB / 0.577 GB, free: 8.527 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000431/0.4755, allocations: 331.5 kB / 0.5773 GB, free: 8.176 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.4757, allocations: 0.7083 MB / 0.578 GB, free: 7.441 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.957e-06/0.4758, allocations: 0 / 0.578 GB, free: 7.441 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.699e-06/0.4758, allocations: 11.44 kB / 0.578 GB, free: 7.434 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4758, allocations: 0 / 0.578 GB, free: 7.434 MB / 410.7 MB [CodegenCFunctions.tpl:5450:13-5450:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].