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.001214/0.001214, allocations: 114.1 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.001181/0.001181, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.351/1.351, 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.1726/0.1726, allocations: 38.03 MB / 329.4 MB, free: 8.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 64.8 kB / 398.3 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.117, allocations: 58.06 MB / 456.3 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003753/0.1208, allocations: 2.146 MB / 458.5 MB, free: 6.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002855/0.1237, allocations: 2.057 MB / 460.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.948e-05/0.1237, allocations: 3.938 kB / 460.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.1239, allocations: 7.984 kB / 460.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.124, allocations: 31.83 kB / 460.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002155/0.1262, allocations: 0.7453 MB / 461.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000175/0.1264, allocations: 79.7 kB / 461.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.697e-05/0.1264, allocations: 8.125 kB / 461.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.941e-05/0.1266, allocations: 43.83 kB / 461.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.023e-05/0.1267, allocations: 47.83 kB / 461.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.1267, allocations: 4 kB / 461.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001904/0.1286, allocations: 1.259 MB / 462.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.159e-05/0.1287, allocations: 31.91 kB / 462.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.673e-05/0.1287, allocations: 43.62 kB / 462.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002057/0.1308, allocations: 1.271 MB / 464.1 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1308, allocations: 4 kB / 464.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1308, allocations: 3.938 kB / 464.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.1309, allocations: 0 / 464.1 MB, free: 0.6055 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.0008945/0.1318, allocations: 0.5514 MB / 464.7 MB, free: 0 / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.1318, allocations: 8.344 kB / 464.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.388e-05/0.1319, allocations: 16.73 kB / 464.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.1321, allocations: 199.7 kB / 464.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.787e-06/0.1321, allocations: 3.938 kB / 464.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.1321, allocations: 3.938 kB / 464.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001884/0.1323, allocations: 108.5 kB / 465 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1324, allocations: 0 / 465 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.1324, allocations: 0 / 465 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.1324, allocations: 0 / 465 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.65e-05/0.1325, allocations: 63.83 kB / 465.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001886/0.1327, allocations: 193.4 kB / 465.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.1328, allocations: 102.5 kB / 465.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.258e-05/0.1329, allocations: 88.86 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.458e-06/0.1329, allocations: 8 kB / 465.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.133, allocations: 30.56 kB / 465.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.162e-06/0.133, allocations: 0 / 465.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005148/0.1335, allocations: 315.5 kB / 465.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.1335, allocations: 93.09 kB / 465.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.1337, allocations: 156.5 kB / 466 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.1337, allocations: 29.7 kB / 466.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.627e-05/0.1338, allocations: 104.6 kB / 466.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.965e-05/0.1339, allocations: 78.75 kB / 466.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.097e-05/0.1339, allocations: 29.66 kB / 466.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1341, allocations: 330.8 kB / 466.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.564e-05/0.1342, allocations: 59.97 kB / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.826e-05/0.1342, allocations: 59.98 kB / 466.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.1345, allocations: 255.6 kB / 467 MB, free: 13.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1345, allocations: 0 / 467 MB, free: 13.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002866/0.1348, allocations: 235 kB / 467.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.261e-05/0.1349, allocations: 69.72 kB / 467.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.1349, allocations: 3.938 kB / 467.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.1349, allocations: 0 / 467.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.1349, allocations: 0 / 467.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.1349, allocations: 0 / 467.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.81e-05/0.135, allocations: 15.78 kB / 467.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.922e-05/0.1351, allocations: 11.98 kB / 467.3 MB, free: 13.17 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.0001642/0.1352, allocations: 195.4 kB / 467.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.754e-05/0.1353, allocations: 15.91 kB / 467.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.899e-05/0.1353, allocations: 13.19 kB / 467.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1353, allocations: 0 / 467.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1353, allocations: 3.938 kB / 467.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1353, allocations: 0 / 467.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001684/0.1355, allocations: 213.4 kB / 467.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1355, allocations: 0 / 467.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.1355, allocations: 0 / 467.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1355, allocations: 0 / 467.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.1355, allocations: 4 kB / 467.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.1355, allocations: 4 kB / 467.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1356, allocations: 0 / 467.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005717/0.1361, allocations: 0.5289 MB / 468.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.416e-05/0.1362, allocations: 92.86 kB / 468.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.1362, allocations: 4 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.122e-05/0.1363, allocations: 4 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.647e-05/0.1363, allocations: 7.938 kB / 468.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.1363, allocations: 7.984 kB / 468.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.691e-05/0.1364, allocations: 115.2 kB / 468.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1364, allocations: 4.031 kB / 468.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009722/0.1374, allocations: 332 kB / 468.8 MB, free: 11.54 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.001204/0.1386, allocations: 370.4 kB / 469.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006938/0.1393, allocations: 0.7101 MB / 469.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1393, allocations: 0 / 469.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004733/0.1398, allocations: 0.5774 MB / 470.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/0.1401, allocations: 12 kB / 470.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000761/0.1408, allocations: 0.5016 MB / 471 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.1412, allocations: 0.7316 MB / 471.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.431e-05/0.1412, allocations: 0 / 471.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.572e-05/0.1412, allocations: 11.44 kB / 471.7 MB, free: 8.555 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1412, allocations: 0 / 471.7 MB, free: 8.555 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].