Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001528/0.001528, allocations: 180.2 kB / 16.38 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.418/1.418, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008262/0.0008262, allocations: 95.33 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1796/0.1796, allocations: 38.05 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002711/0.0002712, allocations: 8 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2906, allocations: 56.32 MB / 480.3 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1253/0.4159, allocations: 92.53 MB / 0.5594 GB, free: 9.902 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4162, allocations: 79.95 kB / 0.5595 GB, free: 9.824 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05044/0.4666, allocations: 12.3 MB / 0.5715 GB, free: 13.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4667, allocations: 0 / 0.5715 GB, free: 13.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.4667, allocations: 4 kB / 0.5715 GB, free: 13.49 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001021/0.4677, allocations: 0.6286 MB / 0.5721 GB, free: 12.81 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4678, allocations: 8.031 kB / 0.5721 GB, free: 12.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.399e-05/0.4678, allocations: 19.75 kB / 0.5721 GB, free: 12.78 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.4681, allocations: 214.6 kB / 0.5724 GB, free: 12.53 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.4681, allocations: 7.938 kB / 0.5724 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.4681, allocations: 0 / 0.5724 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.4683, allocations: 130.6 kB / 0.5725 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.4683, allocations: 0 / 0.5725 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.4684, allocations: 3.938 kB / 0.5725 GB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-06/0.4684, allocations: 8 kB / 0.5725 GB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001152/0.4685, allocations: 92.28 kB / 0.5726 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002468/0.4687, allocations: 210 kB / 0.5728 GB, free: 12.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.4689, allocations: 155.5 kB / 0.5729 GB, free: 11.87 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.4689, allocations: 0 / 0.5729 GB, free: 11.87 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.469, allocations: 30.56 kB / 0.573 GB, free: 11.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 8.71e-07/0.469, allocations: 4 kB / 0.573 GB, free: 11.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.000688/0.4697, allocations: 0.5686 MB / 0.5735 GB, free: 11.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.389e-05/0.4698, allocations: 109.1 kB / 0.5736 GB, free: 11.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.4699, allocations: 155 kB / 0.5738 GB, free: 10.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.47, allocations: 25.7 kB / 0.5738 GB, free: 10.92 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.205e-05/0.4701, allocations: 100.8 kB / 0.5739 GB, free: 10.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.4702, allocations: 134 kB / 0.574 GB, free: 10.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.561e-06/0.4702, allocations: 3.938 kB / 0.574 GB, free: 10.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.4704, allocations: 334.8 kB / 0.5743 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.4705, allocations: 99.98 kB / 0.5744 GB, free: 10.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.593e-05/0.4706, allocations: 91.95 kB / 0.5745 GB, free: 10.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001757/0.4708, allocations: 194.8 kB / 0.5747 GB, free: 9.961 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.4708, allocations: 0 / 0.5747 GB, free: 9.961 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003437/0.4712, allocations: 319 kB / 0.575 GB, free: 9.637 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.59e-05/0.4713, allocations: 89.62 kB / 0.5751 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.4713, allocations: 0 / 0.5751 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.4713, allocations: 0 / 0.5751 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.4713, allocations: 0 / 0.5751 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.181e-05/0.4713, allocations: 0 / 0.5751 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.245e-05/0.4714, allocations: 27.75 kB / 0.5751 GB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.4715, allocations: 8 kB / 0.5751 GB, free: 9.508 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.0002059/0.4717, allocations: 235.4 kB / 0.5754 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.511e-05/0.4717, allocations: 27.72 kB / 0.5754 GB, free: 9.234 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.355e-05/0.4718, allocations: 14.64 kB / 0.5754 GB, free: 9.223 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.4718, allocations: 3.938 kB / 0.5754 GB, free: 9.219 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4718, allocations: 3.938 kB / 0.5754 GB, free: 9.215 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.4718, allocations: 0 / 0.5754 GB, free: 9.215 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.472, allocations: 241.4 kB / 0.5756 GB, free: 8.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.472, allocations: 4 kB / 0.5756 GB, free: 8.926 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.472, allocations: 0 / 0.5756 GB, free: 8.926 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.472, allocations: 0 / 0.5756 GB, free: 8.926 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.472, allocations: 8 kB / 0.5757 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.472, allocations: 0 / 0.5757 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.472, allocations: 0 / 0.5757 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009292/0.473, allocations: 0.9042 MB / 0.5765 GB, free: 7.988 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.387e-05/0.473, allocations: 104.7 kB / 0.5766 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.4731, allocations: 12.03 kB / 0.5766 GB, free: 7.855 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.707e-05/0.4731, allocations: 4 kB / 0.5767 GB, free: 7.852 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/0.4732, allocations: 11.98 kB / 0.5767 GB, free: 7.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.4732, allocations: 12 kB / 0.5767 GB, free: 7.828 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.098e-05/0.4733, allocations: 123.2 kB / 0.5768 GB, free: 7.707 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4733, allocations: 0 / 0.5768 GB, free: 7.707 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00109/0.4744, allocations: 391.6 kB / 0.5772 GB, free: 7.324 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.0008957/0.4753, allocations: 422.4 kB / 0.5776 GB, free: 6.906 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.4765, allocations: 1.593 MB / 0.5791 GB, free: 5.301 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4765, allocations: 0 / 0.5791 GB, free: 5.301 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009169/0.4774, allocations: 1.366 MB / 0.5805 GB, free: 3.922 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000162/0.4776, allocations: 8 kB / 0.5805 GB, free: 3.914 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008449/0.4785, allocations: 0.731 MB / 0.5812 GB, free: 3.148 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.4788, allocations: 0.7637 MB / 0.5819 GB, free: 2.359 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.071e-05/0.4788, allocations: 0 / 0.5819 GB, free: 2.359 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.162e-05/0.4788, allocations: 7.438 kB / 0.5819 GB, free: 2.352 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4788, allocations: 0 / 0.5819 GB, free: 2.352 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].