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.001782/0.001782, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.471/1.471, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008536/0.0008536, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.158/0.158, allocations: 37.98 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.814e-05/2.816e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09995/0.09999, allocations: 56.32 MB / 474.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3471/0.4472, allocations: 92.43 MB / 0.5532 GB, free: 9.598 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.4474, allocations: 81.89 kB / 0.5533 GB, free: 9.555 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05428/0.5017, allocations: 12.1 MB / 0.5651 GB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5018, allocations: 0 / 0.5651 GB, free: 15.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.5018, allocations: 4 kB / 0.5651 GB, free: 15.52 MB / 378.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.0009489/0.5028, allocations: 0.5621 MB / 0.5657 GB, free: 14.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.5029, allocations: 15.97 kB / 0.5657 GB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.122e-05/0.5029, allocations: 14.5 kB / 0.5657 GB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.5032, allocations: 194.5 kB / 0.5659 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.5033, allocations: 0 / 0.5659 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.5033, allocations: 8 kB / 0.5659 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002358/0.5035, allocations: 105.2 kB / 0.566 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.555e-06/0.5036, allocations: 0 / 0.566 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.5036, allocations: 0 / 0.566 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.5036, allocations: 4 kB / 0.566 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.5037, allocations: 58.84 kB / 0.566 GB, free: 14.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002315/0.504, allocations: 191.4 kB / 0.5662 GB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.5041, allocations: 94.98 kB / 0.5663 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.5043, allocations: 91.61 kB / 0.5664 GB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-06/0.5043, allocations: 3.984 kB / 0.5664 GB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.754e-05/0.5044, allocations: 37.5 kB / 0.5664 GB, free: 14.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.512e-06/0.5044, allocations: 0 / 0.5664 GB, free: 14.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004524/0.5048, allocations: 224.5 kB / 0.5667 GB, free: 13.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.5049, allocations: 93.09 kB / 0.5668 GB, free: 13.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.5051, allocations: 133.8 kB / 0.5669 GB, free: 13.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.5051, allocations: 29.73 kB / 0.5669 GB, free: 13.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.98e-05/0.5052, allocations: 100.9 kB / 0.567 GB, free: 13.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.248e-05/0.5053, allocations: 76.94 kB / 0.5671 GB, free: 13.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.023e-05/0.5053, allocations: 0 / 0.5671 GB, free: 13.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.5055, allocations: 337.5 kB / 0.5674 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.5056, allocations: 61.41 kB / 0.5675 GB, free: 13.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.5057, allocations: 58.78 kB / 0.5675 GB, free: 13.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001897/0.5059, allocations: 127.5 kB / 0.5676 GB, free: 12.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.506, allocations: 0 / 0.5676 GB, free: 12.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004025/0.5064, allocations: 225.6 kB / 0.5679 GB, free: 12.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.288e-05/0.5065, allocations: 66.91 kB / 0.5679 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.5065, allocations: 0 / 0.5679 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.5065, allocations: 0 / 0.5679 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.5065, allocations: 0 / 0.5679 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.5065, allocations: 4 kB / 0.5679 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.857e-05/0.5066, allocations: 11.84 kB / 0.5679 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.025e-05/0.5067, allocations: 4 kB / 0.5679 GB, free: 12.62 MB / 378.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 () * 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.0001773/0.5069, allocations: 177.4 kB / 0.5681 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.743e-05/0.5069, allocations: 15.94 kB / 0.5681 GB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.443e-05/0.5069, allocations: 12.73 kB / 0.5681 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.507, allocations: 0 / 0.5681 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.507, allocations: 0 / 0.5681 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.507, allocations: 0 / 0.5681 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.5072, allocations: 215.9 kB / 0.5683 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.5072, allocations: 0 / 0.5683 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.92e-07/0.5073, allocations: 0 / 0.5683 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.5073, allocations: 0 / 0.5683 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.848e-05/0.5073, allocations: 7.984 kB / 0.5683 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.5073, allocations: 0 / 0.5683 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5073, allocations: 8 kB / 0.5684 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008992/0.5082, allocations: 0.4961 MB / 0.5688 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.496e-05/0.5083, allocations: 100.2 kB / 0.5689 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.106e-05/0.5084, allocations: 4 kB / 0.5689 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.639e-05/0.5085, allocations: 4 kB / 0.5689 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/0.5085, allocations: 7.984 kB / 0.5689 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.5085, allocations: 4 kB / 0.569 GB, free: 11.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001141/0.5087, allocations: 117.3 kB / 0.5691 GB, free: 11.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5087, allocations: 4 kB / 0.5691 GB, free: 11.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001108/0.5098, allocations: 381.4 kB / 0.5694 GB, free: 11.09 MB / 378.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 () * 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.001362/0.5112, allocations: 412.5 kB / 0.5698 GB, free: 10.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009656/0.5122, allocations: 0.6982 MB / 0.5705 GB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.5122, allocations: 0 / 0.5705 GB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007296/0.5129, allocations: 0.5796 MB / 0.5711 GB, free: 9.922 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.5131, allocations: 7 kB / 0.5711 GB, free: 9.918 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008174/0.514, allocations: 354.9 kB / 0.5714 GB, free: 9.586 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.5144, allocations: 0.7319 MB / 0.5721 GB, free: 8.828 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.392e-05/0.5144, allocations: 4 kB / 0.5721 GB, free: 8.824 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.742e-05/0.5145, allocations: 7.438 kB / 0.5721 GB, free: 8.816 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5145, allocations: 0 / 0.5721 GB, free: 8.816 MB / 378.7 MB [CodegenCFunctions.tpl:5352:15-5352:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].