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.001288/0.001288, allocations: 176.1 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008391/0.0008388, allocations: 88 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1666/0.1666, allocations: 38 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.622e-05/1.619e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1322, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.469/0.6013, allocations: 88.69 MB / 0.5426 GB, free: 6.281 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003459/0.6017, allocations: 79.95 kB / 0.5426 GB, free: 6.203 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02982/0.6315, allocations: 5.674 MB / 0.5482 GB, free: 0.543 MB / 379.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.6316, allocations: 0 / 0.5482 GB, free: 0.543 MB / 379.1 MB Notification: Performance of Transformations before backend: time 2.47e-05/0.6317, allocations: 0 / 0.5482 GB, free: 0.543 MB / 379.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.0009177/0.6326, allocations: 452.4 kB / 0.5486 GB, free: 52 kB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.557e-05/0.6327, allocations: 11.97 kB / 0.5486 GB, free: 40 kB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.6328, allocations: 11.91 kB / 0.5486 GB, free: 28 kB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004502/0.6333, allocations: 202.7 kB / 0.5488 GB, free: 15.79 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.6333, allocations: 0 / 0.5488 GB, free: 15.79 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.887e-05/0.6334, allocations: 7.984 kB / 0.5488 GB, free: 15.78 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002283/0.6336, allocations: 51.97 kB / 0.5489 GB, free: 15.73 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002515/0.6339, allocations: 97.61 kB / 0.549 GB, free: 15.63 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.6339, allocations: 0 / 0.549 GB, free: 15.63 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.6339, allocations: 4 kB / 0.549 GB, free: 15.62 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.634, allocations: 3.953 kB / 0.549 GB, free: 15.62 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002406/0.6342, allocations: 150.1 kB / 0.5491 GB, free: 15.44 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.6344, allocations: 130.5 kB / 0.5493 GB, free: 15.3 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.6346, allocations: 120.8 kB / 0.5494 GB, free: 15.18 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.6347, allocations: 4 kB / 0.5494 GB, free: 15.18 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.6347, allocations: 30.56 kB / 0.5494 GB, free: 15.14 MB / 395.1 MB Notification: Performance of pre-optimization done (n=20): time 2.024e-06/0.6347, allocations: 0 / 0.5494 GB, free: 15.14 MB / 395.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004787/0.6352, allocations: 169.8 kB / 0.5496 GB, free: 14.96 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.6353, allocations: 93.09 kB / 0.5497 GB, free: 14.86 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.6354, allocations: 122 kB / 0.5498 GB, free: 14.73 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.6355, allocations: 25.7 kB / 0.5498 GB, free: 14.7 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.482e-05/0.6355, allocations: 96.45 kB / 0.5499 GB, free: 14.59 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.033e-05/0.6356, allocations: 67.05 kB / 0.55 GB, free: 14.53 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-06/0.6357, allocations: 0 / 0.55 GB, free: 14.53 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.6358, allocations: 322.8 kB / 0.5503 GB, free: 14.2 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.6359, allocations: 55.97 kB / 0.5503 GB, free: 14.15 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.6361, allocations: 59.91 kB / 0.5504 GB, free: 14.09 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.6363, allocations: 71.89 kB / 0.5504 GB, free: 14.02 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.6363, allocations: 0 / 0.5504 GB, free: 14.02 MB / 395.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004189/0.6367, allocations: 165.4 kB / 0.5506 GB, free: 13.85 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.607e-05/0.6368, allocations: 57.67 kB / 0.5507 GB, free: 13.79 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.6368, allocations: 4.062 kB / 0.5507 GB, free: 13.79 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.456e-05/0.6369, allocations: 3.953 kB / 0.5507 GB, free: 13.78 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.318e-06/0.6369, allocations: 7.922 kB / 0.5507 GB, free: 13.77 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.6369, allocations: 0 / 0.5507 GB, free: 13.77 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.011e-05/0.637, allocations: 11.94 kB / 0.5507 GB, free: 13.76 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.125e-05/0.6371, allocations: 8 kB / 0.5507 GB, free: 13.75 MB / 395.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 () * 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.0001867/0.6373, allocations: 162.7 kB / 0.5508 GB, free: 13.58 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.723e-05/0.6373, allocations: 15.81 kB / 0.5509 GB, free: 13.57 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.387e-05/0.6374, allocations: 4.75 kB / 0.5509 GB, free: 13.56 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.6374, allocations: 11.97 kB / 0.5509 GB, free: 13.55 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.6374, allocations: 7.953 kB / 0.5509 GB, free: 13.54 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.6374, allocations: 3.938 kB / 0.5509 GB, free: 13.54 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.6376, allocations: 166 kB / 0.551 GB, free: 13.34 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.6376, allocations: 0 / 0.551 GB, free: 13.34 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.52e-07/0.6376, allocations: 0 / 0.551 GB, free: 13.34 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.6376, allocations: 0 / 0.551 GB, free: 13.34 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.6377, allocations: 8 kB / 0.5511 GB, free: 13.33 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.6377, allocations: 3.938 kB / 0.5511 GB, free: 13.33 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.6377, allocations: 0 / 0.5511 GB, free: 13.33 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006353/0.6383, allocations: 309 kB / 0.5513 GB, free: 13.01 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.812e-05/0.6384, allocations: 96.8 kB / 0.5514 GB, free: 12.89 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.977e-05/0.6385, allocations: 8 kB / 0.5514 GB, free: 12.89 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.627e-05/0.6386, allocations: 0 / 0.5514 GB, free: 12.89 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.6386, allocations: 8 kB / 0.5515 GB, free: 12.88 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.849e-05/0.6387, allocations: 8 kB / 0.5515 GB, free: 12.87 MB / 395.1 MB Notification: Performance of sorting global known variables: time 8.796e-05/0.6388, allocations: 95.27 kB / 0.5516 GB, free: 12.78 MB / 395.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6388, allocations: 0 / 0.5516 GB, free: 12.78 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0007912/0.6396, allocations: 147.9 kB / 0.5517 GB, free: 12.63 MB / 395.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 () * 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.0007635/0.6404, allocations: 196.9 kB / 0.5519 GB, free: 12.43 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.000895/0.6413, allocations: 0.5578 MB / 0.5524 GB, free: 11.86 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.6413, allocations: 0 / 0.5524 GB, free: 11.86 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005606/0.6419, allocations: 459.3 kB / 0.5529 GB, free: 11.4 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.6422, allocations: 20.06 kB / 0.5529 GB, free: 11.38 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007448/0.6429, allocations: 288.7 kB / 0.5532 GB, free: 11.07 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/0.6434, allocations: 0.7158 MB / 0.5539 GB, free: 10.33 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 3.41e-05/0.6434, allocations: 3.984 kB / 0.5539 GB, free: 10.33 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.032e-05/0.6435, allocations: 7.438 kB / 0.5539 GB, free: 10.32 MB / 395.1 MB Notification: Performance of SimCode: time 6.61e-07/0.6435, allocations: 0 / 0.5539 GB, free: 10.32 MB / 395.1 MB [CodegenCFunctions.tpl:4892:15-4892:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].