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/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.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") [: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.001187/0.001187, allocations: 182.8 kB / 8.134 MB, free: 2.207 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.375/1.375, allocations: 205.2 MB / 213.7 MB, free: 13.94 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.0008857/0.0008857, allocations: 90.86 kB / 261.8 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1723/0.1723, allocations: 37.97 MB / 347.7 MB, free: 7.492 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.069e-06/5.089e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09307/0.09309, allocations: 56.31 MB / 466.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2833/0.3764, allocations: 91.84 MB / 0.5451 GB, free: 2.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.3767, allocations: 75.95 kB / 0.5452 GB, free: 2.676 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.04399/0.4207, allocations: 11.87 MB / 0.5567 GB, free: 6.801 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.4208, allocations: 0 / 0.5567 GB, free: 6.801 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008672/0.4216, allocations: 0.5268 MB / 0.5573 GB, free: 6.223 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.4217, allocations: 8.031 kB / 0.5573 GB, free: 6.215 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.4217, allocations: 7.906 kB / 0.5573 GB, free: 6.207 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.4219, allocations: 176.7 kB / 0.5574 GB, free: 5.996 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.4219, allocations: 0 / 0.5574 GB, free: 5.996 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.4219, allocations: 0 / 0.5574 GB, free: 5.996 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.236e-05/0.422, allocations: 23.98 kB / 0.5575 GB, free: 5.973 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.377e-05/0.4221, allocations: 58.38 kB / 0.5575 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.4221, allocations: 0 / 0.5575 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.4222, allocations: 4 kB / 0.5575 GB, free: 5.906 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.4222, allocations: 3.938 kB / 0.5575 GB, free: 5.902 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001266/0.4223, allocations: 146.2 kB / 0.5577 GB, free: 5.723 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.823e-05/0.4224, allocations: 39.27 kB / 0.5577 GB, free: 5.676 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.469e-05/0.4224, allocations: 32.88 kB / 0.5577 GB, free: 5.641 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.013e-05/0.4224, allocations: 7.906 kB / 0.5577 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.349e-05/0.4225, allocations: 35.31 kB / 0.5578 GB, free: 5.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.4225, allocations: 0 / 0.5578 GB, free: 5.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=8): time 0.000288/0.4228, allocations: 93.58 kB / 0.5579 GB, free: 5.492 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.4229, allocations: 85.09 kB / 0.558 GB, free: 5.391 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.27e-05/0.423, allocations: 112.9 kB / 0.5581 GB, free: 5.273 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.423, allocations: 25.7 kB / 0.5581 GB, free: 5.242 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.11e-05/0.423, allocations: 88.14 kB / 0.5582 GB, free: 5.152 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.652e-05/0.423, allocations: 19.64 kB / 0.5582 GB, free: 5.133 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-06/0.4231, allocations: 7.938 kB / 0.5582 GB, free: 5.125 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.4232, allocations: 322.8 kB / 0.5585 GB, free: 4.801 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.585e-05/0.4232, allocations: 23.98 kB / 0.5585 GB, free: 4.777 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.03e-05/0.4233, allocations: 31.91 kB / 0.5586 GB, free: 4.746 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.97e-05/0.4234, allocations: 23.98 kB / 0.5586 GB, free: 4.723 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4234, allocations: 0 / 0.5586 GB, free: 4.723 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001785/0.4236, allocations: 101.7 kB / 0.5587 GB, free: 4.617 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.4236, allocations: 4 kB / 0.5587 GB, free: 4.613 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.4236, allocations: 4 kB / 0.5587 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.4236, allocations: 0 / 0.5587 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.314e-06/0.4236, allocations: 3.984 kB / 0.5587 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.4236, allocations: 4.062 kB / 0.5587 GB, free: 4.602 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.87e-05/0.4237, allocations: 4 kB / 0.5587 GB, free: 4.598 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.4237, allocations: 0 / 0.5587 GB, free: 4.598 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 9.059e-05/0.4238, allocations: 146.5 kB / 0.5588 GB, free: 4.441 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.4238, allocations: 11.91 kB / 0.5588 GB, free: 4.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.599e-05/0.4238, allocations: 4.375 kB / 0.5589 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.4238, allocations: 3.938 kB / 0.5589 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.4238, allocations: 0 / 0.5589 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.4238, allocations: 0 / 0.5589 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.319e-05/0.4239, allocations: 158.1 kB / 0.559 GB, free: 4.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.4239, allocations: 4 kB / 0.559 GB, free: 4.227 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.424, allocations: 0 / 0.559 GB, free: 4.227 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.424, allocations: 0 / 0.559 GB, free: 4.227 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.424, allocations: 4 kB / 0.559 GB, free: 4.223 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-06/0.424, allocations: 0 / 0.559 GB, free: 4.223 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.424, allocations: 0 / 0.559 GB, free: 4.223 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002499/0.4242, allocations: 165 kB / 0.5592 GB, free: 4.043 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/0.4243, allocations: 85.05 kB / 0.5593 GB, free: 3.941 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.4243, allocations: 4 kB / 0.5593 GB, free: 3.938 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.738e-05/0.4243, allocations: 3.906 kB / 0.5593 GB, free: 3.934 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.177e-05/0.4244, allocations: 4 kB / 0.5593 GB, free: 3.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.4244, allocations: 4 kB / 0.5593 GB, free: 3.926 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.89e-05/0.4244, allocations: 93.64 kB / 0.5594 GB, free: 3.836 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009629/0.4254, allocations: 355.5 kB / 0.5597 GB, free: 3.488 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.0009255/0.4263, allocations: 429.8 kB / 0.5601 GB, free: 3.059 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.4265, allocations: 105.7 kB / 0.5602 GB, free: 2.949 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4265, allocations: 0 / 0.5602 GB, free: 2.949 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.4266, allocations: 125.6 kB / 0.5603 GB, free: 2.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.4268, allocations: 4 kB / 0.5603 GB, free: 2.816 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002834/0.4271, allocations: 156 kB / 0.5605 GB, free: 2.641 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002262/0.4273, allocations: 0.7036 MB / 0.5612 GB, free: 1.91 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4273, allocations: 0 / 0.5612 GB, free: 1.91 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].