Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009481/0.0009481, allocations: 88.52 kB / 16.32 MB, free: 6.449 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.00109/0.00109, allocations: 181.7 kB / 17.21 MB, free: 6.32 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.237/1.237, allocations: 223.3 MB / 241.2 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2729/0.2729, allocations: 38.09 MB / 330.4 MB, free: 14.13 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.000269, allocations: 8 kB / 400.1 MB, free: 9.246 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2432, allocations: 59.16 MB / 459.2 MB, free: 30.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.001838/0.2451, allocations: 1.768 MB / 461 MB, free: 28.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002344/0.2474, allocations: 1.912 MB / 462.9 MB, free: 27.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.948e-05/0.2475, allocations: 3.938 kB / 462.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.2476, allocations: 15.94 kB / 462.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.245e-05/0.2477, allocations: 29.84 kB / 463 MB, free: 27.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.2491, allocations: 0.6315 MB / 463.6 MB, free: 27.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001186/0.2492, allocations: 102.3 kB / 463.7 MB, free: 27.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.656e-05/0.2493, allocations: 3.109 kB / 463.7 MB, free: 27.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.892e-05/0.2494, allocations: 32.78 kB / 463.7 MB, free: 27.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.118e-05/0.2495, allocations: 40.77 kB / 463.8 MB, free: 27.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.014e-05/0.2495, allocations: 1.375 kB / 463.8 MB, free: 27.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001518/0.251, allocations: 1.053 MB / 464.8 MB, free: 27.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.758e-05/0.251, allocations: 12.7 kB / 464.8 MB, free: 27.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.454e-05/0.2511, allocations: 35.89 kB / 464.9 MB, free: 27.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.2521, allocations: 0.9024 MB / 465.8 MB, free: 26.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2521, allocations: 6.297 kB / 465.8 MB, free: 26.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2521, allocations: 0 / 465.8 MB, free: 26.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.2521, allocations: 0 / 465.8 MB, free: 26.93 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004086/0.2525, allocations: 500 kB / 466.3 MB, free: 26.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.2526, allocations: 8.469 kB / 466.3 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.211e-05/0.2526, allocations: 12.03 kB / 466.3 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.2527, allocations: 184 kB / 466.5 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.787e-06/0.2528, allocations: 9.375 kB / 466.5 MB, free: 26.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.2528, allocations: 1.719 kB / 466.5 MB, free: 26.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.2529, allocations: 59.39 kB / 466.5 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.2529, allocations: 0 / 466.5 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.2529, allocations: 1.344 kB / 466.5 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.2529, allocations: 0 / 466.5 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.141e-05/0.253, allocations: 24.28 kB / 466.6 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.436e-05/0.2531, allocations: 167 kB / 466.7 MB, free: 25.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.97e-05/0.2531, allocations: 53.55 kB / 466.8 MB, free: 25.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.881e-05/0.2532, allocations: 33.81 kB / 466.8 MB, free: 25.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-06/0.2532, allocations: 0 / 466.8 MB, free: 25.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.2532, allocations: 36.06 kB / 466.8 MB, free: 25.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 8.31e-07/0.2532, allocations: 0 / 466.8 MB, free: 25.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002295/0.2534, allocations: 151.3 kB / 467 MB, free: 25.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.2535, allocations: 89.7 kB / 467.1 MB, free: 25.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.019e-05/0.2536, allocations: 120.2 kB / 467.2 MB, free: 25.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.877e-06/0.2536, allocations: 27.53 kB / 467.2 MB, free: 25.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.128e-05/0.2536, allocations: 95.23 kB / 467.3 MB, free: 25.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.167e-05/0.2536, allocations: 25.8 kB / 467.3 MB, free: 25.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.2537, allocations: 0 / 467.3 MB, free: 25.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.815e-05/0.2537, allocations: 319.9 kB / 467.7 MB, free: 25.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.612e-05/0.2537, allocations: 24.02 kB / 467.7 MB, free: 25.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.492e-05/0.2538, allocations: 18.39 kB / 467.7 MB, free: 25.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.084e-05/0.2539, allocations: 70.42 kB / 467.8 MB, free: 25.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2539, allocations: 0 / 467.8 MB, free: 25.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001314/0.254, allocations: 134.6 kB / 467.9 MB, free: 25.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.254, allocations: 43.52 kB / 467.9 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2541, allocations: 0 / 467.9 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.457e-06/0.2541, allocations: 0 / 467.9 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-07/0.2541, allocations: 1.125 kB / 467.9 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.2541, allocations: 1.547 kB / 467.9 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.292e-05/0.2541, allocations: 6.094 kB / 467.9 MB, free: 24.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.2541, allocations: 7.094 kB / 468 MB, free: 24.98 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.452e-05/0.2542, allocations: 155.8 kB / 468.1 MB, free: 24.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.2542, allocations: 13.77 kB / 468.1 MB, free: 24.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.183e-05/0.2543, allocations: 10.92 kB / 468.1 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.2543, allocations: 5.406 kB / 468.1 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2543, allocations: 0 / 468.1 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-06/0.2543, allocations: 0 / 468.1 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.008e-05/0.2544, allocations: 170.4 kB / 468.3 MB, free: 24.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.2544, allocations: 0 / 468.3 MB, free: 24.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.2544, allocations: 0 / 468.3 MB, free: 24.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2544, allocations: 9.141 kB / 468.3 MB, free: 24.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.2544, allocations: 4.266 kB / 468.3 MB, free: 24.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2544, allocations: 3.938 kB / 468.3 MB, free: 24.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2544, allocations: 1.281 kB / 468.3 MB, free: 24.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002148/0.2546, allocations: 212.7 kB / 468.5 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.046e-05/0.2546, allocations: 88.27 kB / 468.6 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.2547, allocations: 6.781 kB / 468.6 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.257e-05/0.2547, allocations: 1.25 kB / 468.6 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.76e-05/0.2547, allocations: 10.97 kB / 468.6 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.926e-06/0.2547, allocations: 3.344 kB / 468.6 MB, free: 24.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.681e-05/0.2548, allocations: 96.31 kB / 468.7 MB, free: 24.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2548, allocations: 1.25 kB / 468.7 MB, free: 24.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007498/0.2555, allocations: 312 kB / 469 MB, free: 24.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007256/0.2563, allocations: 357.1 kB / 469.4 MB, free: 24.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000218/0.2565, allocations: 201.2 kB / 469.6 MB, free: 24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2565, allocations: 0 / 469.6 MB, free: 24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.2566, allocations: 150.2 kB / 469.7 MB, free: 23.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001916/0.2568, allocations: 8.25 kB / 469.7 MB, free: 23.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003442/0.2572, allocations: 264.6 kB / 470 MB, free: 23.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.616e-05/0.2573, allocations: 0.6948 MB / 470.7 MB, free: 23.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.608e-06/0.2573, allocations: 1.125 kB / 470.7 MB, free: 23.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.137e-06/0.2573, allocations: 12.47 kB / 470.7 MB, free: 23.05 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2573, allocations: 1.094 kB / 470.7 MB, free: 23.05 MB / 350.1 MB [CodegenCFunctions.tpl:5416:13-5416:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].