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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001494, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.507/1.507, allocations: 205.1 MB / 223.1 MB, free: 8.457 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 105.5 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1707/0.1707, allocations: 38.01 MB / 355.8 MB, free: 2.918 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001068, allocations: 59.91 kB / 421.9 MB, free: 37.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2891, allocations: 55.24 MB / 477.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003154/0.2923, allocations: 2.202 MB / 479.3 MB, free: 8.34 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2937, allocations: 1.128 MB / 480.4 MB, free: 7.59 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.095e-05/0.2938, allocations: 3.938 kB / 480.4 MB, free: 7.586 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.2939, allocations: 16.14 kB / 480.4 MB, free: 7.578 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.294, allocations: 52.42 kB / 480.5 MB, free: 7.555 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.2947, allocations: 248 kB / 480.7 MB, free: 7.465 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002824/0.295, allocations: 266.6 kB / 481 MB, free: 7.402 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.823e-05/0.2951, allocations: 4.25 kB / 481 MB, free: 7.402 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.693e-05/0.2952, allocations: 39.25 kB / 481 MB, free: 7.391 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.2953, allocations: 85.38 kB / 481.1 MB, free: 7.359 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.2953, allocations: 2.031 kB / 481.1 MB, free: 7.359 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005765/0.2959, allocations: 400.5 kB / 481.5 MB, free: 7.238 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.102e-05/0.296, allocations: 45.3 kB / 481.6 MB, free: 7.223 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.155e-05/0.2961, allocations: 37.98 kB / 481.6 MB, free: 7.203 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007452/0.2968, allocations: 0.5213 MB / 482.1 MB, free: 7.109 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2968, allocations: 1.156 kB / 482.1 MB, free: 7.109 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2968, allocations: 0 / 482.1 MB, free: 7.109 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.2968, allocations: 0 / 482.1 MB, free: 7.109 MB / 314.7 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.0004605/0.2973, allocations: 471.8 kB / 482.6 MB, free: 6.656 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.2973, allocations: 13.83 kB / 482.6 MB, free: 6.652 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.329e-05/0.2974, allocations: 9.188 kB / 482.6 MB, free: 6.648 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.2975, allocations: 191 kB / 482.8 MB, free: 6.438 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.2976, allocations: 1.656 kB / 482.8 MB, free: 6.438 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.2976, allocations: 6.75 kB / 482.8 MB, free: 6.434 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.2977, allocations: 95.64 kB / 482.9 MB, free: 6.387 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2978, allocations: 0 / 482.9 MB, free: 6.387 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.2978, allocations: 1.969 kB / 482.9 MB, free: 6.387 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.2978, allocations: 1.125 kB / 482.9 MB, free: 6.387 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.534e-05/0.2979, allocations: 69.5 kB / 483 MB, free: 6.363 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001293/0.298, allocations: 176.1 kB / 483.1 MB, free: 6.164 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.2981, allocations: 129.2 kB / 483.3 MB, free: 6.086 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.747e-05/0.2982, allocations: 123.7 kB / 483.4 MB, free: 6.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.2983, allocations: 0 / 483.4 MB, free: 6.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.2983, allocations: 32.47 kB / 483.4 MB, free: 5.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 1.864e-06/0.2983, allocations: 4 kB / 483.4 MB, free: 5.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004513/0.2987, allocations: 304.2 kB / 483.7 MB, free: 5.855 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.2988, allocations: 91.38 kB / 483.8 MB, free: 5.762 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.059e-05/0.2989, allocations: 132.7 kB / 483.9 MB, free: 5.656 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.2989, allocations: 31.17 kB / 484 MB, free: 5.621 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.798e-05/0.2989, allocations: 89.73 kB / 484.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.563e-05/0.299, allocations: 68.56 kB / 484.1 MB, free: 5.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-05/0.2991, allocations: 27.56 kB / 484.1 MB, free: 5.461 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.198e-05/0.2991, allocations: 326.5 kB / 484.5 MB, free: 5.141 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.371e-05/0.2992, allocations: 56.81 kB / 484.5 MB, free: 5.129 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.172e-05/0.2993, allocations: 63.14 kB / 484.6 MB, free: 5.113 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/0.2995, allocations: 228.6 kB / 484.8 MB, free: 5.008 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.2995, allocations: 0 / 484.8 MB, free: 5.008 MB / 314.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002271/0.2997, allocations: 222.5 kB / 485 MB, free: 4.906 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.074e-05/0.2998, allocations: 56.16 kB / 485.1 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2998, allocations: 0.75 kB / 485.1 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.2998, allocations: 1.375 kB / 485.1 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.2998, allocations: 0 / 485.1 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.2998, allocations: 4.719 kB / 485.1 MB, free: 4.867 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.33e-05/0.2999, allocations: 13.34 kB / 485.1 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.2999, allocations: 6.109 kB / 485.1 MB, free: 4.859 MB / 314.7 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.000122/0.3001, allocations: 184.9 kB / 485.3 MB, free: 4.703 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.178e-05/0.3001, allocations: 17 kB / 485.3 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.534e-05/0.3001, allocations: 8.875 kB / 485.3 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.3001, allocations: 0 / 485.3 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3001, allocations: 2.266 kB / 485.3 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.3001, allocations: 0 / 485.3 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.3002, allocations: 198.3 kB / 485.5 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3002, allocations: 0 / 485.5 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.163e-06/0.3003, allocations: 4 kB / 485.5 MB, free: 4.484 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3003, allocations: 1.375 kB / 485.5 MB, free: 4.484 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.3003, allocations: 4.688 kB / 485.5 MB, free: 4.484 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3003, allocations: 4.875 kB / 485.5 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3003, allocations: 1.375 kB / 485.5 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000769/0.3011, allocations: 1.104 MB / 486.6 MB, free: 3.668 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.909e-05/0.3011, allocations: 90.33 kB / 486.7 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.3011, allocations: 2.875 kB / 486.7 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.512e-05/0.3012, allocations: 7.875 kB / 486.7 MB, free: 3.562 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.13e-05/0.3012, allocations: 3.031 kB / 486.7 MB, free: 3.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.3012, allocations: 11.05 kB / 486.7 MB, free: 3.559 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.166e-05/0.3013, allocations: 104 kB / 486.8 MB, free: 3.477 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3013, allocations: 1.062 kB / 486.8 MB, free: 3.477 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000562/0.3019, allocations: 132 kB / 487 MB, free: 3.465 MB / 314.7 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.0004202/0.3023, allocations: 186.4 kB / 487.2 MB, free: 3.352 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005041/0.3028, allocations: 0.5633 MB / 487.7 MB, free: 3.035 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.3028, allocations: 0 / 487.7 MB, free: 3.035 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003389/0.3032, allocations: 467.4 kB / 488.2 MB, free: 2.742 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.3034, allocations: 22.38 kB / 488.2 MB, free: 2.734 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006989/0.3041, allocations: 0.5908 MB / 488.8 MB, free: 2.355 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001638/0.3043, allocations: 0.7216 MB / 489.5 MB, free: 1.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.33e-05/0.3043, allocations: 2.031 kB / 489.5 MB, free: 1.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.005e-06/0.3043, allocations: 8.656 kB / 489.5 MB, free: 1.652 MB / 314.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3043, allocations: 1.531 kB / 489.5 MB, free: 1.652 MB / 314.7 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].