Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.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.001703/0.001703, allocations: 190.2 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.131/1.131, allocations: 194.2 MB / 202.8 MB, free: 8.734 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.00178/0.00178, allocations: 117.5 kB / 247.7 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1686/0.1686, allocations: 37.92 MB / 330.5 MB, free: 6.926 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.43e-06/5.731e-06, allocations: 0 / 389.8 MB, free: 78.12 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07838/0.0784, allocations: 53.23 MB / 443 MB, free: 24.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2532/0.3317, allocations: 95.23 MB / 0.5256 GB, free: 9.121 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.3319, allocations: 93.2 kB / 0.5257 GB, free: 9.105 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04264/0.3746, allocations: 14.79 MB / 0.5402 GB, free: 15.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.164e-05/0.3747, allocations: 16 kB / 0.5402 GB, free: 15.7 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001967/0.3767, allocations: 0.8001 MB / 0.541 GB, free: 14.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.3767, allocations: 8.25 kB / 0.541 GB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.377, allocations: 71.16 kB / 0.541 GB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003182/0.3802, allocations: 1.068 MB / 0.5421 GB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.3802, allocations: 19.98 kB / 0.5421 GB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.3803, allocations: 28 kB / 0.5421 GB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009148/0.3813, allocations: 483 kB / 0.5426 GB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009594/0.3822, allocations: 0.562 MB / 0.5431 GB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.3823, allocations: 7.922 kB / 0.5431 GB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.736e-05/0.3823, allocations: 0 / 0.5431 GB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.3823, allocations: 15.91 kB / 0.5432 GB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/0.3857, allocations: 2.146 MB / 0.5453 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004438/0.3862, allocations: 286.1 kB / 0.5455 GB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006648/0.3869, allocations: 342 kB / 0.5459 GB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.3869, allocations: 5.328 kB / 0.5459 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.3869, allocations: 37.34 kB / 0.5459 GB, free: 10.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.204e-06/0.3869, allocations: 0 / 0.5459 GB, free: 10.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.002268/0.3892, allocations: 1.275 MB / 0.5471 GB, free: 9.559 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.3893, allocations: 84.92 kB / 0.5472 GB, free: 9.461 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003745/0.3897, allocations: 325.7 kB / 0.5475 GB, free: 9.191 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.338e-05/0.3897, allocations: 25.7 kB / 0.5476 GB, free: 9.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.3898, allocations: 244 kB / 0.5478 GB, free: 8.945 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.39, allocations: 156 kB / 0.5479 GB, free: 8.809 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.39, allocations: 4.031 kB / 0.5479 GB, free: 8.805 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3902, allocations: 360.7 kB / 0.5483 GB, free: 8.465 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002587/0.3904, allocations: 171 kB / 0.5485 GB, free: 8.352 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.3908, allocations: 294.2 kB / 0.5487 GB, free: 8.086 MB / 362.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002076/0.3929, allocations: 0.7308 MB / 0.5494 GB, free: 7.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3929, allocations: 4 kB / 0.5495 GB, free: 7.477 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001199/0.3941, allocations: 0.6344 MB / 0.5501 GB, free: 6.969 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.3941, allocations: 8 kB / 0.5501 GB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.3941, allocations: 0 / 0.5501 GB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000405/0.3945, allocations: 141.9 kB / 0.5502 GB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005082/0.3951, allocations: 111 kB / 0.5503 GB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002775/0.3978, allocations: 2.186 MB / 0.5525 GB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.3982, allocations: 11.98 kB / 0.5525 GB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/0.3983, allocations: 19.81 kB / 0.5525 GB, free: 4.719 MB / 362.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: ind.i[1] = ind.i_start[1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * 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 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001465/0.3984, allocations: 116.8 kB / 0.5526 GB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.3985, allocations: 55.33 kB / 0.5526 GB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.3997, allocations: 0.598 MB / 0.5532 GB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.3997, allocations: 8 kB / 0.5532 GB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3997, allocations: 0 / 0.5532 GB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3997, allocations: 7.984 kB / 0.5532 GB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/0.4019, allocations: 1.253 MB / 0.5545 GB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.4019, allocations: 0 / 0.5545 GB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004565/0.4024, allocations: 79.7 kB / 0.5545 GB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005056/0.4029, allocations: 132.2 kB / 0.5547 GB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.701e-05/0.4029, allocations: 11.94 kB / 0.5547 GB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003028/0.406, allocations: 2.179 MB / 0.5568 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/0.406, allocations: 7.984 kB / 0.5568 GB, free: 0.793 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001455/0.4075, allocations: 1.006 MB / 0.5578 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.4077, allocations: 124.4 kB / 0.5579 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.488e-05/0.4078, allocations: 4 kB / 0.5579 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.408, allocations: 7.984 kB / 0.5579 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.585e-05/0.4081, allocations: 30.92 kB / 0.558 GB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/0.4082, allocations: 17.94 kB / 0.558 GB, free: 15.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003685/0.4085, allocations: 242.4 kB / 0.5582 GB, free: 15.56 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007645/0.4093, allocations: 124 kB / 0.5583 GB, free: 15.44 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,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 (41): * Single equations (assignments): 39 * Array equations: 0 * 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 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003272/0.4096, allocations: 117.7 kB / 0.5584 GB, free: 15.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.4109, allocations: 0.5921 MB / 0.559 GB, free: 14.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4109, allocations: 3.938 kB / 0.559 GB, free: 14.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006052/0.4115, allocations: 379 kB / 0.5594 GB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/0.4122, allocations: 96.73 kB / 0.5595 GB, free: 14.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.4143, allocations: 1.004 MB / 0.5605 GB, free: 13.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006629/0.4149, allocations: 0.978 MB / 0.5614 GB, free: 12.52 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.415, allocations: 0 / 0.5614 GB, free: 12.52 MB / 378.7 MB Notification: Performance of Templates: time 0.01291/0.4279, allocations: 6.222 MB / 0.5675 GB, free: 6.336 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)