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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 111.1 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.001834/0.001834, allocations: 192 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.404/1.404, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.178/0.178, allocations: 38.04 MB / 330.5 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 61.83 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1105, allocations: 58.07 MB / 458.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003454/0.114, allocations: 2.098 MB / 460.4 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002903/0.1169, allocations: 2.043 MB / 462.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.252e-05/0.117, allocations: 0 / 462.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.1172, allocations: 15.86 kB / 462.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.641e-05/0.1173, allocations: 31.83 kB / 462.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002062/0.1193, allocations: 0.8303 MB / 463.3 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001347/0.1195, allocations: 75.7 kB / 463.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.5e-05/0.1195, allocations: 8.172 kB / 463.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.12e-05/0.1196, allocations: 35.84 kB / 463.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.961e-05/0.1197, allocations: 43.83 kB / 463.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.146e-05/0.1197, allocations: 0 / 463.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001815/0.1215, allocations: 1.411 MB / 464.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.347e-05/0.1216, allocations: 27.91 kB / 464.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.187e-05/0.1217, allocations: 47.61 kB / 465 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001417/0.1231, allocations: 1.349 MB / 466.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1231, allocations: 0 / 466.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.1231, allocations: 0 / 466.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1231, allocations: 3.938 kB / 466.3 MB, free: 15.27 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006501/0.1238, allocations: 0.5514 MB / 466.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1238, allocations: 12.02 kB / 466.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.383e-05/0.1239, allocations: 16.75 kB / 466.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.1241, allocations: 206.5 kB / 467.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.1241, allocations: 8 kB / 467.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.476e-05/0.1241, allocations: 0 / 467.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.1243, allocations: 97.59 kB / 467.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.1243, allocations: 0 / 467.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.1243, allocations: 0 / 467.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.1243, allocations: 4 kB / 467.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.472e-05/0.1244, allocations: 63.83 kB / 467.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.1245, allocations: 193.4 kB / 467.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.1247, allocations: 106.5 kB / 467.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.52e-05/0.1248, allocations: 88.86 kB / 467.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.822e-06/0.1248, allocations: 0 / 467.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.1248, allocations: 34.56 kB / 467.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 8.92e-07/0.1248, allocations: 0 / 467.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004556/0.1253, allocations: 315.5 kB / 468 MB, free: 13.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.1253, allocations: 97.12 kB / 468.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.1255, allocations: 160.5 kB / 468.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.1255, allocations: 25.7 kB / 468.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.943e-05/0.1255, allocations: 100.6 kB / 468.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.361e-05/0.1256, allocations: 78.75 kB / 468.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.354e-05/0.1257, allocations: 25.72 kB / 468.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1258, allocations: 330.8 kB / 468.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.982e-05/0.1259, allocations: 63.97 kB / 468.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.531e-05/0.126, allocations: 63.97 kB / 468.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/0.1262, allocations: 254.6 kB / 469.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1262, allocations: 0 / 469.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002455/0.1264, allocations: 238.4 kB / 469.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.348e-05/0.1265, allocations: 65.66 kB / 469.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1265, allocations: 0 / 469.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1266, allocations: 0 / 469.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.1266, allocations: 0 / 469.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.1266, allocations: 0 / 469.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.518e-05/0.1266, allocations: 19.78 kB / 469.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.1267, allocations: 12.05 kB / 469.5 MB, free: 11.84 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.0001364/0.1268, allocations: 199.4 kB / 469.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.1268, allocations: 11.91 kB / 469.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.972e-05/0.1269, allocations: 13.17 kB / 469.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.1269, allocations: 0 / 469.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1269, allocations: 0 / 469.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.1269, allocations: 3.938 kB / 469.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.127, allocations: 213.4 kB / 469.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.127, allocations: 0 / 469.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.127, allocations: 0 / 469.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.127, allocations: 4 kB / 469.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.1271, allocations: 4 kB / 470 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1271, allocations: 4 kB / 470 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1271, allocations: 0 / 470 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005177/0.1276, allocations: 0.5216 MB / 470.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.594e-05/0.1277, allocations: 92.86 kB / 470.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/0.1277, allocations: 12 kB / 470.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.695e-05/0.1277, allocations: 0 / 470.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.406e-05/0.1278, allocations: 12.02 kB / 470.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.1278, allocations: 8 kB / 470.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.442e-05/0.1279, allocations: 114.7 kB / 470.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1279, allocations: 0 / 470.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006942/0.1286, allocations: 328 kB / 471 MB, free: 10.21 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.0008032/0.1294, allocations: 382.1 kB / 471.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006328/0.13, allocations: 0.71 MB / 472.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.13, allocations: 0 / 472.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004286/0.1305, allocations: 0.5773 MB / 472.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.1307, allocations: 12 kB / 472.7 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006154/0.1313, allocations: 465.6 kB / 473.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.1316, allocations: 0.7357 MB / 473.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.599e-05/0.1316, allocations: 0 / 473.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.413e-05/0.1316, allocations: 7.438 kB / 473.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1316, allocations: 0 / 473.9 MB, free: 7.262 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].