Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001497/0.001497, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.622/1.622, allocations: 205.4 MB / 223.5 MB, free: 9.02 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.000818/0.000818, allocations: 97.41 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.1673/0.1673, allocations: 38.08 MB / 358.2 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000335/0.000335, allocations: 12 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2533, allocations: 56.32 MB / 481.6 MB, free: 9.594 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1309/0.3843, allocations: 92.58 MB / 0.5607 GB, free: 9.684 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.3845, allocations: 83.75 kB / 0.5608 GB, free: 9.605 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04165/0.4262, allocations: 12.17 MB / 0.5727 GB, free: 13.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4263, allocations: 4 kB / 0.5727 GB, free: 13.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.4263, allocations: 0 / 0.5727 GB, free: 13.41 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001044/0.4273, allocations: 0.5861 MB / 0.5732 GB, free: 12.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.4274, allocations: 8.031 kB / 0.5732 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.832e-05/0.4274, allocations: 16.75 kB / 0.5733 GB, free: 12.74 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.4277, allocations: 188.1 kB / 0.5734 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.4277, allocations: 4.359 kB / 0.5734 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.4277, allocations: 384 / 0.5734 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.4279, allocations: 102.4 kB / 0.5735 GB, free: 12.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.4279, allocations: 4.188 kB / 0.5735 GB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.4279, allocations: 3.938 kB / 0.5735 GB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.428, allocations: 0 / 0.5735 GB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.431e-05/0.4281, allocations: 59.97 kB / 0.5736 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002269/0.4283, allocations: 197.3 kB / 0.5738 GB, free: 12.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001372/0.4284, allocations: 98.55 kB / 0.5739 GB, free: 11.99 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.4286, allocations: 84.86 kB / 0.574 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.712e-06/0.4286, allocations: 3.938 kB / 0.574 GB, free: 11.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.4286, allocations: 34.56 kB / 0.574 GB, free: 11.86 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.4286, allocations: 4 kB / 0.574 GB, free: 11.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004976/0.4291, allocations: 311.5 kB / 0.5743 GB, free: 11.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.994e-05/0.4292, allocations: 89.11 kB / 0.5744 GB, free: 11.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.4294, allocations: 154.7 kB / 0.5745 GB, free: 11.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.4294, allocations: 25.7 kB / 0.5746 GB, free: 11.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.652e-05/0.4295, allocations: 100.6 kB / 0.5747 GB, free: 11.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.373e-05/0.4296, allocations: 86.77 kB / 0.5747 GB, free: 11.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-06/0.4296, allocations: 0 / 0.5747 GB, free: 11.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4297, allocations: 326.8 kB / 0.5751 GB, free: 10.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.672e-05/0.4298, allocations: 59.97 kB / 0.5751 GB, free: 10.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.669e-05/0.4299, allocations: 64.72 kB / 0.5752 GB, free: 10.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/0.4302, allocations: 244.2 kB / 0.5754 GB, free: 10.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4302, allocations: 0 / 0.5754 GB, free: 10.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003109/0.4305, allocations: 227.1 kB / 0.5756 GB, free: 10.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.957e-05/0.4306, allocations: 61.66 kB / 0.5757 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4306, allocations: 8 kB / 0.5757 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.4306, allocations: 4 kB / 0.5757 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.163e-06/0.4306, allocations: 0 / 0.5757 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.4306, allocations: 3.938 kB / 0.5757 GB, free: 10.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.212e-05/0.4307, allocations: 11.84 kB / 0.5757 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.56e-05/0.4307, allocations: 11.98 kB / 0.5757 GB, free: 10.01 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.0001689/0.4309, allocations: 195.4 kB / 0.5759 GB, free: 9.801 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.4309, allocations: 19.75 kB / 0.5759 GB, free: 9.781 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.327e-05/0.431, allocations: 17.12 kB / 0.5759 GB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.431, allocations: 4 kB / 0.5759 GB, free: 9.762 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.431, allocations: 0 / 0.5759 GB, free: 9.762 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.431, allocations: 0 / 0.5759 GB, free: 9.762 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.4312, allocations: 209.4 kB / 0.5761 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4312, allocations: 0 / 0.5761 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.4312, allocations: 0 / 0.5761 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.4312, allocations: 0 / 0.5761 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.4312, allocations: 11.88 kB / 0.5762 GB, free: 9.496 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.4312, allocations: 0 / 0.5762 GB, free: 9.496 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4312, allocations: 0 / 0.5762 GB, free: 9.496 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005799/0.4318, allocations: 0.5139 MB / 0.5767 GB, free: 8.957 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.517e-05/0.4319, allocations: 88.92 kB / 0.5767 GB, free: 8.852 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.062e-05/0.4319, allocations: 11.94 kB / 0.5768 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.785e-05/0.4319, allocations: 8 kB / 0.5768 GB, free: 8.832 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.978e-05/0.432, allocations: 0 / 0.5768 GB, free: 8.832 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.432, allocations: 11.98 kB / 0.5768 GB, free: 8.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.994e-05/0.4321, allocations: 115.1 kB / 0.5769 GB, free: 8.707 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4321, allocations: 3.938 kB / 0.5769 GB, free: 8.703 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001251/0.4334, allocations: 371.6 kB / 0.5772 GB, free: 8.34 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.001708/0.4351, allocations: 422 kB / 0.5776 GB, free: 7.922 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008004/0.4359, allocations: 0.7023 MB / 0.5783 GB, free: 7.207 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4359, allocations: 0 / 0.5783 GB, free: 7.207 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005127/0.4364, allocations: 0.5696 MB / 0.5789 GB, free: 6.625 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.4367, allocations: 12.12 kB / 0.5789 GB, free: 6.613 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007912/0.4375, allocations: 0.5003 MB / 0.5794 GB, free: 6.082 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.4379, allocations: 0.728 MB / 0.5801 GB, free: 5.328 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.569e-05/0.4379, allocations: 4 kB / 0.5801 GB, free: 5.324 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.819e-05/0.4379, allocations: 7.438 kB / 0.5801 GB, free: 5.316 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4379, allocations: 0 / 0.5801 GB, free: 5.316 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].