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.001197/0.001197, allocations: 100.1 kB / 16.5 MB, free: 6.641 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.00121/0.00121, allocations: 195.8 kB / 17.42 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.35/1.35, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1701/0.1701, allocations: 38.02 MB / 329.3 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 64.77 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1285, allocations: 58.07 MB / 456.2 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003606/0.1322, allocations: 2.135 MB / 458.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00348/0.1357, allocations: 2.18 MB / 460.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.834e-05/0.1357, allocations: 0 / 460.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.1359, allocations: 11.92 kB / 460.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.136, allocations: 27.89 kB / 460.5 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001842/0.1379, allocations: 0.6885 MB / 461.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000135/0.138, allocations: 127.6 kB / 461.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.729e-05/0.1381, allocations: 4.188 kB / 461.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.667e-05/0.1382, allocations: 27.84 kB / 461.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.424e-05/0.1383, allocations: 55.81 kB / 461.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.1383, allocations: 0 / 461.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001804/0.1401, allocations: 1.244 MB / 462.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.66e-05/0.1402, allocations: 47.83 kB / 462.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.06e-05/0.1403, allocations: 55.48 kB / 462.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.1418, allocations: 1.329 MB / 464.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1418, allocations: 0 / 464.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1418, allocations: 0 / 464.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.1418, allocations: 0 / 464.1 MB, free: 0.5391 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.0006856/0.1425, allocations: 0.6018 MB / 464.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1425, allocations: 8.031 kB / 464.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.988e-05/0.1426, allocations: 16.66 kB / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001978/0.1428, allocations: 215.5 kB / 464.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.454e-06/0.1428, allocations: 0 / 464.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.1428, allocations: 0 / 464.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.1431, allocations: 150.5 kB / 465.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.1431, allocations: 0 / 465.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.1431, allocations: 0 / 465.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1431, allocations: 3.938 kB / 465.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.1433, allocations: 92.3 kB / 465.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000239/0.1435, allocations: 221.5 kB / 465.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.1438, allocations: 158.5 kB / 465.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/0.144, allocations: 148.8 kB / 465.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.188e-06/0.144, allocations: 0 / 465.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.144, allocations: 34.5 kB / 465.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.183e-06/0.144, allocations: 0 / 465.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009104/0.145, allocations: 491.6 kB / 466.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.114e-05/0.1451, allocations: 109.1 kB / 466.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.1453, allocations: 171.7 kB / 466.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.1453, allocations: 29.7 kB / 466.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.439e-05/0.1454, allocations: 104.8 kB / 466.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.1455, allocations: 126.1 kB / 466.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.988e-05/0.1456, allocations: 37.69 kB / 466.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1458, allocations: 338.8 kB / 467.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.146, allocations: 99.89 kB / 467.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.1461, allocations: 100.9 kB / 467.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005383/0.1467, allocations: 388.3 kB / 467.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1467, allocations: 0 / 467.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005254/0.1472, allocations: 338.9 kB / 468 MB, free: 12.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.1474, allocations: 81.64 kB / 468.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1474, allocations: 0 / 468.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.1474, allocations: 3.984 kB / 468.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.774e-06/0.1474, allocations: 0 / 468.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1474, allocations: 4 kB / 468.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.1475, allocations: 19.75 kB / 468.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-05/0.1476, allocations: 8 kB / 468.1 MB, free: 12.24 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.0002905/0.1479, allocations: 243.3 kB / 468.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.398e-05/0.148, allocations: 23.81 kB / 468.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.269e-05/0.148, allocations: 10.66 kB / 468.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.148, allocations: 0 / 468.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.148, allocations: 0 / 468.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.148, allocations: 0 / 468.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/0.1483, allocations: 245.2 kB / 468.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.1483, allocations: 7.938 kB / 468.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.1483, allocations: 3.938 kB / 468.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1483, allocations: 4 kB / 468.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.1484, allocations: 11.98 kB / 468.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1484, allocations: 0 / 468.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1484, allocations: 0 / 468.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.1498, allocations: 0.912 MB / 469.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.487e-05/0.1499, allocations: 104.8 kB / 469.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.644e-05/0.15, allocations: 4 kB / 469.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.532e-05/0.15, allocations: 8 kB / 469.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.395e-05/0.1501, allocations: 12.02 kB / 469.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-05/0.1501, allocations: 12 kB / 469.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001274/0.1503, allocations: 127.5 kB / 469.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1503, allocations: 0 / 469.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00131/0.1516, allocations: 355.9 kB / 470.2 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.001279/0.1529, allocations: 378.4 kB / 470.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001978/0.1549, allocations: 1.6 MB / 472.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.1549, allocations: 0 / 472.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001478/0.1564, allocations: 1.37 MB / 473.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003903/0.1568, allocations: 23.88 kB / 473.5 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009611/0.1578, allocations: 0.7384 MB / 474.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.1581, allocations: 0.7559 MB / 475 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.162e-05/0.1581, allocations: 0 / 475 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.24e-05/0.1581, allocations: 7.438 kB / 475 MB, free: 5.125 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1581, allocations: 0 / 475 MB, free: 5.125 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].