Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001016/0.001017, allocations: 89.48 kB / 16.65 MB, free: 6.535 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.001293/0.001293, allocations: 172.8 kB / 17.56 MB, free: 6.184 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.381/1.381, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1839/0.1839, allocations: 38.06 MB / 330.8 MB, free: 8.473 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.000332, allocations: 12 kB / 400.7 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1109, allocations: 59.16 MB / 459.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002626/0.1135, allocations: 1.811 MB / 461.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003302/0.1168, allocations: 2.118 MB / 463.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.259e-05/0.1169, allocations: 0 / 463.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.1171, allocations: 11.92 kB / 463.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.097e-05/0.1172, allocations: 35.81 kB / 463.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001956/0.1191, allocations: 0.6749 MB / 464.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001521/0.1193, allocations: 135.5 kB / 464.7 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.294e-05/0.1194, allocations: 4.188 kB / 464.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.11e-05/0.1195, allocations: 23.92 kB / 464.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.1196, allocations: 43.77 kB / 464.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.1196, allocations: 4 kB / 464.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001871/0.1215, allocations: 1.236 MB / 466 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.679e-05/0.1215, allocations: 15.92 kB / 466 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.372e-05/0.1216, allocations: 61.44 kB / 466 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001762/0.1234, allocations: 1.279 MB / 467.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1234, allocations: 0 / 467.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1234, allocations: 0 / 467.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.1234, allocations: 0 / 467.3 MB, free: 15.54 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007831/0.1242, allocations: 0.5008 MB / 467.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.1242, allocations: 12.03 kB / 467.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.152e-05/0.1243, allocations: 8.844 kB / 467.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002018/0.1245, allocations: 201.6 kB / 468 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.1245, allocations: 0 / 468 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.1245, allocations: 0 / 468 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.1247, allocations: 69.66 kB / 468.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1247, allocations: 0 / 468.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.1248, allocations: 4 kB / 468.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1248, allocations: 0 / 468.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.328e-05/0.1248, allocations: 31.98 kB / 468.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002142/0.1251, allocations: 165.6 kB / 468.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.1252, allocations: 66.5 kB / 468.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.749e-05/0.1252, allocations: 44.88 kB / 468.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-06/0.1253, allocations: 4.156 kB / 468.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.218e-05/0.1253, allocations: 38.56 kB / 468.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.1253, allocations: 3.938 kB / 468.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003744/0.1257, allocations: 195.1 kB / 468.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.16e-05/0.1258, allocations: 89.14 kB / 468.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.126, allocations: 137.7 kB / 468.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.126, allocations: 25.7 kB / 468.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.275e-05/0.1261, allocations: 96.12 kB / 469 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.925e-05/0.1261, allocations: 39.39 kB / 469 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-05/0.1262, allocations: 13.72 kB / 469 MB, free: 13.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.1264, allocations: 326.8 kB / 469.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.882e-05/0.1264, allocations: 27.98 kB / 469.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.957e-05/0.1265, allocations: 31.98 kB / 469.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/0.1267, allocations: 172.2 kB / 469.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1267, allocations: 0 / 469.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002323/0.127, allocations: 151.2 kB / 469.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.632e-05/0.1271, allocations: 49.67 kB / 469.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.1271, allocations: 4 kB / 469.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.1271, allocations: 0 / 469.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.193e-06/0.1271, allocations: 0 / 469.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.1271, allocations: 0 / 469.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.797e-05/0.1272, allocations: 4 kB / 469.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.1272, allocations: 4 kB / 469.8 MB, free: 12.79 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.0001802/0.1274, allocations: 171.5 kB / 470 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.719e-05/0.1274, allocations: 19.78 kB / 470 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.084e-05/0.1275, allocations: 8.719 kB / 470 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1275, allocations: 0 / 470 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1275, allocations: 0 / 470 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1275, allocations: 0 / 470 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.1277, allocations: 177.6 kB / 470.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1277, allocations: 4 kB / 470.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-06/0.1277, allocations: 0 / 470.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1277, allocations: 4 kB / 470.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.1277, allocations: 7.984 kB / 470.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.247e-06/0.1277, allocations: 0 / 470.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1277, allocations: 3.938 kB / 470.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003523/0.1281, allocations: 286.5 kB / 470.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.571e-05/0.1281, allocations: 88.95 kB / 470.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/0.1282, allocations: 4 kB / 470.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.958e-05/0.1282, allocations: 0 / 470.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.18e-05/0.1282, allocations: 12.03 kB / 470.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.1283, allocations: 8 kB / 470.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.232e-05/0.1283, allocations: 109.4 kB / 470.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1283, allocations: 4 kB / 470.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001183/0.1295, allocations: 327.8 kB / 471 MB, free: 11.47 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.00126/0.1308, allocations: 374 kB / 471.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000359/0.1312, allocations: 291.3 kB / 471.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1312, allocations: 0 / 471.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002081/0.1314, allocations: 223.3 kB / 471.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.1317, allocations: 16.31 kB / 471.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005227/0.1322, allocations: 343.1 kB / 472.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.1325, allocations: 0.7043 MB / 472.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.425e-05/0.1325, allocations: 4 kB / 472.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.224e-05/0.1325, allocations: 7.438 kB / 472.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1325, allocations: 0 / 472.9 MB, free: 9.457 MB / 350.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].