Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") [: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.001001/0.001001, allocations: 191 kB / 8.14 MB, free: 2.203 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.326/1.326, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0009156/0.0009158, allocations: 91.19 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.1714/0.1714, allocations: 37.98 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.995e-06/8.025e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08981/0.08983, allocations: 56.32 MB / 466.3 MB, free: 6.473 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2734/0.3633, allocations: 91.75 MB / 0.545 GB, free: 2.898 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.3636, allocations: 75.95 kB / 0.5451 GB, free: 2.824 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.04388/0.4075, allocations: 12.24 MB / 0.557 GB, free: 6.586 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.4076, allocations: 7.938 kB / 0.557 GB, free: 6.578 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.000874/0.4084, allocations: 0.6007 MB / 0.5576 GB, free: 5.926 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.4085, allocations: 12.03 kB / 0.5576 GB, free: 5.914 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.313e-05/0.4085, allocations: 15.72 kB / 0.5576 GB, free: 5.898 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.4087, allocations: 203.7 kB / 0.5578 GB, free: 5.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.205e-06/0.4088, allocations: 4 kB / 0.5578 GB, free: 5.656 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.4088, allocations: 0 / 0.5578 GB, free: 5.656 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001398/0.4089, allocations: 100.2 kB / 0.5579 GB, free: 5.555 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.4091, allocations: 130.6 kB / 0.5581 GB, free: 5.422 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.4091, allocations: 0 / 0.5581 GB, free: 5.422 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.4091, allocations: 4 kB / 0.5581 GB, free: 5.418 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.4091, allocations: 0 / 0.5581 GB, free: 5.418 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.4093, allocations: 170.2 kB / 0.5582 GB, free: 5.215 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001438/0.4094, allocations: 155.5 kB / 0.5584 GB, free: 5.055 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.4095, allocations: 145.2 kB / 0.5585 GB, free: 4.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.784e-06/0.4096, allocations: 3.984 kB / 0.5585 GB, free: 4.906 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.4096, allocations: 30.56 kB / 0.5585 GB, free: 4.867 MB / 394.7 MB Notification: Performance of pre-optimization done (n=40): time 1.072e-06/0.4096, allocations: 4 kB / 0.5585 GB, free: 4.863 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.0004951/0.4101, allocations: 424.2 kB / 0.559 GB, free: 4.445 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.4102, allocations: 113 kB / 0.5591 GB, free: 4.316 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.4103, allocations: 141.5 kB / 0.5592 GB, free: 4.172 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.4103, allocations: 29.7 kB / 0.5592 GB, free: 4.137 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.682e-05/0.4103, allocations: 88.78 kB / 0.5593 GB, free: 4.047 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.4105, allocations: 130 kB / 0.5594 GB, free: 3.918 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-06/0.4105, allocations: 0 / 0.5594 GB, free: 3.918 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4106, allocations: 338.8 kB / 0.5598 GB, free: 3.578 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.164e-05/0.4107, allocations: 95.91 kB / 0.5598 GB, free: 3.484 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.607e-05/0.4108, allocations: 95.95 kB / 0.5599 GB, free: 3.391 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000182/0.411, allocations: 131.9 kB / 0.5601 GB, free: 3.262 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.411, allocations: 0 / 0.5601 GB, free: 3.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004028/0.4114, allocations: 425.5 kB / 0.5605 GB, free: 2.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.4114, allocations: 4 kB / 0.5605 GB, free: 2.836 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.4114, allocations: 0 / 0.5605 GB, free: 2.836 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.4114, allocations: 3.984 kB / 0.5605 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.4114, allocations: 0 / 0.5605 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.4114, allocations: 3.969 kB / 0.5605 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.815e-05/0.4115, allocations: 19.78 kB / 0.5605 GB, free: 2.809 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.4115, allocations: 4 kB / 0.5605 GB, free: 2.805 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.0001338/0.4117, allocations: 194.5 kB / 0.5607 GB, free: 2.602 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.441e-05/0.4117, allocations: 27.72 kB / 0.5607 GB, free: 2.574 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.862e-05/0.4117, allocations: 10.66 kB / 0.5607 GB, free: 2.566 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.4117, allocations: 0 / 0.5607 GB, free: 2.566 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.4117, allocations: 0 / 0.5607 GB, free: 2.566 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.4117, allocations: 0 / 0.5607 GB, free: 2.566 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.4119, allocations: 201.9 kB / 0.5609 GB, free: 2.332 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.4119, allocations: 4 kB / 0.5609 GB, free: 2.328 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.4119, allocations: 0 / 0.5609 GB, free: 2.328 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.4119, allocations: 0 / 0.5609 GB, free: 2.328 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/0.4119, allocations: 15.98 kB / 0.5609 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.4119, allocations: 0 / 0.5609 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.4119, allocations: 0 / 0.5609 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007196/0.4127, allocations: 0.6801 MB / 0.5616 GB, free: 1.613 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.512e-05/0.4127, allocations: 100.8 kB / 0.5617 GB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.4128, allocations: 8.031 kB / 0.5617 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.59e-05/0.4128, allocations: 11.91 kB / 0.5617 GB, free: 1.477 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.38e-05/0.4129, allocations: 11.92 kB / 0.5617 GB, free: 1.465 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.4129, allocations: 12 kB / 0.5617 GB, free: 1.453 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.734e-05/0.413, allocations: 119.3 kB / 0.5619 GB, free: 1.336 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009799/0.414, allocations: 379.6 kB / 0.5622 GB, free: 0.9648 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.0009078/0.4149, allocations: 413.5 kB / 0.5626 GB, free: 0.5547 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004287/0.4153, allocations: 421.5 kB / 0.563 GB, free: 140 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4153, allocations: 0 / 0.563 GB, free: 140 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009851/0.4163, allocations: 1.349 MB / 0.5643 GB, free: 14.78 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000152/0.4165, allocations: 19.89 kB / 0.5644 GB, free: 14.76 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006607/0.4171, allocations: 0.5285 MB / 0.5649 GB, free: 14.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002797/0.4174, allocations: 0.7708 MB / 0.5656 GB, free: 13.4 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4174, allocations: 0 / 0.5656 GB, free: 13.4 MB / 410.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].