Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001014/0.001014, allocations: 112.2 kB / 16.51 MB, free: 6.715 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.001054/0.001055, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.427/1.427, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1717/0.1717, allocations: 38.03 MB / 329.3 MB, free: 9.016 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 59.62 kB / 398.1 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1256, allocations: 58.07 MB / 456.1 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.004107/0.1298, allocations: 2.143 MB / 458.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003361/0.1332, allocations: 2.176 MB / 460.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.601e-05/0.1332, allocations: 0 / 460.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.1334, allocations: 11.92 kB / 460.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.1336, allocations: 23.89 kB / 460.5 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001932/0.1355, allocations: 0.6865 MB / 461.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001838/0.1357, allocations: 131.6 kB / 461.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.937e-05/0.1358, allocations: 4.172 kB / 461.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.351e-05/0.1359, allocations: 27.86 kB / 461.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.642e-05/0.136, allocations: 47.83 kB / 461.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.136, allocations: 4 kB / 461.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001745/0.1377, allocations: 1.236 MB / 462.6 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.008e-05/0.1378, allocations: 35.84 kB / 462.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.78e-05/0.1379, allocations: 39.67 kB / 462.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001465/0.1394, allocations: 1.31 MB / 464 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1394, allocations: 0 / 464 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.1394, allocations: 0 / 464 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1394, allocations: 0 / 464 MB, free: 0.6094 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007264/0.1401, allocations: 0.5514 MB / 464.6 MB, free: 4 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.1402, allocations: 8.078 kB / 464.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.339e-05/0.1403, allocations: 12.75 kB / 464.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.1405, allocations: 214.3 kB / 464.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.1405, allocations: 4 kB / 464.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.1405, allocations: 0 / 464.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.1407, allocations: 97.66 kB / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1408, allocations: 0 / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.1408, allocations: 0 / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1408, allocations: 3.984 kB / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.197e-05/0.1409, allocations: 71.77 kB / 465 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001789/0.1411, allocations: 185.4 kB / 465.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.1412, allocations: 106.5 kB / 465.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.1413, allocations: 92.86 kB / 465.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.556e-06/0.1414, allocations: 0 / 465.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.1414, allocations: 30.56 kB / 465.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 8.92e-07/0.1414, allocations: 0 / 465.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005616/0.142, allocations: 315.5 kB / 465.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.915e-05/0.1421, allocations: 101.1 kB / 465.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.1422, allocations: 152.5 kB / 465.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.1422, allocations: 29.73 kB / 466 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.422e-05/0.1423, allocations: 100.6 kB / 466.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.08e-05/0.1424, allocations: 74.81 kB / 466.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.922e-05/0.1425, allocations: 33.64 kB / 466.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1426, allocations: 330.8 kB / 466.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.195e-05/0.1427, allocations: 55.97 kB / 466.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.403e-05/0.1428, allocations: 63.97 kB / 466.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.1431, allocations: 255.4 kB / 466.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1431, allocations: 4.031 kB / 466.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000276/0.1433, allocations: 242.9 kB / 467.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.411e-05/0.1434, allocations: 61.66 kB / 467.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1434, allocations: 4 kB / 467.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1435, allocations: 0 / 467.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.1435, allocations: 3.938 kB / 467.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1435, allocations: 0 / 467.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.05e-05/0.1435, allocations: 11.84 kB / 467.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.1436, allocations: 8 kB / 467.2 MB, free: 13.18 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.0001978/0.1438, allocations: 207.4 kB / 467.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.1438, allocations: 11.91 kB / 467.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.722e-05/0.1438, allocations: 9.188 kB / 467.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.1438, allocations: 0 / 467.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1438, allocations: 0 / 467.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1439, allocations: 0 / 467.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001673/0.144, allocations: 209.4 kB / 467.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.144, allocations: 4 kB / 467.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.144, allocations: 0 / 467.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.144, allocations: 0 / 467.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.1441, allocations: 4 kB / 467.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1441, allocations: 4 kB / 467.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1441, allocations: 0 / 467.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000619/0.1447, allocations: 0.5289 MB / 468.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.331e-05/0.1448, allocations: 92.86 kB / 468.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.1448, allocations: 4 kB / 468.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.948e-05/0.1449, allocations: 4 kB / 468.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.383e-05/0.1449, allocations: 4 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.1449, allocations: 8.031 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001018/0.145, allocations: 123.2 kB / 468.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.145, allocations: 0 / 468.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009276/0.146, allocations: 327.9 kB / 468.7 MB, free: 11.55 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.0009509/0.1469, allocations: 378 kB / 469.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008107/0.1477, allocations: 0.7178 MB / 469.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1478, allocations: 3.938 kB / 469.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005675/0.1483, allocations: 0.5734 MB / 470.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.1486, allocations: 12 kB / 470.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007271/0.1493, allocations: 0.5034 MB / 470.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.1496, allocations: 0.7202 MB / 471.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.419e-05/0.1497, allocations: 7.922 kB / 471.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.242e-05/0.1497, allocations: 15.44 kB / 471.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1497, allocations: 0 / 471.6 MB, free: 8.551 MB / 350.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].