Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001471/0.001471, allocations: 108.8 kB / 16.63 MB, free: 6.816 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.001769/0.001769, allocations: 189.8 kB / 17.55 MB, free: 5.949 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.393/1.393, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1923/0.1923, allocations: 38.02 MB / 329.4 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 71.06 kB / 398.3 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1126, allocations: 58.05 MB / 456.3 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003219/0.1158, allocations: 2.15 MB / 458.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002703/0.1186, allocations: 2.051 MB / 460.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.438e-05/0.1186, allocations: 3.938 kB / 460.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.1188, allocations: 7.984 kB / 460.5 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.311e-05/0.1189, allocations: 31.83 kB / 460.6 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.1207, allocations: 0.7643 MB / 461.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.1209, allocations: 79.7 kB / 461.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.23e-05/0.1209, allocations: 4.172 kB / 461.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.834e-05/0.121, allocations: 35.84 kB / 461.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.23e-05/0.1211, allocations: 55.81 kB / 461.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.1211, allocations: 4 kB / 461.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001626/0.1227, allocations: 1.259 MB / 462.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.629e-05/0.1228, allocations: 43.84 kB / 462.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.759e-05/0.1229, allocations: 63.47 kB / 462.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001355/0.1243, allocations: 1.298 MB / 464.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1243, allocations: 4 kB / 464.2 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1243, allocations: 4 kB / 464.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1243, allocations: 0 / 464.2 MB, free: 0.5312 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006606/0.125, allocations: 0.5979 MB / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.125, allocations: 11.89 kB / 464.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.832e-05/0.1251, allocations: 24.66 kB / 464.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/0.1253, allocations: 211.5 kB / 465 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.653e-06/0.1253, allocations: 0 / 465 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.446e-05/0.1253, allocations: 0 / 465 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.1255, allocations: 142.5 kB / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.1255, allocations: 0 / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.1256, allocations: 4 kB / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1256, allocations: 0 / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.1257, allocations: 100.2 kB / 465.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002155/0.1259, allocations: 213.6 kB / 465.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001868/0.1261, allocations: 162.5 kB / 465.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.1263, allocations: 148.8 kB / 465.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-06/0.1263, allocations: 0 / 465.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/0.1263, allocations: 34.56 kB / 465.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 9.22e-07/0.1263, allocations: 0 / 465.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008957/0.1272, allocations: 495.5 kB / 466.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.147e-05/0.1273, allocations: 109.1 kB / 466.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.1275, allocations: 178.9 kB / 466.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.1276, allocations: 29.7 kB / 466.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.403e-05/0.1276, allocations: 100.8 kB / 466.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.1278, allocations: 122.1 kB / 466.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-05/0.1278, allocations: 37.69 kB / 466.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.1281, allocations: 342.8 kB / 467.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.1282, allocations: 87.97 kB / 467.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.1283, allocations: 100.9 kB / 467.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000375/0.1287, allocations: 384.3 kB / 467.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1287, allocations: 0 / 467.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004087/0.1291, allocations: 342.9 kB / 468.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.419e-05/0.1292, allocations: 85.64 kB / 468.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.1292, allocations: 3.984 kB / 468.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.1292, allocations: 0 / 468.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.575e-06/0.1292, allocations: 4 kB / 468.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.1293, allocations: 0 / 468.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.726e-05/0.1293, allocations: 23.69 kB / 468.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.1294, allocations: 8 kB / 468.2 MB, free: 12.23 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.0002193/0.1296, allocations: 243.3 kB / 468.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.536e-05/0.1297, allocations: 27.75 kB / 468.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.667e-05/0.1297, allocations: 10.66 kB / 468.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1297, allocations: 0 / 468.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1297, allocations: 0 / 468.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.1297, allocations: 0 / 468.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.1299, allocations: 241.2 kB / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1299, allocations: 0 / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.366e-06/0.1299, allocations: 0 / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1299, allocations: 7.922 kB / 468.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.13, allocations: 12 kB / 468.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.13, allocations: 0 / 468.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.13, allocations: 0 / 468.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009872/0.131, allocations: 0.9198 MB / 469.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/0.131, allocations: 100.7 kB / 469.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.1311, allocations: 11.98 kB / 469.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.867e-05/0.1311, allocations: 4 kB / 469.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.1312, allocations: 16.02 kB / 469.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.1312, allocations: 8 kB / 469.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.155e-05/0.1313, allocations: 123.2 kB / 469.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1313, allocations: 0 / 469.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001073/0.1324, allocations: 348 kB / 470.3 MB, free: 10.07 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.0009423/0.1333, allocations: 370.9 kB / 470.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.1347, allocations: 1.604 MB / 472.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1347, allocations: 0 / 472.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.1358, allocations: 1.374 MB / 473.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.1361, allocations: 19.98 kB / 473.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.1372, allocations: 0.729 MB / 474.3 MB, free: 5.922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.1376, allocations: 0.7517 MB / 475.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.756e-05/0.1376, allocations: 4 kB / 475.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.147e-05/0.1376, allocations: 7.438 kB / 475.1 MB, free: 5.133 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1376, allocations: 0 / 475.1 MB, free: 5.133 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].