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") [: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.001652/0.001652, allocations: 186.5 kB / 8.141 MB, free: 2.191 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.214/1.214, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008726/0.0008727, allocations: 95.47 kB / 261.7 MB, free: 13.55 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.453 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.322e-06/6.352e-06, allocations: 0 / 410 MB, free: 46.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1104, allocations: 56.31 MB / 466.3 MB, free: 6.449 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3103/0.4208, allocations: 88.67 MB / 0.542 GB, free: 5.918 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.4211, allocations: 75.95 kB / 0.5421 GB, free: 5.844 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.01966/0.4408, allocations: 5.427 MB / 0.5474 GB, free: 428 kB / 378.7 MB Notification: Performance of Transformations before backend: time 9.427e-06/0.4408, allocations: 0 / 0.5474 GB, free: 428 kB / 378.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.000425/0.4413, allocations: 451.7 kB / 0.5478 GB, free: 15.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.4413, allocations: 8.031 kB / 0.5478 GB, free: 15.92 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.841e-05/0.4414, allocations: 15.84 kB / 0.5478 GB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.4416, allocations: 204.2 kB / 0.548 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.4416, allocations: 4 kB / 0.548 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.4416, allocations: 0 / 0.548 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001116/0.4417, allocations: 59.97 kB / 0.5481 GB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/0.4419, allocations: 97.61 kB / 0.5482 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.4419, allocations: 3.984 kB / 0.5482 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.4419, allocations: 0 / 0.5482 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.4419, allocations: 0 / 0.5482 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.4421, allocations: 154.1 kB / 0.5483 GB, free: 15.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.4422, allocations: 138.5 kB / 0.5484 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.4423, allocations: 117.2 kB / 0.5486 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.973e-06/0.4423, allocations: 0.75 kB / 0.5486 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.4424, allocations: 34.56 kB / 0.5486 GB, free: 15 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 9.62e-07/0.4424, allocations: 0 / 0.5486 GB, free: 15 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003591/0.4428, allocations: 213.4 kB / 0.5488 GB, free: 14.79 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.4428, allocations: 97.09 kB / 0.5489 GB, free: 14.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.4429, allocations: 121.7 kB / 0.549 GB, free: 14.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.443, allocations: 25.7 kB / 0.549 GB, free: 14.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.77e-05/0.443, allocations: 84.45 kB / 0.5491 GB, free: 14.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.98e-05/0.4431, allocations: 66.95 kB / 0.5492 GB, free: 14.36 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.806e-06/0.4431, allocations: 4 kB / 0.5492 GB, free: 14.36 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.4432, allocations: 326.8 kB / 0.5495 GB, free: 14.03 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.393e-05/0.4433, allocations: 55.91 kB / 0.5495 GB, free: 13.97 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.979e-05/0.4434, allocations: 63.95 kB / 0.5496 GB, free: 13.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001079/0.4435, allocations: 67.95 kB / 0.5497 GB, free: 13.84 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.4435, allocations: 8.031 kB / 0.5497 GB, free: 13.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002595/0.4438, allocations: 213.4 kB / 0.5499 GB, free: 13.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.4438, allocations: 4 kB / 0.5499 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4438, allocations: 0 / 0.5499 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.4438, allocations: 3.984 kB / 0.5499 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.015e-06/0.4439, allocations: 4 kB / 0.5499 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.4439, allocations: 4.797 kB / 0.5499 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.229e-05/0.4439, allocations: 7.844 kB / 0.5499 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.444, allocations: 4 kB / 0.5499 GB, free: 13.59 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.0001197/0.4441, allocations: 162.7 kB / 0.5501 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.431e-05/0.4441, allocations: 15.81 kB / 0.5501 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.309e-05/0.4441, allocations: 12.67 kB / 0.5501 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.4441, allocations: 0 / 0.5501 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4442, allocations: 0 / 0.5501 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4442, allocations: 0 / 0.5501 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001348/0.4443, allocations: 173.9 kB / 0.5503 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.4443, allocations: 0 / 0.5503 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.314e-06/0.4443, allocations: 3.938 kB / 0.5503 GB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.4443, allocations: 0 / 0.5503 GB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.4443, allocations: 4 kB / 0.5503 GB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.4444, allocations: 4 kB / 0.5503 GB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4444, allocations: 4 kB / 0.5503 GB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004377/0.4448, allocations: 352.9 kB / 0.5506 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.066e-05/0.4449, allocations: 92.94 kB / 0.5507 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/0.4449, allocations: 7.906 kB / 0.5507 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.942e-05/0.4449, allocations: 4 kB / 0.5507 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.835e-05/0.445, allocations: 4 kB / 0.5507 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.445, allocations: 8.031 kB / 0.5507 GB, free: 12.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.33e-05/0.4451, allocations: 107.3 kB / 0.5508 GB, free: 12.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004212/0.4455, allocations: 131.9 kB / 0.5509 GB, free: 12.44 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.0004236/0.4459, allocations: 196 kB / 0.5511 GB, free: 12.24 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003006/0.4462, allocations: 273.5 kB / 0.5514 GB, free: 11.96 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4462, allocations: 0 / 0.5514 GB, free: 11.96 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.4466, allocations: 441.7 kB / 0.5518 GB, free: 11.53 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001679/0.4468, allocations: 27.97 kB / 0.5518 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004528/0.4472, allocations: 292 kB / 0.5521 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.4475, allocations: 0.7266 MB / 0.5528 GB, free: 10.43 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4475, allocations: 0 / 0.5528 GB, free: 10.43 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].