Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_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.001494/0.001494, allocations: 111.9 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.001472/0.001472, 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.389/1.389, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1929/0.1929, allocations: 38.04 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 64.05 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1134, allocations: 58.07 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003318/0.1168, allocations: 2.094 MB / 460.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003933/0.1207, allocations: 2.043 MB / 462.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.72e-05/0.1208, allocations: 7.938 kB / 462.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.121, allocations: 7.922 kB / 462.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.1212, allocations: 31.83 kB / 462.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00279/0.124, allocations: 0.8302 MB / 463.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001799/0.1242, allocations: 87.67 kB / 463.4 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.75e-05/0.1242, allocations: 4.188 kB / 463.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.1243, allocations: 31.84 kB / 463.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.1245, allocations: 55.75 kB / 463.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.1245, allocations: 0 / 463.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002633/0.1271, allocations: 1.407 MB / 464.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.218e-05/0.1272, allocations: 39.84 kB / 465 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.1273, allocations: 59.48 kB / 465 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002216/0.1296, allocations: 1.384 MB / 466.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1296, allocations: 0 / 466.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1296, allocations: 0 / 466.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1296, allocations: 0 / 466.4 MB, free: 15.21 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0009906/0.1306, allocations: 0.6018 MB / 467 MB, free: 14.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.1307, allocations: 11.89 kB / 467 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.664e-05/0.1308, allocations: 16.66 kB / 467 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000243/0.131, allocations: 220 kB / 467.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-06/0.1311, allocations: 0 / 467.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.1311, allocations: 8 kB / 467.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.1313, allocations: 142.5 kB / 467.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1313, allocations: 0 / 467.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.1314, allocations: 3.984 kB / 467.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1314, allocations: 0 / 467.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.1315, allocations: 96.23 kB / 467.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001819/0.1317, allocations: 218 kB / 467.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001546/0.1318, allocations: 154.9 kB / 467.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/0.132, allocations: 153.2 kB / 468 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.01e-06/0.132, allocations: 0 / 468 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.1321, allocations: 34.5 kB / 468 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.272e-06/0.1321, allocations: 0 / 468 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007406/0.1328, allocations: 498.8 kB / 468.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.831e-05/0.1329, allocations: 101.1 kB / 468.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.133, allocations: 170.4 kB / 468.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.1331, allocations: 33.73 kB / 468.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.514e-05/0.1331, allocations: 104.8 kB / 468.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.959e-05/0.1333, allocations: 122.1 kB / 469 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.779e-05/0.1333, allocations: 37.69 kB / 469.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1335, allocations: 338.8 kB / 469.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.1336, allocations: 95.95 kB / 469.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.748e-05/0.1337, allocations: 104.9 kB / 469.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/0.134, allocations: 380.3 kB / 470 MB, free: 11.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.134, allocations: 4.031 kB / 470 MB, free: 11.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003792/0.1344, allocations: 342.9 kB / 470.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.786e-05/0.1345, allocations: 81.64 kB / 470.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1345, allocations: 0 / 470.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.1345, allocations: 4 kB / 470.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.655e-06/0.1345, allocations: 7.922 kB / 470.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.1345, allocations: 0 / 470.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.192e-05/0.1346, allocations: 23.69 kB / 470.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.1347, allocations: 8 kB / 470.4 MB, free: 10.9 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.0002062/0.1349, allocations: 239.4 kB / 470.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.1349, allocations: 19.81 kB / 470.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.637e-05/0.1349, allocations: 10.66 kB / 470.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1349, allocations: 0 / 470.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.135, allocations: 3.938 kB / 470.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.135, allocations: 4 kB / 470.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000202/0.1352, allocations: 245.2 kB / 470.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1352, allocations: 0 / 470.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.405e-06/0.1352, allocations: 0 / 470.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1352, allocations: 3.938 kB / 470.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/0.1352, allocations: 11.98 kB / 471 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1352, allocations: 7.984 kB / 471 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1352, allocations: 0 / 471 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009022/0.1361, allocations: 0.912 MB / 471.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.074e-05/0.1362, allocations: 104.7 kB / 472 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.1362, allocations: 7.984 kB / 472 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.93e-05/0.1363, allocations: 8 kB / 472 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.825e-05/0.1363, allocations: 11.98 kB / 472 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.1364, allocations: 12 kB / 472 MB, free: 9.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.713e-05/0.1364, allocations: 124.3 kB / 472.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1364, allocations: 0 / 472.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009507/0.1374, allocations: 352 kB / 472.5 MB, free: 8.742 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.0008796/0.1383, allocations: 375.6 kB / 472.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.1399, allocations: 1.604 MB / 474.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1399, allocations: 0 / 474.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.1409, allocations: 1.366 MB / 475.8 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.1412, allocations: 23.52 kB / 475.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009621/0.1421, allocations: 0.6623 MB / 476.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.1425, allocations: 0.7517 MB / 477.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.326e-05/0.1425, allocations: 8.125 kB / 477.3 MB, free: 3.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.168e-05/0.1425, allocations: 7.438 kB / 477.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1425, allocations: 0 / 477.3 MB, free: 3.871 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].