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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.001479, allocations: 107.7 kB / 16.92 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 189.6 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1713/0.1713, allocations: 38.05 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 61.86 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09306/0.09424, allocations: 58.06 MB / 456.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002987/0.09726, allocations: 2.094 MB / 459 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002677/0.09995, allocations: 2.043 MB / 461 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.525e-05/0.1, allocations: 0 / 461 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001235/0.1002, allocations: 23.84 kB / 461 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.795e-05/0.1002, allocations: 19.84 kB / 461 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001834/0.1021, allocations: 0.8399 MB / 461.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001163/0.1022, allocations: 83.69 kB / 462 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.731e-05/0.1023, allocations: 192 / 462 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.052e-05/0.1023, allocations: 35.84 kB / 462 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.687e-05/0.1024, allocations: 51.81 kB / 462.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.1024, allocations: 0 / 462.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001556/0.104, allocations: 1.259 MB / 463.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.322e-05/0.1041, allocations: 51.83 kB / 463.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.868e-05/0.1041, allocations: 55.48 kB / 463.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00128/0.1054, allocations: 1.368 MB / 464.8 MB, free: 100 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1054, allocations: 3.938 kB / 464.8 MB, free: 96 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1055, allocations: 0 / 464.8 MB, free: 96 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1055, allocations: 0 / 464.8 MB, free: 96 kB / 334.1 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.0006356/0.1061, allocations: 0.6057 MB / 465.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.1061, allocations: 11.89 kB / 465.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.1062, allocations: 24.66 kB / 465.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.1064, allocations: 216 kB / 465.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.293e-06/0.1064, allocations: 0 / 465.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.1064, allocations: 4 kB / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.1066, allocations: 134.6 kB / 465.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.1066, allocations: 0 / 465.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.1066, allocations: 0 / 465.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1066, allocations: 7.922 kB / 465.8 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.1068, allocations: 100.3 kB / 465.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002044/0.107, allocations: 213.6 kB / 466.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.1072, allocations: 162.5 kB / 466.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.1073, allocations: 148.8 kB / 466.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.1073, allocations: 0 / 466.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.1074, allocations: 30.56 kB / 466.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 9.62e-07/0.1074, allocations: 0 / 466.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.000649/0.108, allocations: 495.5 kB / 466.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.415e-05/0.1081, allocations: 113.1 kB / 467 MB, free: 13.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.1083, allocations: 170.4 kB / 467.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.1083, allocations: 25.7 kB / 467.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.812e-05/0.1084, allocations: 100.8 kB / 467.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.1085, allocations: 134.1 kB / 467.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.219e-05/0.1086, allocations: 33.7 kB / 467.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.1088, allocations: 338.8 kB / 467.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.1089, allocations: 99.95 kB / 467.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.109, allocations: 96.95 kB / 468 MB, free: 12.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003885/0.1094, allocations: 380.3 kB / 468.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1094, allocations: 0 / 468.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003775/0.1098, allocations: 346.8 kB / 468.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.222e-05/0.1099, allocations: 85.62 kB / 468.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1099, allocations: 0 / 468.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1099, allocations: 4 kB / 468.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.393e-06/0.11, allocations: 0 / 468.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.11, allocations: 0 / 468.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.091e-05/0.1101, allocations: 27.62 kB / 468.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.1101, allocations: 12.06 kB / 468.8 MB, free: 11.78 MB / 350.1 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.0001907/0.1103, allocations: 235.4 kB / 469.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.1103, allocations: 23.81 kB / 469.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.784e-05/0.1104, allocations: 10.66 kB / 469.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.1104, allocations: 3.984 kB / 469.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.1104, allocations: 8 kB / 469.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1104, allocations: 0 / 469.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.1106, allocations: 241.2 kB / 469.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.1106, allocations: 0 / 469.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-07/0.1106, allocations: 7.938 kB / 469.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.624e-06/0.1106, allocations: 0 / 469.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.1106, allocations: 8 kB / 469.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1106, allocations: 0 / 469.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1106, allocations: 0 / 469.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009206/0.1115, allocations: 0.912 MB / 470.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.404e-05/0.1116, allocations: 108.7 kB / 470.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.1117, allocations: 4 kB / 470.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.309e-05/0.1117, allocations: 16.03 kB / 470.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.086e-05/0.1118, allocations: 4 kB / 470.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.1118, allocations: 8 kB / 470.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.665e-05/0.1119, allocations: 128.2 kB / 470.5 MB, free: 9.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1119, allocations: 0 / 470.5 MB, free: 9.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00097/0.1129, allocations: 344 kB / 470.9 MB, free: 9.633 MB / 350.1 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.0008382/0.1137, allocations: 386 kB / 471.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.1149, allocations: 1.6 MB / 472.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.115, allocations: 0 / 472.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009545/0.1159, allocations: 1.374 MB / 474.2 MB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.1162, allocations: 22.91 kB / 474.2 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000868/0.117, allocations: 0.6586 MB / 474.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/0.1173, allocations: 0.7556 MB / 475.7 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.18e-05/0.1174, allocations: 3.984 kB / 475.7 MB, free: 4.758 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.147e-05/0.1174, allocations: 7.438 kB / 475.7 MB, free: 4.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1174, allocations: 0 / 475.7 MB, free: 4.75 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].