Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008009/0.000801, allocations: 94.81 kB / 16.3 MB, free: 5.996 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.0008896/0.0008896, allocations: 181 kB / 17.2 MB, free: 5.914 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.232/1.232, allocations: 223.2 MB / 241.1 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2723/0.2723, allocations: 38.07 MB / 330.3 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002711/0.0002711, allocations: 15.98 kB / 400 MB, free: 9.27 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2505, allocations: 59.15 MB / 459.1 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.001918/0.2525, allocations: 1.798 MB / 460.9 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.2536, allocations: 0.9903 MB / 461.9 MB, free: 28.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.7e-05/0.2537, allocations: 0 / 461.9 MB, free: 28.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.2538, allocations: 18.48 kB / 461.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.424e-05/0.2538, allocations: 18.25 kB / 462 MB, free: 28.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005976/0.2544, allocations: 202.9 kB / 462.2 MB, free: 28.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.958e-05/0.2545, allocations: 55.06 kB / 462.2 MB, free: 28.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.253e-05/0.2546, allocations: 3.547 kB / 462.2 MB, free: 28.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.149e-05/0.2547, allocations: 32.03 kB / 462.2 MB, free: 28.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.872e-05/0.2547, allocations: 37.64 kB / 462.3 MB, free: 28.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.2548, allocations: 2.312 kB / 462.3 MB, free: 28.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004685/0.2552, allocations: 288.9 kB / 462.6 MB, free: 28.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.523e-05/0.2553, allocations: 32.39 kB / 462.6 MB, free: 28.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.262e-05/0.2553, allocations: 37.11 kB / 462.6 MB, free: 28.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005088/0.2558, allocations: 383.2 kB / 463 MB, free: 28.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.2559, allocations: 4 kB / 463 MB, free: 28.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2559, allocations: 1 kB / 463 MB, free: 28.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.2559, allocations: 0 / 463 MB, free: 28.09 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003753/0.2563, allocations: 469.8 kB / 463.5 MB, free: 27.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.2563, allocations: 8.656 kB / 463.5 MB, free: 27.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.539e-05/0.2563, allocations: 13.22 kB / 463.5 MB, free: 27.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.2565, allocations: 177.9 kB / 463.7 MB, free: 27.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.2565, allocations: 1.188 kB / 463.7 MB, free: 27.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.2565, allocations: 5.922 kB / 463.7 MB, free: 27.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.2567, allocations: 96.64 kB / 463.8 MB, free: 27.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2567, allocations: 4.5 kB / 463.8 MB, free: 27.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.2567, allocations: 3.938 kB / 463.8 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.2567, allocations: 1.312 kB / 463.8 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.129e-05/0.2568, allocations: 56.86 kB / 463.8 MB, free: 27.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001218/0.2569, allocations: 185.3 kB / 464 MB, free: 27.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.2571, allocations: 129.6 kB / 464.1 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-06/0.2571, allocations: 0.6562 kB / 464.1 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.498e-05/0.2571, allocations: 35.38 kB / 464.2 MB, free: 27.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 9.42e-07/0.2571, allocations: 0 / 464.2 MB, free: 27.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004705/0.2576, allocations: 386.5 kB / 464.5 MB, free: 26.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.2576, allocations: 94.98 kB / 464.6 MB, free: 26.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.02e-05/0.2577, allocations: 130 kB / 464.8 MB, free: 26.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.2577, allocations: 27.8 kB / 464.8 MB, free: 26.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.913e-05/0.2578, allocations: 92.31 kB / 464.9 MB, free: 26.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.812e-05/0.2578, allocations: 65.61 kB / 464.9 MB, free: 26.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-06/0.2578, allocations: 4.031 kB / 465 MB, free: 26.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.731e-05/0.2579, allocations: 322.9 kB / 465.3 MB, free: 26.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.386e-05/0.258, allocations: 57.22 kB / 465.3 MB, free: 26.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.871e-05/0.2581, allocations: 57 kB / 465.4 MB, free: 26.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.2582, allocations: 106.9 kB / 465.5 MB, free: 26.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.2582, allocations: 0 / 465.5 MB, free: 26.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002417/0.2584, allocations: 221.7 kB / 465.7 MB, free: 25.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.331e-05/0.2585, allocations: 58.27 kB / 465.8 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2585, allocations: 1.344 kB / 465.8 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.2585, allocations: 4.578 kB / 465.8 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.2585, allocations: 0 / 465.8 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.2585, allocations: 5.172 kB / 465.8 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.457e-05/0.2586, allocations: 13.25 kB / 465.8 MB, free: 25.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.2586, allocations: 6.5 kB / 465.8 MB, free: 25.9 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 0.0001275/0.2587, allocations: 186.5 kB / 466 MB, free: 25.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.431e-05/0.2588, allocations: 12.72 kB / 466 MB, free: 25.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.361e-05/0.2588, allocations: 9.266 kB / 466 MB, free: 25.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2588, allocations: 0.7031 kB / 466 MB, free: 25.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2588, allocations: 4 kB / 466 MB, free: 25.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2588, allocations: 5.578 kB / 466 MB, free: 25.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001092/0.2589, allocations: 193.4 kB / 466.2 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2589, allocations: 4.594 kB / 466.2 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-07/0.259, allocations: 5.438 kB / 466.2 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.259, allocations: 0 / 466.2 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.259, allocations: 12.67 kB / 466.2 MB, free: 25.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.259, allocations: 1.375 kB / 466.2 MB, free: 25.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.259, allocations: 0.7031 kB / 466.2 MB, free: 25.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004123/0.2594, allocations: 387.8 kB / 466.6 MB, free: 25.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.785e-05/0.2594, allocations: 92.75 kB / 466.7 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.2595, allocations: 4.797 kB / 466.7 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.84e-05/0.2595, allocations: 4.094 kB / 466.7 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.824e-05/0.2596, allocations: 6.906 kB / 466.7 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.2596, allocations: 6.453 kB / 466.7 MB, free: 25.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.981e-05/0.2596, allocations: 103.8 kB / 466.8 MB, free: 25.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2596, allocations: 0 / 466.8 MB, free: 25.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004638/0.2601, allocations: 129.3 kB / 466.9 MB, free: 25.13 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.000359/0.2605, allocations: 174.4 kB / 467.1 MB, free: 25.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005169/0.261, allocations: 0.5671 MB / 467.7 MB, free: 24.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.261, allocations: 0 / 467.7 MB, free: 24.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003375/0.2613, allocations: 475.3 kB / 468.1 MB, free: 24.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000168/0.2615, allocations: 14.86 kB / 468.1 MB, free: 24.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005751/0.2621, allocations: 436.8 kB / 468.6 MB, free: 24.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001592/0.2623, allocations: 0.7231 MB / 469.3 MB, free: 23.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.733e-05/0.2623, allocations: 2.359 kB / 469.3 MB, free: 23.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.367e-06/0.2623, allocations: 8.469 kB / 469.3 MB, free: 23.47 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2623, allocations: 1.062 kB / 469.3 MB, free: 23.47 MB / 350.1 MB [CodegenCFunctions.tpl:5389:13-5389:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].