Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") [: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.001092/0.001092, allocations: 188 kB / 8.136 MB, free: 2.215 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.237/1.237, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0008631/0.0008632, allocations: 97.69 kB / 261.7 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1656/0.1656, allocations: 37.96 MB / 347.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.795e-06/7.825e-06, allocations: 4 kB / 410 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0999/0.09992, allocations: 56.32 MB / 466.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2897/0.3897, allocations: 91.74 MB / 0.545 GB, free: 2.828 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.39, allocations: 77.52 kB / 0.5451 GB, free: 2.754 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.04389/0.4339, allocations: 11.9 MB / 0.5567 GB, free: 6.848 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.434, allocations: 8 kB / 0.5567 GB, free: 6.84 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.001045/0.435, allocations: 0.5229 MB / 0.5572 GB, free: 6.266 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.4351, allocations: 8.031 kB / 0.5572 GB, free: 6.258 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.486e-05/0.4351, allocations: 15.91 kB / 0.5572 GB, free: 6.242 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.4354, allocations: 192.4 kB / 0.5574 GB, free: 6.016 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.4354, allocations: 0 / 0.5574 GB, free: 6.016 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.4354, allocations: 7.922 kB / 0.5574 GB, free: 6.008 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.369e-05/0.4355, allocations: 31.98 kB / 0.5574 GB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.475e-05/0.4356, allocations: 61.67 kB / 0.5575 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.4356, allocations: 4 kB / 0.5575 GB, free: 5.906 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.4356, allocations: 7.906 kB / 0.5575 GB, free: 5.898 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.4356, allocations: 0 / 0.5575 GB, free: 5.898 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000136/0.4358, allocations: 142.2 kB / 0.5577 GB, free: 5.723 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.023e-05/0.4359, allocations: 59.19 kB / 0.5577 GB, free: 5.656 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.185e-05/0.4359, allocations: 40.88 kB / 0.5578 GB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.25e-06/0.4359, allocations: 0 / 0.5578 GB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.436, allocations: 42.47 kB / 0.5578 GB, free: 5.562 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 8.91e-07/0.436, allocations: 0 / 0.5578 GB, free: 5.562 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003256/0.4363, allocations: 125.7 kB / 0.5579 GB, free: 5.434 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.4364, allocations: 89.09 kB / 0.558 GB, free: 5.328 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.4365, allocations: 117.6 kB / 0.5581 GB, free: 5.203 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.4365, allocations: 25.7 kB / 0.5581 GB, free: 5.172 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.505e-05/0.4365, allocations: 88.14 kB / 0.5582 GB, free: 5.082 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5e-05/0.4366, allocations: 35.45 kB / 0.5583 GB, free: 5.047 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-06/0.4366, allocations: 0 / 0.5583 GB, free: 5.047 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.4368, allocations: 330.8 kB / 0.5586 GB, free: 4.715 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.26e-05/0.4368, allocations: 27.98 kB / 0.5586 GB, free: 4.688 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.951e-05/0.4369, allocations: 33.52 kB / 0.5586 GB, free: 4.656 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.437, allocations: 47.91 kB / 0.5587 GB, free: 4.609 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.437, allocations: 0 / 0.5587 GB, free: 4.609 MB / 394.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001994/0.4372, allocations: 125.5 kB / 0.5588 GB, free: 4.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.4373, allocations: 4 kB / 0.5588 GB, free: 4.477 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.4373, allocations: 0 / 0.5588 GB, free: 4.477 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.4373, allocations: 0 / 0.5588 GB, free: 4.477 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.4373, allocations: 0 / 0.5588 GB, free: 4.477 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.4373, allocations: 8.062 kB / 0.5588 GB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.907e-05/0.4373, allocations: 7.844 kB / 0.5588 GB, free: 4.461 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.4374, allocations: 4 kB / 0.5588 GB, free: 4.457 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.0001035/0.4375, allocations: 150.7 kB / 0.559 GB, free: 4.297 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.942e-05/0.4375, allocations: 11.81 kB / 0.559 GB, free: 4.285 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.02e-05/0.4375, allocations: 8.5 kB / 0.559 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.4375, allocations: 0 / 0.559 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.4375, allocations: 0 / 0.559 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4376, allocations: 0 / 0.559 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.4377, allocations: 162.1 kB / 0.5591 GB, free: 4.082 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.4377, allocations: 0 / 0.5591 GB, free: 4.082 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.593e-06/0.4377, allocations: 3.984 kB / 0.5591 GB, free: 4.078 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.4377, allocations: 0 / 0.5591 GB, free: 4.078 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.4377, allocations: 7.938 kB / 0.5591 GB, free: 4.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4377, allocations: 0 / 0.5591 GB, free: 4.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4377, allocations: 0 / 0.5591 GB, free: 4.07 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003182/0.438, allocations: 233.5 kB / 0.5594 GB, free: 3.824 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.171e-05/0.4381, allocations: 92.98 kB / 0.5595 GB, free: 3.715 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.4381, allocations: 4 kB / 0.5595 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.141e-05/0.4382, allocations: 4 kB / 0.5595 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.413e-05/0.4382, allocations: 8 kB / 0.5595 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.4382, allocations: 4 kB / 0.5595 GB, free: 3.695 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.426e-05/0.4383, allocations: 99.33 kB / 0.5596 GB, free: 3.598 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001199/0.4395, allocations: 355.6 kB / 0.5599 GB, free: 3.25 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.001014/0.4405, allocations: 425.8 kB / 0.5603 GB, free: 2.824 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002091/0.4407, allocations: 145.6 kB / 0.5605 GB, free: 2.676 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.4407, allocations: 0 / 0.5605 GB, free: 2.676 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.4409, allocations: 189.6 kB / 0.5606 GB, free: 2.484 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.4411, allocations: 16.64 kB / 0.5606 GB, free: 2.469 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003495/0.4414, allocations: 203.8 kB / 0.5608 GB, free: 2.246 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.4417, allocations: 0.7192 MB / 0.5615 GB, free: 1.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.753e-06/0.4417, allocations: 0 / 0.5615 GB, free: 1.5 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].