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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.00115/0.00115, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.416/1.416, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1788/0.1788, allocations: 38.03 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 68.28 kB / 400.2 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1066, allocations: 58.07 MB / 458.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003655/0.1103, allocations: 2.095 MB / 460.4 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003062/0.1133, allocations: 2.043 MB / 462.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.003e-05/0.1134, allocations: 0 / 462.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.1136, allocations: 11.92 kB / 462.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.234e-05/0.1137, allocations: 27.83 kB / 462.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002067/0.1158, allocations: 0.836 MB / 463.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001374/0.1159, allocations: 83.67 kB / 463.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.966e-05/0.116, allocations: 4.188 kB / 463.4 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.439e-05/0.1161, allocations: 35.84 kB / 463.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.998e-05/0.1162, allocations: 43.77 kB / 463.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.1162, allocations: 4 kB / 463.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001765/0.1179, allocations: 1.407 MB / 464.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.118, allocations: 11.94 kB / 464.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.625e-05/0.118, allocations: 23.86 kB / 464.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.1194, allocations: 1.317 MB / 466.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1194, allocations: 0 / 466.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1194, allocations: 0 / 466.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1194, allocations: 0 / 466.3 MB, free: 15.35 MB / 350.1 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.0006489/0.1201, allocations: 0.4892 MB / 466.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.1201, allocations: 15.89 kB / 466.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.198e-05/0.1202, allocations: 8.844 kB / 466.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001751/0.1204, allocations: 195.5 kB / 467 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.1204, allocations: 4 kB / 467 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.1204, allocations: 3.984 kB / 467 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.1205, allocations: 57.67 kB / 467 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.1205, allocations: 0 / 467 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.1206, allocations: 0 / 467 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1206, allocations: 0 / 467 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.404e-05/0.1206, allocations: 27.92 kB / 467 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.1208, allocations: 165.6 kB / 467.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.285e-05/0.1208, allocations: 46.56 kB / 467.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.22e-05/0.1209, allocations: 36.83 kB / 467.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.773e-06/0.1209, allocations: 0 / 467.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.1209, allocations: 38.55 kB / 467.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.02e-07/0.1209, allocations: 0 / 467.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002445/0.1212, allocations: 151.2 kB / 467.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.1212, allocations: 81.11 kB / 467.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.492e-05/0.1213, allocations: 133.1 kB / 467.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.1214, allocations: 25.7 kB / 467.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.154e-05/0.1214, allocations: 88.14 kB / 467.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.927e-05/0.1215, allocations: 27.55 kB / 467.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.74e-05/0.1215, allocations: 21.72 kB / 467.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.896e-05/0.1216, allocations: 322.8 kB / 468.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.828e-05/0.1216, allocations: 23.98 kB / 468.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.084e-05/0.1217, allocations: 23.98 kB / 468.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.1218, allocations: 128.2 kB / 468.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1218, allocations: 0 / 468.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001479/0.122, allocations: 131.4 kB / 468.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.871e-05/0.122, allocations: 41.69 kB / 468.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.122, allocations: 0 / 468.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.122, allocations: 4 kB / 468.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.122, allocations: 0 / 468.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.1221, allocations: 4 kB / 468.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.385e-05/0.1221, allocations: 0 / 468.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.1221, allocations: 4 kB / 468.5 MB, free: 12.82 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.0001052/0.1222, allocations: 175.4 kB / 468.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.607e-05/0.1223, allocations: 7.906 kB / 468.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.342e-05/0.1223, allocations: 4.375 kB / 468.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1223, allocations: 4 kB / 468.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1223, allocations: 0 / 468.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.1223, allocations: 0 / 468.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.1224, allocations: 173.6 kB / 468.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1224, allocations: 0 / 468.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1224, allocations: 0 / 468.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.1224, allocations: 4 kB / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.1225, allocations: 4 kB / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.1225, allocations: 0 / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1225, allocations: 3.938 kB / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002382/0.1227, allocations: 218.6 kB / 469.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.594e-05/0.1228, allocations: 88.95 kB / 469.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.1228, allocations: 4 kB / 469.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.514e-05/0.1228, allocations: 3.984 kB / 469.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.363e-05/0.1228, allocations: 4.031 kB / 469.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.1228, allocations: 7.938 kB / 469.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.205e-05/0.1229, allocations: 95.27 kB / 469.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1229, allocations: 0 / 469.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000668/0.1236, allocations: 316 kB / 469.6 MB, free: 11.62 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.0007876/0.1244, allocations: 373.9 kB / 470 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002426/0.1246, allocations: 207.3 kB / 470.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1246, allocations: 0 / 470.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.1248, allocations: 147.4 kB / 470.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.125, allocations: 7.984 kB / 470.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003854/0.1254, allocations: 240.3 kB / 470.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.1256, allocations: 0.6964 MB / 471.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.018e-05/0.1256, allocations: 0 / 471.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.233e-05/0.1257, allocations: 7.438 kB / 471.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1257, allocations: 3.938 kB / 471.3 MB, free: 9.879 MB / 350.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].