Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") [: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.001555/0.001555, allocations: 174.9 kB / 8.129 MB, free: 0.8828 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.23/1.23, allocations: 205.2 MB / 213.7 MB, free: 8.52 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008926/0.0008927, allocations: 91.88 kB / 261.7 MB, free: 5.125 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1672/0.1672, allocations: 37.97 MB / 347.7 MB, free: 0.8828 MB / 290.8 MB Notification: Performance of FrontEnd - loaded program: time 6.182e-06/6.202e-06, allocations: 0 / 410 MB, free: 74.45 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09209/0.09211, allocations: 56.34 MB / 466.3 MB, free: 18.1 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2917/0.3838, allocations: 91.74 MB / 0.545 GB, free: 3.816 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.3841, allocations: 77.77 kB / 0.5451 GB, free: 3.773 MB / 354.8 MB Notification: Performance of FrontEnd: time 0.04297/0.4271, allocations: 12.07 MB / 0.5569 GB, free: 9.316 MB / 370.8 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.4271, allocations: 4 kB / 0.5569 GB, free: 9.312 MB / 370.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008422/0.428, allocations: 0.5584 MB / 0.5574 GB, free: 8.715 MB / 370.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.428, allocations: 12.02 kB / 0.5574 GB, free: 8.703 MB / 370.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.05e-05/0.4281, allocations: 11.81 kB / 0.5574 GB, free: 8.691 MB / 370.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/0.4283, allocations: 214 kB / 0.5576 GB, free: 8.445 MB / 370.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.4283, allocations: 0 / 0.5576 GB, free: 8.445 MB / 370.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.173e-05/0.4283, allocations: 0 / 0.5576 GB, free: 8.445 MB / 370.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001011/0.4284, allocations: 57.66 kB / 0.5577 GB, free: 8.398 MB / 370.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.4285, allocations: 89.55 kB / 0.5578 GB, free: 8.316 MB / 370.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-06/0.4285, allocations: 0 / 0.5578 GB, free: 8.316 MB / 370.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.4286, allocations: 7.922 kB / 0.5578 GB, free: 8.309 MB / 370.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.4286, allocations: 0 / 0.5578 GB, free: 8.309 MB / 370.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001228/0.4287, allocations: 157.9 kB / 0.5579 GB, free: 8.125 MB / 370.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/0.4288, allocations: 101.8 kB / 0.558 GB, free: 8.047 MB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.468e-05/0.4289, allocations: 89.52 kB / 0.5581 GB, free: 7.988 MB / 370.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.94e-06/0.4289, allocations: 4 kB / 0.5581 GB, free: 7.984 MB / 370.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.4289, allocations: 30.56 kB / 0.5582 GB, free: 7.945 MB / 370.8 MB Notification: Performance of pre-optimization done (n=24): time 9.02e-07/0.4289, allocations: 0 / 0.5582 GB, free: 7.945 MB / 370.8 MB Notification: Performance of matching and sorting (n=24): time 0.0003821/0.4293, allocations: 232.6 kB / 0.5584 GB, free: 7.734 MB / 370.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.4294, allocations: 94.8 kB / 0.5585 GB, free: 7.625 MB / 370.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.4295, allocations: 143.7 kB / 0.5586 GB, free: 7.488 MB / 370.8 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.4295, allocations: 25.7 kB / 0.5586 GB, free: 7.457 MB / 370.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.33e-05/0.4296, allocations: 91.88 kB / 0.5587 GB, free: 7.367 MB / 370.8 MB Notification: Performance of collectInitialBindings (initialization): time 6.408e-05/0.4296, allocations: 72.47 kB / 0.5588 GB, free: 7.305 MB / 370.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.259e-06/0.4297, allocations: 0 / 0.5588 GB, free: 7.305 MB / 370.8 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.4298, allocations: 332.6 kB / 0.5591 GB, free: 6.977 MB / 370.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.521e-05/0.4298, allocations: 59.42 kB / 0.5592 GB, free: 6.93 MB / 370.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.857e-05/0.4299, allocations: 55.09 kB / 0.5592 GB, free: 6.887 MB / 370.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.43, allocations: 83.12 kB / 0.5593 GB, free: 6.816 MB / 370.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.4301, allocations: 4.031 kB / 0.5593 GB, free: 6.812 MB / 370.8 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000292/0.4304, allocations: 229.7 kB / 0.5595 GB, free: 6.605 MB / 370.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.4304, allocations: 7.984 kB / 0.5595 GB, free: 6.598 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.4304, allocations: 0 / 0.5595 GB, free: 6.598 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.4304, allocations: 4 kB / 0.5595 GB, free: 6.594 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.4304, allocations: 0 / 0.5595 GB, free: 6.594 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.477e-06/0.4304, allocations: 0 / 0.5595 GB, free: 6.594 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.15e-05/0.4305, allocations: 7.844 kB / 0.5595 GB, free: 6.586 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.4305, allocations: 5.25 kB / 0.5595 GB, free: 6.582 MB / 370.8 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.0001163/0.4306, allocations: 170.5 kB / 0.5597 GB, free: 6.406 MB / 370.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.86e-05/0.4306, allocations: 20.47 kB / 0.5597 GB, free: 6.387 MB / 370.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.947e-05/0.4307, allocations: 14.59 kB / 0.5597 GB, free: 6.375 MB / 370.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.4307, allocations: 0 / 0.5597 GB, free: 6.375 MB / 370.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.4307, allocations: 0 / 0.5597 GB, free: 6.375 MB / 370.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4307, allocations: 3.984 kB / 0.5597 GB, free: 6.371 MB / 370.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.4308, allocations: 171.5 kB / 0.5599 GB, free: 6.176 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.4308, allocations: 4 kB / 0.5599 GB, free: 6.172 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.4308, allocations: 3.938 kB / 0.5599 GB, free: 6.168 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.4308, allocations: 0 / 0.5599 GB, free: 6.168 MB / 370.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.4309, allocations: 7.984 kB / 0.5599 GB, free: 6.16 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.4309, allocations: 8 kB / 0.5599 GB, free: 6.152 MB / 370.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4309, allocations: 3.906 kB / 0.5599 GB, free: 6.148 MB / 370.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005056/0.4314, allocations: 411.6 kB / 0.5603 GB, free: 5.781 MB / 370.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.134e-05/0.4315, allocations: 96.86 kB / 0.5604 GB, free: 5.668 MB / 370.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.4315, allocations: 4 kB / 0.5604 GB, free: 5.664 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.18e-05/0.4315, allocations: 0.625 kB / 0.5604 GB, free: 5.664 MB / 370.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.723e-05/0.4316, allocations: 5.75 kB / 0.5604 GB, free: 5.66 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.4316, allocations: 12.03 kB / 0.5604 GB, free: 5.648 MB / 370.8 MB Notification: Performance of sort global known variables: time 6.633e-05/0.4317, allocations: 113.2 kB / 0.5605 GB, free: 5.547 MB / 370.8 MB Notification: Performance of remove unused functions: time 0.001042/0.4327, allocations: 362.5 kB / 0.5609 GB, free: 5.199 MB / 370.8 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.0009147/0.4336, allocations: 420.2 kB / 0.5613 GB, free: 4.789 MB / 370.8 MB Notification: Performance of simCode: created initialization part: time 0.0002876/0.4339, allocations: 267.6 kB / 0.5615 GB, free: 4.578 MB / 370.8 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4339, allocations: 0 / 0.5615 GB, free: 4.578 MB / 370.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003741/0.4343, allocations: 0.5445 MB / 0.5621 GB, free: 4.273 MB / 370.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/0.4345, allocations: 11.91 kB / 0.5621 GB, free: 4.262 MB / 370.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004765/0.435, allocations: 346.9 kB / 0.5624 GB, free: 3.938 MB / 370.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002596/0.4352, allocations: 0.739 MB / 0.5631 GB, free: 3.168 MB / 370.8 MB Notification: Performance of SimCode: time 2.4e-07/0.4352, allocations: 0 / 0.5631 GB, free: 3.168 MB / 370.8 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].