Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_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.001223/0.001223, allocations: 111.3 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.00115/0.00115, 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.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1749/0.1749, allocations: 38.04 MB / 330.5 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002246/0.002246, allocations: 60.17 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1328, allocations: 58.06 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003523/0.1364, allocations: 2.098 MB / 460.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002723/0.1391, allocations: 2.043 MB / 462.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.384e-05/0.1392, allocations: 0 / 462.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.1393, allocations: 15.86 kB / 462.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.229e-05/0.1395, allocations: 27.83 kB / 462.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0019/0.1414, allocations: 0.8362 MB / 463.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000122/0.1415, allocations: 79.69 kB / 463.4 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.292e-05/0.1416, allocations: 4.188 kB / 463.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.887e-05/0.1416, allocations: 39.83 kB / 463.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.338e-05/0.1417, allocations: 39.78 kB / 463.5 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.283e-05/0.1417, allocations: 4 kB / 463.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001684/0.1434, allocations: 1.407 MB / 464.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.062e-05/0.1435, allocations: 15.92 kB / 464.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.772e-05/0.1435, allocations: 27.81 kB / 464.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.1448, allocations: 1.329 MB / 466.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1448, allocations: 0 / 466.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1448, allocations: 0 / 466.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1448, allocations: 4 kB / 466.3 MB, free: 15.33 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.0005601/0.1454, allocations: 0.5085 MB / 466.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.1454, allocations: 15.89 kB / 466.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.67e-05/0.1455, allocations: 4.844 kB / 466.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.1456, allocations: 191.6 kB / 467 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.782e-06/0.1457, allocations: 4 kB / 467 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.1457, allocations: 0 / 467 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.1458, allocations: 69.61 kB / 467.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.1458, allocations: 0 / 467.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.1458, allocations: 0 / 467.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1459, allocations: 0 / 467.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.169e-05/0.1459, allocations: 31.98 kB / 467.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.1461, allocations: 177.4 kB / 467.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.666e-05/0.1461, allocations: 62.56 kB / 467.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.917e-05/0.1462, allocations: 52.84 kB / 467.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.794e-06/0.1462, allocations: 4.156 kB / 467.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.1463, allocations: 34.56 kB / 467.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.1463, allocations: 3.938 kB / 467.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002873/0.1466, allocations: 187.2 kB / 467.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.1466, allocations: 89.09 kB / 467.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.1467, allocations: 132.6 kB / 467.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.1467, allocations: 29.73 kB / 467.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.019e-05/0.1468, allocations: 92.14 kB / 467.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.924e-05/0.1468, allocations: 39.44 kB / 468 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.864e-05/0.1469, allocations: 25.7 kB / 468 MB, free: 13.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.147, allocations: 326.8 kB / 468.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.575e-05/0.1471, allocations: 27.98 kB / 468.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.32e-05/0.1471, allocations: 35.92 kB / 468.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.1473, allocations: 164.1 kB / 468.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1473, allocations: 4.031 kB / 468.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001677/0.1474, allocations: 155.2 kB / 468.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.129e-05/0.1475, allocations: 45.69 kB / 468.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1475, allocations: 0 / 468.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.1475, allocations: 7.922 kB / 468.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.1475, allocations: 0 / 468.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.1475, allocations: 0 / 468.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.729e-05/0.1476, allocations: 7.938 kB / 468.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.1476, allocations: 8 kB / 468.8 MB, free: 12.57 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.0001129/0.1477, allocations: 167.5 kB / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.921e-05/0.1478, allocations: 7.906 kB / 468.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.646e-05/0.1478, allocations: 16.66 kB / 469 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1478, allocations: 3.984 kB / 469 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1478, allocations: 0 / 469 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1478, allocations: 0 / 469 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.1479, allocations: 185.5 kB / 469.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1479, allocations: 0 / 469.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.074e-06/0.1479, allocations: 4 kB / 469.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.1479, allocations: 0 / 469.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.148, allocations: 4 kB / 469.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.148, allocations: 4 kB / 469.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.148, allocations: 3.938 kB / 469.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003055/0.1483, allocations: 287 kB / 469.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.755e-05/0.1483, allocations: 81.02 kB / 469.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.1484, allocations: 7.984 kB / 469.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.686e-05/0.1484, allocations: 0 / 469.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.956e-05/0.1484, allocations: 4 kB / 469.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.1484, allocations: 8.031 kB / 469.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.664e-05/0.1485, allocations: 105.9 kB / 469.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.903e-06/0.1485, allocations: 0 / 469.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006449/0.1492, allocations: 331.8 kB / 470 MB, free: 11.27 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.0007997/0.15, allocations: 374 kB / 470.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003281/0.1503, allocations: 303.3 kB / 470.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1503, allocations: 0 / 470.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.1505, allocations: 223.3 kB / 470.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.1507, allocations: 8 kB / 470.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004383/0.1512, allocations: 304.6 kB / 471.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.1514, allocations: 0.708 MB / 471.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.237e-05/0.1514, allocations: 4 kB / 471.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.104e-05/0.1515, allocations: 7.438 kB / 471.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1515, allocations: 0 / 471.9 MB, free: 9.277 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].