Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 116 kB / 16.51 MB, free: 6.672 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.001815/0.001815, allocations: 201.2 kB / 17.43 MB, free: 6.043 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.351/1.351, allocations: 222.9 MB / 241.1 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1757/0.1757, allocations: 38.04 MB / 329.3 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 57.84 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1091, allocations: 58.06 MB / 456.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003539/0.1127, allocations: 2.139 MB / 458.3 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003221/0.116, allocations: 2.176 MB / 460.5 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.366e-05/0.116, allocations: 0 / 460.5 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.1162, allocations: 15.91 kB / 460.5 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.923e-05/0.1163, allocations: 23.84 kB / 460.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001778/0.1181, allocations: 0.6866 MB / 461.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001291/0.1183, allocations: 123.6 kB / 461.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.477e-05/0.1183, allocations: 4.188 kB / 461.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.806e-05/0.1184, allocations: 27.84 kB / 461.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.099e-05/0.1185, allocations: 51.75 kB / 461.4 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.1185, allocations: 4 kB / 461.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001709/0.1202, allocations: 1.228 MB / 462.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.58e-05/0.1203, allocations: 19.92 kB / 462.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.253e-05/0.1203, allocations: 27.8 kB / 462.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001418/0.1218, allocations: 1.279 MB / 464 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1218, allocations: 0 / 464 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1218, allocations: 0 / 464 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.1218, allocations: 0 / 464 MB, free: 0.6836 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006115/0.1224, allocations: 0.5202 MB / 464.5 MB, free: 112 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.1225, allocations: 8.031 kB / 464.5 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.948e-05/0.1225, allocations: 8.844 kB / 464.5 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.1227, allocations: 193.7 kB / 464.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.1227, allocations: 0 / 464.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.1227, allocations: 4 kB / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.1229, allocations: 61.67 kB / 464.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.1229, allocations: 7.984 kB / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.1229, allocations: 0 / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1229, allocations: 4 kB / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.196e-05/0.123, allocations: 27.98 kB / 464.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001526/0.1231, allocations: 181.5 kB / 465 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.18e-05/0.1232, allocations: 62.5 kB / 465 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.339e-05/0.1233, allocations: 49.09 kB / 465.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.823e-06/0.1233, allocations: 0 / 465.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.879e-05/0.1233, allocations: 34.5 kB / 465.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 8.72e-07/0.1234, allocations: 0 / 465.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003057/0.1237, allocations: 195.2 kB / 465.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.1237, allocations: 89.05 kB / 465.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.1238, allocations: 133.9 kB / 465.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.303e-05/0.1239, allocations: 25.7 kB / 465.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.31e-05/0.1239, allocations: 96.12 kB / 465.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.966e-05/0.124, allocations: 39.39 kB / 465.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.73e-05/0.124, allocations: 21.66 kB / 465.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1241, allocations: 326.8 kB / 466 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.88e-05/0.1242, allocations: 31.98 kB / 466 MB, free: 14.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.161e-05/0.1242, allocations: 31.98 kB / 466.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.1244, allocations: 168.5 kB / 466.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1244, allocations: 0 / 466.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002027/0.1246, allocations: 159.2 kB / 466.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/0.1247, allocations: 56.12 kB / 466.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.565e-06/0.1247, allocations: 0 / 466.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.1247, allocations: 0 / 466.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.1247, allocations: 0 / 466.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1247, allocations: 0 / 466.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.714e-05/0.1247, allocations: 4 kB / 466.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.1248, allocations: 4 kB / 466.5 MB, free: 13.92 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.0001278/0.1249, allocations: 175.5 kB / 466.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.17e-05/0.1249, allocations: 11.91 kB / 466.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.943e-05/0.125, allocations: 8.719 kB / 466.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.125, allocations: 3.984 kB / 466.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.125, allocations: 0 / 466.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.125, allocations: 0 / 466.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001388/0.1251, allocations: 185.5 kB / 466.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1251, allocations: 0 / 466.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-07/0.1251, allocations: 0 / 466.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1251, allocations: 4 kB / 466.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.1252, allocations: 4 kB / 466.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1252, allocations: 3.938 kB / 466.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1252, allocations: 0 / 466.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003312/0.1255, allocations: 290.5 kB / 467.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.83e-05/0.1256, allocations: 88.95 kB / 467.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.1256, allocations: 0 / 467.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.116e-05/0.1256, allocations: 8 kB / 467.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.182e-05/0.1257, allocations: 4.031 kB / 467.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.1257, allocations: 11.98 kB / 467.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.506e-05/0.1257, allocations: 99.27 kB / 467.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1258, allocations: 0 / 467.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007692/0.1265, allocations: 331.8 kB / 467.7 MB, free: 12.6 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.0008665/0.1274, allocations: 366 kB / 468 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003305/0.1277, allocations: 295.3 kB / 468.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1278, allocations: 3.938 kB / 468.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001868/0.128, allocations: 223.3 kB / 468.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.1282, allocations: 15.92 kB / 468.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005122/0.1287, allocations: 338.5 kB / 468.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.129, allocations: 0.7004 MB / 469.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.104e-05/0.129, allocations: 0 / 469.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.07e-05/0.1291, allocations: 11.44 kB / 469.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1291, allocations: 0 / 469.6 MB, free: 10.59 MB / 350.1 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].