Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") [: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.2+maint.om/package.mo): time 0.001523/0.001523, allocations: 188.8 kB / 8.132 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.231/1.231, allocations: 194.2 MB / 202.8 MB, free: 8.754 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001709/0.001709, allocations: 124.4 kB / 247.8 MB, free: 6.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1671/0.1671, allocations: 37.92 MB / 330.5 MB, free: 7.008 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.881e-06/5.921e-06, allocations: 0 / 389.8 MB, free: 78.14 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07955/0.07957, allocations: 53.23 MB / 443 MB, free: 25.01 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2522/0.3318, allocations: 105.3 MB / 0.5355 GB, free: 2.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002054/0.332, allocations: 86.33 kB / 0.5356 GB, free: 2.477 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06109/0.3931, allocations: 21.31 MB / 0.5564 GB, free: 480 kB / 362.7 MB Notification: Performance of Transformations before backend: time 3.957e-05/0.3932, allocations: 19.98 kB / 0.5564 GB, free: 460 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.001887/0.3951, allocations: 0.9366 MB / 0.5573 GB, free: 15.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3951, allocations: 8.031 kB / 0.5573 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007/0.3959, allocations: 134.8 kB / 0.5575 GB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00279/0.3987, allocations: 1.139 MB / 0.5586 GB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.3987, allocations: 20 kB / 0.5586 GB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.3988, allocations: 43.59 kB / 0.5587 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001126/0.3999, allocations: 0.7649 MB / 0.5594 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.4012, allocations: 0.9118 MB / 0.5603 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.4012, allocations: 7.938 kB / 0.5603 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.296e-05/0.4013, allocations: 0 / 0.5603 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001348/0.4015, allocations: 60.22 kB / 0.5604 GB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004753/0.4062, allocations: 3.13 MB / 0.5634 GB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009984/0.4072, allocations: 0.6952 MB / 0.5641 GB, free: 9.816 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005922/0.4078, allocations: 457.9 kB / 0.5645 GB, free: 9.516 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.892e-05/0.4079, allocations: 4.656 kB / 0.5645 GB, free: 9.512 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/0.408, allocations: 53.58 kB / 0.5646 GB, free: 9.453 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 1.993e-06/0.408, allocations: 3.938 kB / 0.5646 GB, free: 9.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=79): time 0.004362/0.4123, allocations: 2.463 MB / 0.567 GB, free: 7.371 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.4124, allocations: 85.75 kB / 0.5671 GB, free: 7.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.4127, allocations: 323.3 kB / 0.5674 GB, free: 7.016 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.705e-05/0.4128, allocations: 25.7 kB / 0.5674 GB, free: 6.984 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.413, allocations: 303.6 kB / 0.5677 GB, free: 6.711 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.4132, allocations: 265 kB / 0.5679 GB, free: 6.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-05/0.4132, allocations: 0 / 0.5679 GB, free: 6.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.4134, allocations: 372.1 kB / 0.5683 GB, free: 6.133 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000497/0.4139, allocations: 365.8 kB / 0.5687 GB, free: 5.891 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005829/0.4145, allocations: 0.5238 MB / 0.5692 GB, free: 5.441 MB / 378.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.009041/0.4235, allocations: 2.378 MB / 0.5715 GB, free: 3.344 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.4235, allocations: 0 / 0.5715 GB, free: 3.344 MB / 378.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002036/0.4256, allocations: 1.217 MB / 0.5727 GB, free: 2.352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.4256, allocations: 11.98 kB / 0.5727 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.4256, allocations: 15.84 kB / 0.5727 GB, free: 2.324 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001442/0.4258, allocations: 40.88 kB / 0.5727 GB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008514/0.4266, allocations: 187.6 kB / 0.5729 GB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.4277, allocations: 1.312 MB / 0.5742 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005436/0.4283, allocations: 31.86 kB / 0.5742 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.967e-05/0.4284, allocations: 35.09 kB / 0.5743 GB, free: 0.6836 MB / 378.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: ind.i[3] = ind.i_start[3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 89 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001793/0.4286, allocations: 124.2 kB / 0.5744 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.4287, allocations: 55.25 kB / 0.5744 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002017/0.4307, allocations: 1.155 MB / 0.5756 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.757e-05/0.4308, allocations: 19.98 kB / 0.5756 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4308, allocations: 4 kB / 0.5756 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.4308, allocations: 7.984 kB / 0.5756 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003665/0.4345, allocations: 2.079 MB / 0.5776 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.4345, allocations: 4 kB / 0.5776 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007807/0.4353, allocations: 155.2 kB / 0.5778 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.4354, allocations: 40.39 kB / 0.5778 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.478e-05/0.4355, allocations: 12 kB / 0.5778 GB, free: 13.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.4367, allocations: 1.314 MB / 0.5791 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.788e-06/0.4367, allocations: 7.938 kB / 0.5791 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002866/0.4396, allocations: 1.941 MB / 0.581 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002229/0.4398, allocations: 134.8 kB / 0.5811 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.4399, allocations: 12.73 kB / 0.5812 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004234/0.4404, allocations: 15.98 kB / 0.5812 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.4405, allocations: 63.72 kB / 0.5812 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.205e-05/0.4406, allocations: 28.8 kB / 0.5813 GB, free: 10.17 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003485/0.4409, allocations: 243.7 kB / 0.5815 GB, free: 9.984 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008567/0.4418, allocations: 172 kB / 0.5817 GB, free: 9.816 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003166/0.4421, allocations: 158.1 kB / 0.5818 GB, free: 9.656 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.4437, allocations: 0.9901 MB / 0.5828 GB, free: 8.797 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.4437, allocations: 4 kB / 0.5828 GB, free: 8.793 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008117/0.4445, allocations: 0.5486 MB / 0.5833 GB, free: 8.238 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006464/0.4452, allocations: 96.98 kB / 0.5834 GB, free: 8.148 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002856/0.4481, allocations: 1.667 MB / 0.585 GB, free: 6.391 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008984/0.449, allocations: 1.086 MB / 0.5861 GB, free: 5.281 MB / 394.7 MB Notification: Performance of SimCode: time 4.61e-07/0.449, allocations: 0 / 0.5861 GB, free: 5.281 MB / 394.7 MB Notification: Performance of Templates: time 0.01565/0.4646, allocations: 8.296 MB / 0.5942 GB, free: 13.01 MB / 410.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)