Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001249/0.00125, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.43/1.43, allocations: 205.1 MB / 223.1 MB, free: 8.469 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.001154/0.001154, allocations: 109.7 kB / 270.5 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1855/0.1855, allocations: 38 MB / 355.8 MB, free: 2.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 59.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3681, allocations: 55.23 MB / 477.1 MB, free: 9.918 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.004116/0.3723, allocations: 2.143 MB / 479.2 MB, free: 8.402 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004293/0.3766, allocations: 2.224 MB / 481.5 MB, free: 6.938 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.431e-05/0.3767, allocations: 0 / 481.5 MB, free: 6.938 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.377, allocations: 15.59 kB / 481.5 MB, free: 6.93 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.3772, allocations: 32.72 kB / 481.5 MB, free: 6.91 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002276/0.3795, allocations: 0.6802 MB / 482.2 MB, free: 6.676 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002005/0.3797, allocations: 121 kB / 482.3 MB, free: 6.645 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.408e-05/0.3797, allocations: 3.984 kB / 482.3 MB, free: 6.645 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.3799, allocations: 36.78 kB / 482.3 MB, free: 6.629 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.841e-05/0.38, allocations: 45.22 kB / 482.4 MB, free: 6.609 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.344e-05/0.38, allocations: 1.219 kB / 482.4 MB, free: 6.609 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002494/0.3825, allocations: 1.24 MB / 483.6 MB, free: 6.227 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.575e-05/0.3825, allocations: 14.2 kB / 483.6 MB, free: 6.223 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.665e-05/0.3826, allocations: 24 kB / 483.7 MB, free: 6.207 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002277/0.3849, allocations: 1.258 MB / 484.9 MB, free: 5.992 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3849, allocations: 0 / 484.9 MB, free: 5.992 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3849, allocations: 1.375 kB / 484.9 MB, free: 5.992 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.3849, allocations: 0 / 484.9 MB, free: 5.992 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007688/0.3857, allocations: 0.5066 MB / 485.4 MB, free: 5.508 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.413e-05/0.3858, allocations: 9.625 kB / 485.4 MB, free: 5.508 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.508e-05/0.3859, allocations: 12.25 kB / 485.5 MB, free: 5.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.3861, allocations: 191 kB / 485.6 MB, free: 5.285 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.3861, allocations: 1.375 kB / 485.6 MB, free: 5.285 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.3861, allocations: 1.375 kB / 485.6 MB, free: 5.285 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.3863, allocations: 53.77 kB / 485.7 MB, free: 5.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.3863, allocations: 1.375 kB / 485.7 MB, free: 5.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.3864, allocations: 0 / 485.7 MB, free: 5.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3864, allocations: 0.7031 kB / 485.7 MB, free: 5.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.601e-05/0.3865, allocations: 19.64 kB / 485.7 MB, free: 5.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001906/0.3866, allocations: 172.1 kB / 485.9 MB, free: 5.047 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.419e-05/0.3867, allocations: 47.58 kB / 485.9 MB, free: 5.012 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.532e-05/0.3868, allocations: 34.25 kB / 486 MB, free: 4.996 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/0.3868, allocations: 0.6562 kB / 486 MB, free: 4.996 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.3869, allocations: 35.88 kB / 486 MB, free: 4.953 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.423e-06/0.3869, allocations: 0 / 486 MB, free: 4.953 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003589/0.3872, allocations: 150.5 kB / 486.1 MB, free: 4.875 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.363e-05/0.3873, allocations: 93.47 kB / 486.2 MB, free: 4.773 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.3875, allocations: 126.3 kB / 486.4 MB, free: 4.668 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.3875, allocations: 25.7 kB / 486.4 MB, free: 4.637 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.513e-05/0.3875, allocations: 88.53 kB / 486.5 MB, free: 4.551 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.42e-05/0.3876, allocations: 28.86 kB / 486.5 MB, free: 4.527 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-05/0.3876, allocations: 18.84 kB / 486.5 MB, free: 4.512 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3878, allocations: 327.5 kB / 486.8 MB, free: 4.188 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.211e-05/0.3879, allocations: 26.39 kB / 486.9 MB, free: 4.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.118e-05/0.3879, allocations: 23.92 kB / 486.9 MB, free: 4.176 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001474/0.3881, allocations: 125.4 kB / 487 MB, free: 4.098 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3881, allocations: 0 / 487 MB, free: 4.098 MB / 314.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001591/0.3883, allocations: 126.1 kB / 487.1 MB, free: 4.023 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.3883, allocations: 41.42 kB / 487.2 MB, free: 3.992 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.3883, allocations: 0.8438 kB / 487.2 MB, free: 3.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.3884, allocations: 0 / 487.2 MB, free: 3.992 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.855e-06/0.3884, allocations: 5.344 kB / 487.2 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.3884, allocations: 0 / 487.2 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.204e-05/0.3884, allocations: 7.531 kB / 487.2 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.3885, allocations: 9.969 kB / 487.2 MB, free: 3.977 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.3886, allocations: 160.8 kB / 487.4 MB, free: 3.824 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.903e-05/0.3886, allocations: 8.969 kB / 487.4 MB, free: 3.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.732e-05/0.3886, allocations: 7.547 kB / 487.4 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3886, allocations: 0 / 487.4 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.3886, allocations: 1.688 kB / 487.4 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3886, allocations: 0 / 487.4 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001323/0.3888, allocations: 172.9 kB / 487.5 MB, free: 3.617 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3888, allocations: 0.75 kB / 487.5 MB, free: 3.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-06/0.3888, allocations: 9.047 kB / 487.6 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3888, allocations: 0.6562 kB / 487.6 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.3888, allocations: 2.281 kB / 487.6 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3888, allocations: 1.938 kB / 487.6 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3888, allocations: 0 / 487.6 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006554/0.3895, allocations: 0.8307 MB / 488.4 MB, free: 2.891 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.788e-05/0.3895, allocations: 95.86 kB / 488.5 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.3896, allocations: 2.828 kB / 488.5 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.445e-05/0.3896, allocations: 5.031 kB / 488.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.081e-05/0.3896, allocations: 2.891 kB / 488.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.3896, allocations: 3.969 kB / 488.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.505e-05/0.3897, allocations: 98.56 kB / 488.6 MB, free: 2.695 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.3897, allocations: 0 / 488.6 MB, free: 2.695 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001383/0.3911, allocations: 322.7 kB / 488.9 MB, free: 2.652 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009561/0.3921, allocations: 368.4 kB / 489.3 MB, free: 2.496 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002732/0.3923, allocations: 196.9 kB / 489.5 MB, free: 2.398 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3923, allocations: 0 / 489.5 MB, free: 2.398 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.3925, allocations: 153.2 kB / 489.6 MB, free: 2.305 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.3927, allocations: 12.88 kB / 489.6 MB, free: 2.297 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005032/0.3933, allocations: 388.2 kB / 490 MB, free: 2.016 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.3934, allocations: 0.6965 MB / 490.7 MB, free: 1.32 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.228e-05/0.3934, allocations: 5.984 kB / 490.7 MB, free: 1.316 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.018e-05/0.3935, allocations: 9.125 kB / 490.7 MB, free: 1.309 MB / 314.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3935, allocations: 0 / 490.7 MB, free: 1.309 MB / 314.7 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].