Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001386/0.001386, allocations: 183.8 kB / 8.136 MB, free: 2.219 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.152/1.152, allocations: 205.2 MB / 213.7 MB, free: 13.91 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.0009152/0.0009151, allocations: 100.9 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1658/0.1658, allocations: 37.97 MB / 347.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.883e-06/6.903e-06, allocations: 0 / 410 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09863, allocations: 56.32 MB / 466.3 MB, free: 6.484 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3013/0.4, allocations: 92.03 MB / 0.5453 GB, free: 2.559 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.4003, allocations: 79.95 kB / 0.5454 GB, free: 2.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.04392/0.4442, allocations: 12.03 MB / 0.5571 GB, free: 6.445 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.4443, allocations: 4 kB / 0.5571 GB, free: 6.441 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000934/0.4452, allocations: 0.5501 MB / 0.5576 GB, free: 5.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.4453, allocations: 8.031 kB / 0.5576 GB, free: 5.832 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.634e-05/0.4453, allocations: 15.81 kB / 0.5577 GB, free: 5.816 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002146/0.4456, allocations: 190.9 kB / 0.5578 GB, free: 5.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.776e-06/0.4456, allocations: 0 / 0.5578 GB, free: 5.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.4456, allocations: 4 kB / 0.5579 GB, free: 5.586 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.667e-05/0.4457, allocations: 35.92 kB / 0.5579 GB, free: 5.551 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.4458, allocations: 72.28 kB / 0.558 GB, free: 5.477 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.4458, allocations: 0 / 0.558 GB, free: 5.477 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.4459, allocations: 4 kB / 0.558 GB, free: 5.473 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.4459, allocations: 4 kB / 0.558 GB, free: 5.469 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001382/0.446, allocations: 154.1 kB / 0.5581 GB, free: 5.281 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.828e-05/0.4461, allocations: 71.25 kB / 0.5582 GB, free: 5.203 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.4462, allocations: 56.86 kB / 0.5582 GB, free: 5.145 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.993e-06/0.4462, allocations: 0 / 0.5582 GB, free: 5.145 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.4463, allocations: 42.41 kB / 0.5583 GB, free: 5.094 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 3.066e-06/0.4463, allocations: 7.938 kB / 0.5583 GB, free: 5.086 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003251/0.4466, allocations: 145.8 kB / 0.5584 GB, free: 4.938 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.4467, allocations: 89.11 kB / 0.5585 GB, free: 4.832 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.4468, allocations: 133.3 kB / 0.5586 GB, free: 4.691 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.4468, allocations: 25.7 kB / 0.5587 GB, free: 4.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.933e-05/0.4468, allocations: 92.36 kB / 0.5587 GB, free: 4.562 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.45e-05/0.4469, allocations: 39.36 kB / 0.5588 GB, free: 4.523 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-06/0.4469, allocations: 0 / 0.5588 GB, free: 4.523 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.447, allocations: 330.7 kB / 0.5591 GB, free: 4.191 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.79e-05/0.4471, allocations: 40.02 kB / 0.5591 GB, free: 4.152 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.568e-05/0.4472, allocations: 35.92 kB / 0.5592 GB, free: 4.117 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.4473, allocations: 56.58 kB / 0.5592 GB, free: 4.062 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4473, allocations: 0 / 0.5592 GB, free: 4.062 MB / 394.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002346/0.4475, allocations: 143.1 kB / 0.5594 GB, free: 3.918 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.4476, allocations: 11.98 kB / 0.5594 GB, free: 3.906 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.4476, allocations: 3.906 kB / 0.5594 GB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.4476, allocations: 0 / 0.5594 GB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.4476, allocations: 0 / 0.5594 GB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.4476, allocations: 0 / 0.5594 GB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.293e-05/0.4476, allocations: 12 kB / 0.5594 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.4477, allocations: 0 / 0.5594 GB, free: 3.891 MB / 394.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 () * 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.0001056/0.4478, allocations: 154.6 kB / 0.5595 GB, free: 3.727 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.4478, allocations: 15.89 kB / 0.5595 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.78e-05/0.4478, allocations: 4.562 kB / 0.5596 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.4478, allocations: 7.906 kB / 0.5596 GB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4479, allocations: 4 kB / 0.5596 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.4479, allocations: 0 / 0.5596 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.448, allocations: 162.1 kB / 0.5597 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.448, allocations: 4 kB / 0.5597 GB, free: 3.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.448, allocations: 0 / 0.5597 GB, free: 3.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.448, allocations: 4 kB / 0.5597 GB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.448, allocations: 4 kB / 0.5597 GB, free: 3.492 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.448, allocations: 0 / 0.5597 GB, free: 3.492 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.448, allocations: 0 / 0.5597 GB, free: 3.492 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003817/0.4484, allocations: 252.8 kB / 0.56 GB, free: 3.227 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.482e-05/0.4485, allocations: 92.86 kB / 0.5601 GB, free: 3.117 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.4485, allocations: 4 kB / 0.5601 GB, free: 3.113 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.152e-05/0.4486, allocations: 8.031 kB / 0.5601 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.695e-05/0.4486, allocations: 3.984 kB / 0.5601 GB, free: 3.102 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.4486, allocations: 11.98 kB / 0.5601 GB, free: 3.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.067e-05/0.4487, allocations: 107.3 kB / 0.5602 GB, free: 2.984 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008526/0.4495, allocations: 367.5 kB / 0.5605 GB, free: 2.625 MB / 394.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 () * 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.0009123/0.4505, allocations: 417.9 kB / 0.5609 GB, free: 2.207 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002207/0.4507, allocations: 165.6 kB / 0.5611 GB, free: 2.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4507, allocations: 0 / 0.5611 GB, free: 2.039 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.4509, allocations: 229.6 kB / 0.5613 GB, free: 1.809 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001555/0.4511, allocations: 12.81 kB / 0.5613 GB, free: 1.797 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003758/0.4514, allocations: 238.9 kB / 0.5616 GB, free: 1.543 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002626/0.4517, allocations: 0.7309 MB / 0.5623 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4517, allocations: 0 / 0.5623 GB, free: 0.7852 MB / 394.7 MB [CodegenCFunctions.tpl:4816:15-4816:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].